[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #30239] [NSBundle pathForResource:ofType:inDirectory:forLocalizatio
From: |
David Wetzel |
Subject: |
[bug #30239] [NSBundle pathForResource:ofType:inDirectory:forLocalization:] does not find Localizable.strings |
Date: |
Thu, 24 Jun 2010 03:06:44 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; de-de) AppleWebKit/533.16 (KHTML, like Gecko) Version/5.0 Safari/533.16 |
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.
dave@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 #30239] [NSBundle pathForResource:ofType:inDirectory:forLocalization:] does not find Localizable.strings,
David Wetzel <=