Skip to content

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.

Easy method

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.

More complex method

  1. 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.
  2. Make copy of data/S60Maps.l01 file with your language code in extension (for example: for Russian filename will be S60Maps.l16).
  3. Open file in text editor (Notepad++ or what you like) in UTF-8 encoding. Add string CHARACTER_SET UTF8 before string definitions.
  4. Translate all strings in double quotes in lines started with #define keyword.
  5. 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
  1. 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
  1. Open sis/S60Maps.pkg and add this line:
"$(EPOCROOT)Epoc32\data\z\resource\apps\S60Maps_0xED689B88.r16"		-"!:\resource\apps\S60Maps_0xED689B88.r16"
  1. Rebuild project in Carbide IDE.
  2. Run and test that it works correctly.
  3. Make pull request to develop branch.

Example

See this commit as example.

Clone this wiki locally