PUt languages in array

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@10499 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2001-07-16 14:25:47 +00:00
parent 57527984ce
commit 8fa243331c
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2001-07-16 Adam Fedor <fedor@gnu.org>
* Source/NSUserDefaults.m ([NSUserDefaults +userLanguages]): Put
MINGW languages in array (Fix from "Michael Scheibler"
<michael.scheibler@onevision.de>).
2001-07-16 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSArray.m: Added ([writeToURL:atomically:]) for

View file

@ -367,7 +367,8 @@ static BOOL setSharedDefaults = NO; /* Flag to prevent infinite recursion */
/* Check for language as the first part of the locale string */
NSRange under = [locale rangeOfString: @"_"];
if (under.location)
currLang = [locale substringToIndex: under.location];
currLang = [NSArray arrayWithObject:
[locale substringToIndex: under.location]];
}
#endif
if (currLang == nil)