Re: Localized Embedded Frameworks
Re: Localized Embedded Frameworks
- Subject: Re: Localized Embedded Frameworks
- From: Bill Cheeseman <email@hidden>
- Date: Wed, 05 May 2004 20:27:04 -0400
on 2004-05-05 4:09 PM, Daniel Todd Currie at email@hidden wrote:
>
What would you expect from a 3rd party framework when
>
localizing your application?
(1) Nib files, (2) .strings files (in the proper encoding, UTF-16) for all
strings that will be shown to the user programmatically during application
execution but that aren't in your nib files), and (3) Readme files that are
opened from the Help menu or wherever, all located in the English.lproj
folder of your framework bundle (assuming you are an English-language
developer). And code in your framework that rigorously calls the various
NSLocalizedString functions to ensure that localized versions of the
.strings files in your framework are actually used at run time every time
one of your strings is shown to the user programmatically. All as suggested
in earlier messages in this thread.
There are lots of other subtle requirements, including some that will, if
not met, bite your localizers when they try to localize applications using
your framework into certain Asian languages like Japanese. For example, any
code in your framework that refers to files by name or path must be in the
proper encoding used for file names and paths, which is not ASCII or
MacRoman, and certainly not whatever version of standard C string encoding
is on your development computer, but also not necessarily exactly UTF-8.
As a localizer, I can then drill down into the application bundle's
Frameworks subfolder, find your framework and, in it, your English.lproj
folder, create a copy of it for the language I'm localizing for, and start
translating your nib files, your .strings files and your Readme files into
my language in my language's .lproj folder, in your framework folder, in the
application bundle's Frameworks folder. Since you wrote your code correctly,
all my translations will be used in the app when it is run on a system with
my language set as the preferred language.
There's a good article about all this by mmalcolm crawford at the Stepwise
site, and other articles by others elsewhere, and a pretty good new document
from Apple about internationalizing applications. These articles talk mostly
about applications, but the rules are the same for framework bundles.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
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.