Improve translations managing

merge-requests/64/head
Hugo Posnic 2016-12-17 13:47:07 +01:00
parent c2f7e8daa3
commit 135016bb7e
5 changed files with 16 additions and 1 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
*~
locale/*

14
launch.sh 100644
View File

@ -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

View File

@ -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"