blob: 43e004d43f8e6d8c73348e07a42a950310014c2a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
cd $(dirname "$0")/..
find . -type f -iname "*.py" | xargs xgettext -j --omit-header -d base -o locales/base.pot
for file in $(find locales/ -name "base.po"); do
echo "Updating: $file"
path=$(dirname $file)
msgmerge --quiet --width 512 --update $file locales/base.pot
msgfmt -o $path/base.mo $file
done
|