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 1ab44aa..0000000 Binary files a/src/locale/fr_FR/LC_MESSAGES/manjaro-hello.mo and /dev/null differ diff --git a/src/manjaro-hello.py b/src/manjaro-hello.py index 4fa04ec..241259b 100644 --- a/src/manjaro-hello.py +++ b/src/manjaro-hello.py @@ -37,7 +37,7 @@ class ManjaroHello(): self.desktop_path = "/usr/share/applications/" + self.app + ".desktop" else: self.data_path = "../data/" - self.locale_path = "locale/" + self.locale_path = "../locale/" self.ui_path = "../ui/" self.desktop_path = self.current_folder[:-4] + self.app + ".desktop"