diff options
author | Nicolas Hennion <nicolas@nicolargo.com> | 2012-11-13 21:58:52 +0100 |
---|---|---|
committer | Nicolas Hennion <nicolas@nicolargo.com> | 2012-11-13 21:58:52 +0100 |
commit | 62b1757b05c0e28c93db6526b546ab7cd5b00a94 (patch) | |
tree | 2396fc6921d701c98ece3b1542c6f9d468eeb600 /i18n-gen.sh | |
parent | e66abfc959e8a095285fc06003bd4290825015b4 (diff) |
Correct French traduction
Diffstat (limited to 'i18n-gen.sh')
-rwxr-xr-x | i18n-gen.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/i18n-gen.sh b/i18n-gen.sh new file mode 100755 index 00000000..4de116f2 --- /dev/null +++ b/i18n-gen.sh @@ -0,0 +1,20 @@ +#!/bin/sh +# +# To create a new language pack XX +# > mkdir -p ./i18n/XX/LC_MESSAGES/ +# > msginit --input=./i18n/glances.pot --output=./i18n/XX/LC_MESSAGES/glances.po +# Translate using the ./i18n/XX/LC_MESSAGES/glances.po file +# Then add XX to the LANG_LIST +# Run this script +# + +LANG_LIST='es fr it pt_BR' + +xgettext --language=Python --keyword=_ --output=./i18n/glances.pot ./glances/glances.py + +for i in `echo $LANG_LIST` +do + echo "Generate language pack for: $i" + msgmerge --update --no-fuzzy-matching --backup=off ./i18n/$i/LC_MESSAGES/glances.po ./i18n/glances.pot + msgfmt ./i18n/$i/LC_MESSAGES/glances.po --output-file ./i18n/$i/LC_MESSAGES/glances.mo +done |