Added kanji frequency selector and linked it into KanjiListEditor.
[jben2_gui.git] / python / po / update_po_files.sh
blob4be2bd54ac881aff63ed59608a0c0cd728ee9d95
1 #!/bin/bash
3 sources_list="xgettext_sources.txt"
4 potfile="jben.pot"
5 langs="en ja"
7 export LANG="en_US"
9 rm ${sources_list} ${potfile}
11 find ../jben -iname '*.py' > ${sources_list}
12 xgettext -f ${sources_list} -L python -o ${potfile}
14 for lang in ${langs}; do
15 outfile="${lang}.po"
16 if [ -e ${outfile} ]; then
17 msgmerge ${outfile} ${potfile} --output-file=${outfile}.new
18 mv ${outfile} ${outfile}.bak
19 mv ${outfile}.new ${outfile}
20 else
21 msginit --locale=${lang} \
22 --input=${potfile} --output-file=${outfile}
24 done