Re: Localized Embedded Frameworks
Re: Localized Embedded Frameworks
- Subject: Re: Localized Embedded Frameworks
- From: Daniel Todd Currie <email@hidden>
- Date: Wed, 5 May 2004 13:09:55 -0700
I'm working on a private/embedded framework that I plan to freely
distribute, and I hadn't considered the question of localizations until
I saw this thread...
My framework creates a sheet or panel that will be shown to the user,
so what I would like to do is have it search the applications' strings
files, so that the developer can edit the UI strings if they don't like
the ones I have placed in the framework.
So what is the best plan? It seems like I should change my framework
to use NSLocalizedStringFromTable() and create a table.strings file
that comes with the framework so that the programmer can just drop the
table.strings file into any .lproj directory and be done with it. This
would allow the developer to add languages to my framework (it will
only come with English, to begin with) without having to tinker around
with the framework source.
The fundamental problem is that I've never even produced a localized
application. What would you expect from a 3rd party framework when
localizing your application?
Thanks in advance,
-- Daniel Currie
On 2004 May 05, at 12:06, Michael Tsai wrote:
On May 5, 2004, at 2:55 PM, Jonathan 'Wolf' Rentzsch wrote:
I'm using NSLocalizedStringFromTable() in an embedded framework. Both
the
app and framework code correctly load the English string values.
However,
when launched under French language, only the app code gets the
correct
French value -- the embedded framework code still gets the English.
Are
there any issues with localizing embedded frameworks?
Since the .strings files are in the framework, not in the main bundle,
you need to use NSLocalizedStringFromTableInBundle() and pass in the
framework's bundle.
--Michael
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.