Fixed test of default NSShowNonLocalizedStrings

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4681 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-08-01 06:21:15 +00:00
parent 0eccffd21f
commit 79efb3ad6e
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
Sun Aug 1 7:25:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSBundle.m: ([+localizedStringForKey:value:table:]) Fixed so
that debugging behavior only takes place when NSShowNonLocalizedStrings
default is 'YES'.
1999-07-29 Adam Fedor <fedor@gnu.org>
* config.guess: Updated from latest version + fix for Netwinder.
@ -8,7 +14,7 @@
Wed Jul 28 15:53:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSObject.h: ([+isKindOfClass:]) Fixed to return NO except
* Source/NSObject.m: ([+isKindOfClass:]) Fixed to return NO except
when both the argument and the receiver are NSObject - as specified
in the MacOS-X documentation. Thanks to Helge for pointing this out.

View file

@ -847,7 +847,7 @@ _bundle_load_callback(Class theClass, Category *theCategory)
{
NSString *show = [[NSUserDefaults standardUserDefaults]
objectForKey: NSShowNonLocalizedStrings];
if (!show || [show isEqual: @"YES"])
if (show && [show isEqual: @"YES"])
{
/* It would be bad to localize this string! */
NSLog(@"Non-localized string: %@\n", newString);