components/locale
2024-11-06 00:05:21 -03:00
..
components.pt.tr [fix] Fixed translate 'pt'. [add] Added translate 'pt_BR'. 2024-11-06 00:05:21 -03:00
components.pt_BR.tr [fix] Fixed translate 'pt'. [add] Added translate 'pt_BR'. 2024-11-06 00:05:21 -03:00
po2tr.lua [translate] Translated to Portuguse Language. 2024-03-23 04:32:11 -03:00
pt.po [fix] Fixed translate 'pt'. [add] Added translate 'pt_BR'. 2024-11-06 00:05:21 -03:00
pt_BR.po [fix] Fixed translate 'pt'. [add] Added translate 'pt_BR'. 2024-11-06 00:05:21 -03:00
README.md [translate] Translated to Portuguse Language. 2024-03-23 04:32:11 -03:00
template.pot [translate] Translated to Portuguse Language. 2024-03-23 04:32:11 -03:00

TRANSLATES

Update: 2024-03-23 version of Readme: 1.7


To generate file template.pot, did use terminal command:

cd components
xgettext -n *.lua -L Lua --force-po --keyword=modComponents.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;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.UTF-8 --output-file=./locale/pt.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.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/components.pt.tr

cd ./locale/
lua5.3 po2tr.lua "components" "pt.po"
mv "pt.tr" "components.pt.tr"

Exemple of enable the portuguese language in minetest:

Translate Sample: locale/components.pt.tr

To enable the translate to brazilian portuguese language, write "language = pt" in file "minetest.conf". Or write the command /set -n language pt 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/components

See more: