mirror of
https://gitlab.com/lunovox/components.git
synced 2025-03-14 23:51:21 +00:00
.. | ||
components.pt.tr | ||
components.pt_BR.tr | ||
po2tr.lua | ||
pt.po | ||
pt_BR.po | ||
README.md | ||
template.pot |
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 to brazilian portuguese language: locale/pt.po
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 to brazilian portuguese language: locale/pt.po
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: