C o m m u n i c a t i o n s , I n c .
© 2006-2007
PalmMicro Communications, Inc.
Room 0611, Bldg.B Tsinghua Tongfang Technology Plaza, 1 Wangzhuang Road, Beijing, CHINA
36
9 How To Add Regional and Language
With PA1688, we have supported over 30 different language firmware. None of us
understand language except Chinese and English, volunteers all over the world helped us
to do the entire localization works. I believe that we can do this again with AR1688,
hopefully even better because it is well planned from the beginning.
From 0.10 firmware, we have finalized all UI implementations. Of course we will continue
to improve it and fix bugs, however, developers can do regional and language
customization based on this version without worrying future huge changes.
Based on 0.32.000 software API, please following steps below to add your own native
language support:
Step1. Starting from SDCC\inc\version.h, find the RES_XX sections, check if your
regional code is in the list or not. The 'XX' code is following ISO 3166
(
http://www.iso.ch/iso/en/prods-services/iso3166ma/index.html
). If it already
exists, you can jump to step 3 directly. If it is not, please add it. You can then
choose to move on to next step, or send an email to
support@aredfox.com
, tell us
about your change, and ask us to do step 2, you can jump to step 3.
Step2. Add your regional DTMF frequency and interval to SDCC\src\dtmf.c, search for
"RES_US" in files if you need guide for changes. See the section in Chapter 8 for
more details.
Step3.
Translate the English web pages in SDCC\src\res\us into your native language,
put them in the new SDCC\src\res\xx directory.
Step4.
Translate SDCC\src \res\us\menu.h, time.h and str.h into your native language,
keep the original coding as it is in the file. For example, keep ISO-8859-1 coding
for French special chars and ISO-8859-9 coding for Turkish special chars.
Step5.
In SDCC\src\time.c,
add judging your regional code and judging accented
characters,
change time and date display format accordingly, and add day light
saving time support if your region uses day light saving.
China does not use day
light saving today. Currently only USA day light saving is implemented. Make sure
"Automatically Adjust Clock for Daylight Saving Changes" option is checked in
settings. If you need guide for change, search for other language in files, or send
request to
support@aredfox.com
.
Step6. Add judging your regional code and judging accented characters to
SDCC\src\ui_str.c. If you need guide for change, search for other language in files,
or send an email to
support@aredfox.com
. With 2x16 LCD, the display will still be
English, but we can add other language font display with dot-matrix LCD.
Step7.
Add necessary ISO-8859-X font in SDCC\src\font.c, or update Unicode font in the
256k bytes font data flash storage space.
Step8.
find SDCC\src\res\us\inputmap.h, change it to your own native language.