Improve translations managing
parent
c2f7e8daa3
commit
135016bb7e
|
@ -1 +1,2 @@
|
||||||
*~
|
*~
|
||||||
|
locale/*
|
||||||
|
|
|
@ -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
|
Binary file not shown.
|
@ -37,7 +37,7 @@ class ManjaroHello():
|
||||||
self.desktop_path = "/usr/share/applications/" + self.app + ".desktop"
|
self.desktop_path = "/usr/share/applications/" + self.app + ".desktop"
|
||||||
else:
|
else:
|
||||||
self.data_path = "../data/"
|
self.data_path = "../data/"
|
||||||
self.locale_path = "locale/"
|
self.locale_path = "../locale/"
|
||||||
self.ui_path = "../ui/"
|
self.ui_path = "../ui/"
|
||||||
self.desktop_path = self.current_folder[:-4] + self.app + ".desktop"
|
self.desktop_path = self.current_folder[:-4] + self.app + ".desktop"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue