From 135016bb7e0d8da833ffb91a796abb1b43f4eba6 Mon Sep 17 00:00:00 2001 From: Hugo Posnic Date: Sat, 17 Dec 2016 13:47:07 +0100 Subject: [PATCH] Improve translations managing --- .gitignore | 1 + launch.sh | 14 ++++++++++++++ .../LC_MESSAGES/manjaro-hello.po => po/fr_FR.po | 0 src/locale/fr_FR/LC_MESSAGES/manjaro-hello.mo | Bin 2266 -> 0 bytes src/manjaro-hello.py | 2 +- 5 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 launch.sh rename src/locale/fr_FR/LC_MESSAGES/manjaro-hello.po => po/fr_FR.po (100%) delete mode 100644 src/locale/fr_FR/LC_MESSAGES/manjaro-hello.mo diff --git a/.gitignore b/.gitignore index b25c15b..2cb83eb 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *~ +locale/* diff --git a/launch.sh b/launch.sh new file mode 100644 index 0000000..08cd2e5 --- /dev/null +++ b/launch.sh @@ -0,0 +1,14 @@ +# Use it just for local tests +rm -rf locale +mkdir locale +cd po +for lang in $(ls -1 | sed -e 's/\..*$//') +do + if [ $lang != "manjaro-hello" ] + then + mkdir -p ../locale/$lang/LC_MESSAGES + msgfmt -c -o ../locale/$lang/LC_MESSAGES/manjaro-hello.mo $lang.po + fi +done +cd ../src +python manjaro-hello.py diff --git a/src/locale/fr_FR/LC_MESSAGES/manjaro-hello.po b/po/fr_FR.po similarity index 100% rename from src/locale/fr_FR/LC_MESSAGES/manjaro-hello.po rename to po/fr_FR.po diff --git a/src/locale/fr_FR/LC_MESSAGES/manjaro-hello.mo b/src/locale/fr_FR/LC_MESSAGES/manjaro-hello.mo deleted file mode 100644 index 1ab44aa6a42e36f6cb22d18769c2e05042620ae8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2266 zcmaJ>J!~UI6rO|Q&-@?1hY)&Kpj;qp;uLVoaX`-bkxzCKB@TfGG~ONClkCncGqcVG z0is2sK!>hD6jXpEprt@mF0Y_MNE8(4DhgUk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