2016-12-17 19:11:20 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# Script to generate mo files in a locale folder
|
|
|
|
# Use it just only for testing purpose
|
2016-12-17 13:47:07 +01:00
|
|
|
rm -rf locale
|
|
|
|
mkdir locale
|
|
|
|
cd po
|
2016-12-17 19:11:20 +01:00
|
|
|
for lang in $(ls -1 | sed -e 's/\..*$//'); do
|
2016-12-17 13:47:07 +01:00
|
|
|
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
|