discuss-gnustep
[Top][All Lists]
Advanced

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

Re: [[NSUserDefaults standardUserDefaults] objectForKey:@"NSLanguages"]


From: Michael Scheibler
Subject: Re: [[NSUserDefaults standardUserDefaults] objectForKey:@"NSLanguages"] returns nil
Date: Fri, 15 Jun 2001 10:41:51 +0200

From: "Adam Fedor" <fedor@doc.com>
Sent: Wednesday, June 13, 2001 5:43 PM

> Michael Scheibler wrote:
> >
> > 1. NSUserDefaults userLanguages is not able to determine the right
system
> > language:
> >   - setlocale("") returns German_Germany.1252
> >   - Locale.aliases (dictionary) only maps de = German
> >
> > 2. By invoking [NSUserDefaults standardUserDefaults] only, no
NSLanguages
> > are set. Is it necessary to do this "by hand"?
> >
>
> By hand (using the defaults program) is good, although I just noticed a
> bug, where [NSUserDefaults userLanguages] looks for "Languages" not
> "NSLanguages". Perhaps you should set both for now.
>
> We could also add an entry to the Local.aliases file.
>

I just ran some tests with setlocale and had to find out that MS C setlocale
only works with something like German_Germany.1252. It can't handle de or
de_DE.
I think it's necessary to have GNUstep handle this correctly. It should be
enough, to use the first word until _ (here German) without looking into
Locale.aliases...?

Michael




reply via email to

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