eurn/locale
Lunovox fba7fef573
2024-02-22 16:43:08 -03:00
..
eurn.pt.tr 2024-02-22 16:43:08 -03:00
eurn.pt_BR.tr 2024-02-22 16:43:08 -03:00
po2tr.lua Novo README.md 2023-07-20 10:45:42 -03:00
pt_BR.po 2024-02-22 16:43:08 -03:00
README.md Sons do bloco! + API de Registro de Login + Comando /president 2023-07-20 22:44:51 -03:00
template.pot 2024-02-22 16:43:08 -03:00

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:

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:

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: