At 12:00am -0800 02-02-08, Palm Developer Forum digest wrote:
>Now i am going to localizing my appl.
>I read through "Using Overlays to Localize Resources" and "PalmOS
>Programmer's Compaion - Localized Applications" also sample of "Address"
>
>i got a brief idea on that, but still alot of Qn.
>I know i have to create a set of resources for different lang
>(eg. create a appl in chinese (on top of chinese OS)
>I checked out the language code for chinese - 'zh', country code for china -
>'CH'
The country code for China is 'CN', not 'CH'.
>But from ""Using Overlays to Localize Resources" mention that an overlay
>resources should contain Type information ('ovly' for overlay databases).
>Where can i set it ? or it will be set automatic? or by Overlay tools??
This gets a bit tricky. Normally the way you create an overlay is to
first build an English version of your app. Then you run the PRC
through the PRC2OVL tool (part of the SDK), and specify zhCN as the
target locale. This creates an overlay PRC with the correct
information in the 'ovly' resource, but it still contains unlocalized
(English) resources. Finally you use Constructor to localize the
text, adjust the layout of forms, etc.
Unfortunately I don't think the version of Constructor in the current
SDK supports Simplified Chinese, so that won't work for you.
The other approach then is to build separate versions of your app,
one for English and one for Simplified Chinese. You can compile the
Simplified Chinese version using PilRC, which has some hacks in it to
correctly calculate text widths for GB2312-encoded text. Then you can
use PRC2OVL in a special way to create an overlay with the right
information - Ezekiel's talk at PalmSource describes how to do this
at length. I'm assuming his slides will be posted to the web site
after PalmSource.
Or you can skip the whole overlay thing and just use the Simplified
Chinese version of your PRC.
>Do i need to create a separate target for every lang?
There was a discussion of this very topic just a few days ago on the
list. Search the mailing list archive for "localize" and/or
"translate".
>How can the overlay manager locate/ identify the correct overlay database in
>appl?
It uses the current locale to decide which overlay to load. The
current locale (stored as two feature values) is normally the same as
the system locale.
-- Ken
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/