RE: Getting an NSLocalizedString for another localization
RE: Getting an NSLocalizedString for another localization
- Subject: RE: Getting an NSLocalizedString for another localization
- From: "Christopher Hickman" <email@hidden>
- Date: Tue, 4 Oct 2005 12:54:56 -0400
Check out NSBundle's localizedStringForKey:value:table: method.
<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ObjC_cl
assic/Classes/NSBundle.html#//apple_ref/doc/uid/20000214-BCIDIHDH>
You can get the lproj bundle into an NSBundle, then call this method to get
your localized strings. There are some other Foundation functions that may
provide some convienence for this as well.
<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ObjC_cl
assic/Functions/FoundationFunctions.html#//apple_ref/doc/uid/20000055-173873
>
Topher
-----Original Message-----
From: cocoa-dev-bounces+tophu=email@hidden
[mailto:cocoa-dev-bounces+tophu=email@hidden] On Behalf Of Damien
Trog
Sent: Tuesday, October 04, 2005 5:52 AM
To: email@hidden
Subject: Getting an NSLocalizedString for another localization
Hello everyone,
My problem is as follows:
I have an application which, amongst other things, lets the user
print exams. It is localized in multiple languages. Also it is
possible that the user wants an exam printed in another language than
the one which is set in his internationalization settings in the
preferences.
For example, the user can be using the application in Dutch, but
wanting to print an exam in English, or vice versa. (The static text
would be different then.)
Is it possible to use localized strings for this? I would need
something like NSLocalizedString(@"Question",@"Dutch",@"");
So is it possible to specify which localization you want for a
localized string?
I have been searching the developer documentations to no avail.
Thanks in advance!
Greetings,
Damien
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden