bug-gnustep
[Top][All Lists]
Advanced

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

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


From: Michael Scheibler
Subject: [[NSUserDefaults standardUserDefaults] objectForKey:@"NSLanguages"] returns nil
Date: Wed, 13 Jun 2001 11:45:03 +0200

On OpenStep you could use
[[NSUserDefaults standardUserDefaults] objectForKey:@"NSLanguages"]
to get the user languages. On my GNUstep system (mingw, Win2000) it just
returns nil.

I investigated further and found out:

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"?

Michael




reply via email to

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