discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Localizable strings & Bundles


From: Riccardo Mottola
Subject: Re: Localizable strings & Bundles
Date: Sun, 25 Aug 2013 19:30:09 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:22.0) Gecko/20100101 Firefox/22.0 SeaMonkey/2.19

Hi,

Fred Kiefer wrote:
On 19.08.2013 22:01, Riccardo Mottola wrote:
I think that the localisation code should work for bundles. Could you
please provide an example of what you are trying to do?

What you should be calling is the method
localizedStringForKey:value:table: on your specific bundle.
NSLocalizedString() wont work, as this only loads resources from the
main bundle, but this behaviour is according to the documentation.

Thank you, that was exactly what I suspected and I was looking for. I made a quick test and it appears to work. Expect an improved Defaults module after some tedious work of separating the descriptions into a Localizable string file ;)

I'm a bit suspicious on how the bundle is loaded in the preferences, but about that later.

Riccardo



reply via email to

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