discuss-gnustep
[Top][All Lists]
Advanced

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

Getting a specific Locale


From: Riccardo Mottola
Subject: Getting a specific Locale
Date: Thu, 16 Jan 2014 12:50:16 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:26.0) Gecko/20100101 Firefox/26.0 SeaMonkey/2.23

Hi,

in GNUMail I have the following code:

#ifndef MACOSX
aLocale = [NSDictionary dictionaryWithContentsOfFile: [[NSBundle bundleForLibrary: @"gnustep-base"]
                              pathForResource: @"English"
                              ofType: nil
                              inDirectory: @"Languages"]];
#else
aLocale = [NSDictionary dictionaryWithContentsOfFile: [[NSBundle bundleForClass:[NSObject class]]
                              pathForResource: @"English"
                              ofType: nil
                              inDirectory: @"Languages"] ];
#endif

how are you supposed to get a specific locale, before the existence of NSLocale? A first test shows that right now the Mac code seems to work on GNUstep too, so perhaps this is old cruft, but I wanted to understand better and know the alternatives.

Riccardo



reply via email to

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