-
Notifications
You must be signed in to change notification settings - Fork 13
Localization
All interface commands and messages are stored in the files with "tm" extension, including English interface version used by default. The repository also contains Russian localization.
To make a new localization first create a localization template. Start .15926 Editor and execute the following command in the Python console:
tm.<name of one of tm-files>._dump_xgettext()
For example:
tm.main._dump_xgettext()
Find in the main folder with dot15926.py a new file with "pot" extension - "dot15926_.pot". For example:
dot15926_main.pot
For further work you'll need a Poedit tool (download).
To create a new localization start Poedit and go to File->New catalog from POT-file menu. Select a required pot-file, then without any other changes press OK. When prompted to save created catalog with translations do it at the following path in the software folder:
resources\locale\<localization code>\LC_MESSAGES\dot15926_<name of one of tm-files>.po
Where localization code is a two letter language code, for example en" or "ru". For example:
resources\locale\ru\LC_MESSAGES\dot15926_main.po
To update a localization open a "po" file in Poedit and update a catalog from a newer pot-file (Catalog->Update from POT-file).
Then you can start translation in Poedit.
In the Editor localization can be changed in File->Settings.