Difference between revisions of "Language Administration"

From GnuCash
Jump to: navigation, search
(Updating pot Files: Glossary: CMakeLists.txt)
(Checking New po Files)
Line 1: Line 1:
 
[[Category:L10N|Language Administration]]
 
[[Category:L10N|Language Administration]]
 +
==Checking New po Files==
 +
;Glossary: Check: <Syntaxhighlight lang="sh">
 +
# 1 file:
 +
msgfmt -c --statistics po/glossary/tr.po
 +
# all files:
 +
for i in po/glossary/*.po; do echo -n "$i:"; LANG=C msgfmt -c --statistics $i ; done
 +
</syntaxhighlight>
 +
 
==Updating pot Files==
 
==Updating pot Files==
 
In theory each time a user visible message changes, a new pot file should be created and merged into all po files. Sometimes new po files are requested.
 
In theory each time a user visible message changes, a new pot file should be created and merged into all po files. Sometimes new po files are requested.

Revision as of 21:39, 9 February 2021

Checking New po Files

Glossary
Check:
# 1 file:
msgfmt -c --statistics po/glossary/tr.po
# all files:
for i in po/glossary/*.po; do echo -n "$i:"; LANG=C msgfmt -c --statistics $i ; done

Updating pot Files

In theory each time a user visible message changes, a new pot file should be created and merged into all po files. Sometimes new po files are requested.

Glossary
Update:
# 1. make pot:
po/glossary/txt-to-pot.sh po/glossary/gnc-glossary.txt > po/glossary/gnc-glossary.pot
# 2. update glossaries:
for i in po/glossary/*.po; do echo -n "$i:"; LANG=C msgmerge --previous -U $i po/glossary/gnc-glossary.pot ; done
New language:
cd po/glossary/
# make pot:
./txt-to-pot.sh gnc-glossary.txt > gnc-glossary.pot
# add a new glossary:
msginit --no-translator -l # add <locale>
# add it to CMakeLists.txt
cd ../..
Program

Website

Creating New po Files