-
Notifications
You must be signed in to change notification settings - Fork 6
How to create new translation
Artem edited this page Sep 18, 2021
·
9 revisions
If you want to add new language to this software, this guide describes you how to do this.
Program language depends on language choosed in phone`s settings. If it not found, system try to find similar one or English will be used.
If you are not a Symbian developer, just make copy of data/S60Maps.l01 file and translate all strings in double quotes. Save file in UTF-8 encoding and send it to me.
- First you need to know numeric code for your language. You can get it from s60v3 or s60v5 lists. For example: for Russian language code is 16.
- Make copy of data/S60Maps.l01 file with your language code in extension (for example: for Russian filename will be
S60Maps.l16
). - Open file in text editor (Notepad++ or what you like) in UTF-8 encoding. Add string
CHARACTER_SET UTF8
before string definitions. - Translate all strings in double quotes in lines started with
#define
keyword. - Open
data/S60Maps.loc
file and add these lines (at this place and futher replace 16 with your language code):
#ifdef LANGUAGE_16 #include "S60Maps.l16" #endif
- Open
group/S60Maps.mmp
and add your language code in two places:
- In line 33:
START RESOURCE S60Maps.rss HEADER TARGET S60Maps_0xED689B88 TARGETPATH resource\apps LANG 01 16 END
- And in line 88:
LANG 01 16
- Open
sis/S60Maps.pkg
and add this line:
"$(EPOCROOT)Epoc32\data\z\resource\apps\S60Maps_0xED689B88.r16" -"!:\resource\apps\S60Maps_0xED689B88.r16"
- Rebuild project in Carbide IDE.
- Run and test that it works correctly.
- Make pull request to develop branch.
See this commit as example.