Index: Requirements · Configuration · Translation instructions
If you consider contributing to this project, we highly recommend you read and follow our Team privacy guide before you continue reading.
All commands below must be entered from what's going to be your StateMapper's local folder.
-
If you haven't installed PoEdit yet, install it now:
sudo apt-get install poedit
-
If you haven't downloaded the project's files yet, download them now:
sudo apt-get install git git clone github.com/StateMapper/StateMapper . # don't forget the final dot!
-
To add a new language, copy the
es_ES
translation folder as follows:cp -fR src/languages/es_ES src/languages/xx_YY
..where
xx
is an ISO-639-1 language code andYY
is an ISO-3166 Alpha-2 country code.
All commands below must be entered from your StateMapper's local folder.
-
To start PoEdit, enter:
poedit src/languages/xx_YY/LC_MESSAGES/smap.po
-
If you just created this language file, click
Catalog > Properties...
, correct theLanguage
field and clickOK
. -
Push the
Update
button. -
Translate or correct all lines that are fuzzy (bold or colored). Special strings like
%s
and%d
must be left as is and in the some order, when translating. -
Click the save button (it automatically recompile the
.mo
in the same folder). -
Close PoEdit.
-
Push your translation files to the project's repository:
git add src/languages/xx_YY git commit -m "A nice message of your choice, in English!" git push
Then enter your credentials and confirm. We might accept your push request within 24-48h, thank you very much for your contribution!
← Project's homepage · Copyright © 2017-2018 StateMapper.net · Licensed under GNU AGPLv3 · ↑ top