mirror of
https://gitlab.com/lunovox/e-urn.git
synced 2025-03-14 23:11:21 +00:00
.. | ||
eurn.pt.tr | ||
eurn.pt_BR.tr | ||
po2tr.lua | ||
pt_BR.po | ||
README.md | ||
template.pot |
TRANSLATES
Update: 2023-07-20 version of Readme: 1.6
To generate file template.pot, did use terminal command:
cd eurn
xgettext -n *.lua -L Lua --force-po --keyword=modEUrn.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/eurn.pt_BR.tr
cd ./locale/
lua5.3 po2tr.lua "eurn" "pt_BR.po"
mv "pt_BR.tr" "eurn.pt_BR.tr"
cat eurn.pt_BR.tr | less
Exemple of enable the brazilian portuguese language in minetest:
Translate Sample: locale/eurn.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/eurn
See more: