discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with LANGUAGES in makefiles


From: Alexander Malmberg
Subject: Problem with LANGUAGES in makefiles
Date: Wed, 20 Feb 2002 01:43:57 +0100

Hi again,

After adding localization to my program, I got a warning:

Improper installation: No language locale found

every time the make process ran plmerge. Turns out that my
'foo_LANGUAGES=bar zot' gets turned into 'LANGUAGES=bar zot' in the
instance make, and plmerge is trying to load a locale called "bar zot"
(since the user defaults system wants a ';' separated list).

That's only a minor inconvenience, but it seems the fallback locale
('English') isn't being loaded since the loop in [NSUserDefaults
+standardUserDefaults] will break out of the loop if it fails to load a
locale. Changing the break to a continue removes the warning here (and
fixes the other ways I could trigger the warning as well), and makes
more sense (at least to me).

- Alexander Malmberg
Index: NSUserDefaults.m
===================================================================
RCS file: /cvsroot/gnustep/gnustep/core/base/Source/NSUserDefaults.m,v
retrieving revision 1.73
diff -u -r1.73 NSUserDefaults.m
--- NSUserDefaults.m    14 Feb 2002 10:23:56 -0000      1.73
+++ NSUserDefaults.m    20 Feb 2002 00:13:30 -0000
@@ -404,7 +404,7 @@
        {
          NSString *locale = GSSetLocale(nil);
          if (locale == nil)
-           break;
+           continue;
          /* See if we can get the dictionary from i18n functions.
             Note that we get the dict from the current locale regardless
             of what 'lang' is, since it should match anyway. */

reply via email to

[Prev in Thread] Current Thread [Next in Thread]