2016-12-17 19:11:20 +01:00
|
|
|
#!/bin/sh
|
2016-12-18 19:57:16 +01:00
|
|
|
# Script to generate mo files in a temp locale folder
|
|
|
|
# Use it only for testing purpose
|
2019-11-14 18:03:03 +01:00
|
|
|
export PLUGIN_HELLO=True
|
2019-11-24 19:08:24 +01:00
|
|
|
export PYTHONPATH="$HOME/test/gnome-layout-switcher/bin:$HOME/Data/projects/application-utility"
|
2016-12-17 13:47:07 +01:00
|
|
|
rm -rf locale
|
|
|
|
mkdir locale
|
|
|
|
cd po
|
2016-12-18 22:55:41 +01:00
|
|
|
for lang in $(ls *.po); do
|
2017-01-14 15:04:30 +01:00
|
|
|
lang=${lang::-3}
|
|
|
|
mkdir -p ../locale/${lang//_/-}/LC_MESSAGES
|
|
|
|
msgfmt -c -o ../locale/${lang//_/-}/LC_MESSAGES/manjaro-hello.mo $lang.po
|
2016-12-17 13:47:07 +01:00
|
|
|
done
|
2016-12-17 19:14:39 +01:00
|
|
|
cd ..
|
2017-05-09 19:33:52 +02:00
|
|
|
python3 src/manjaro_hello.py --dev
|