URL: <http://savannah.gnu.org/bugs/?30239>
Summary: [NSBundle pathForResource:ofType:inDirectory:forLocalization:] does not find Localizable.strings Project: GNUstep Submitted by: dwetzel Submitted on: Do 24 Jun 2010 05:06:44 CEST Category: Base/Foundation Severity: 4 - Important Item Group: Bug Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: The Localizable.strings file is not found. my code works on OSX... It seems like the bundle is is not checking the German.lproj subdirs. There is testcode in SVN. just build gsweb, go to Testing/DynamicElements and run the app. then click on the image test. d...@nbsd64>ls -l ./DynamicElements.gswa/Resources/German.lproj/ total 8 -rw-r--r-- 1 dave 80 83 Jun 23 19:51 Localizable.strings Breakpoint 2, -[NSBundle pathForResource:ofType:inDirectory:forLocalization:] (self=0x7f7ffb5bd0f0, _cmd=0x7f7ffdcd5750, name=0x7f7ffaf9e390, ext=0x7f7ffaf9e3c0, subPath=0x0, localizationName=0x7f7ffb271b50) at NSBundle.m:1854 1854 CREATE_AUTORELEASE_POOL(arp); (gdb) po localizationName German (gdb) next 1855 NSString *result = nil; (gdb) 1858 if ([ext length] == 0) (gdb) 1866 array = [self pathsForResourcesOfType: ext (gdb) 1870 if (array != nil) (gdb) 1872 NSEnumerator *enumerator = [array objectEnumerator]; (gdb) po array () <-------------- BUG (gdb) po ext strings (gdb) po name Localizable _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?30239> _______________________________________________ Nachricht geschickt von/durch Savannah http://savannah.gnu.org/ _______________________________________________ Bug-gnustep mailing list Bug-gnustep@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnustep