mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
57527984ce
commit
8fa243331c
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue