Localization

PyScripter

Localization
Previous Top Next

PyScripter uses gettext for creating localizing the user interface.  The files that contains the strings be translated is located in the directory:
C:\Program Files\PyScripter\locale

assuming that PyScripter is located at C:\Program Files\PyScripter\.

There are two files of interest to translators in that directory 
1.   default.po
2.   languages.po

The first contains the strings of PyScripter and the second the localized names of different languages.

To create a translation for a new language:

1.  Create a new directory

C:\Program Files\PyScripter\locale\##\LC_MESSAGES\

In this path, ## represents the two-letter ISO 639-1 language code.

2.  Copy the two po files in that directory

3.  Translate the two files using a gettext editor.  Poedit is the recommended editor.

4.  Compile the po files to mo files (Poedit can do that) and you are set.  Use the View Menu to change the language and test your translation.
 
5.  Please submit your translation files to [email protected] for inclusion in the next PyScripter distribution.


Tip:  Use the translation memory of Poedit to speed up the translation process.