mirror of
https://gitlab.com/lunovox/e-urn.git
synced 2025-03-15 15:31:21 +00:00
2.6 KiB
2.6 KiB
TRANSLATES
Update: 2023-03-19 version of Readme: 1.5
To generate file template.pot, did use terminal command:
cd soundchat
xgettext -n *.lua -L Lua --force-po --keyword=modSoundChat.translate --from-code=UTF-8 -o ./locale/template.pot
Generate file '.po' per template.pot file:
To translate template.pot to your language in '.po' file:
- Locales used: ca;cs;da;de;dv;eo;es;et;fr;hu;id;it;ja;jbo;kn;lt;ms;nb;nl;pl;pt;pt_BR;ro;ru;sl;sr_Cyrl;sv;sw;tr;uk
Sintaxe:
$ msginit --no-translator --no-wrap --locale=$LANG.UTF-8 --output-file=$LANG.po --input=$POT
- Example to brazilian portuguese language: locale/pt_BR.po
Example:
msginit --no-translator --no-wrap --locale=pt_BR.UTF-8 --output-file=./locale/pt_BR.po --input=./locale/template.pot
To Update ".po" file from a template.pot file.
Sintaxe:
$ msgmerge --sort-output --no-wrap --update --backup=off $LANG.po $POT
- Example to brazilian portuguese language: locale/pt_BR.po
Example:
msgmerge --sort-output --no-wrap --update --backup=off ./locale/pt_BR.po ./locale/template.pot
To translate template.pot to your language use GUI App PoEdit.:
Install the PoEdit:
sudo apt-get install poedit
Convert '.po' file to '.tr' file.
Translate Sample: locale/soundchat.pt_BR.tr
$ cd ./locale/
$ lua5.3 po2tr.lua "soundchat" "pt_BR.po"
$ mv "pt_BR.tr" "soundchat.pt_BR.tr"
$ cat soundchat.pt_BR.tr | less
Exemple of enable the brazilian portuguese language in minetest:
Translate Sample: locale/soundchat.pt_BR.tr
To enable the translate to brazilian portuguese language, write "language = pt_BR" in file "minetest.conf". Or write the command /set -n language pt_BR
in game chat, and run again the minetest game.
PLEASE SUBMIT YOUR NEW TRANSLATION TO THE DEVELOPERS OF THIS MOD THROUGH THE GIT PROJECT BELOW:
https://gitlab.com/lunovox/soundchat
See more: