summaryrefslogtreecommitdiff
path: root/bin/pykolab-update-lang
blob: cd2cdb57ab61942316a0f89c5fb9015f30831187 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

echo "Updating language files"
cd po/
intltool-update --pot --gettext-package=pykolab
if [ "$1" == "po" ]; then
    for lang_file in `ls -1 *.po`; do
        lang=$(echo ${lang_file} | cut -f1 -d'.')
        intltool-update -d ${lang}
        msginit --no-translator --locale=${lang} --input=pykolab.pot --output=${lang_file}
        msgmerge -U ${lang_file} pykolab.pot
    done
    
fi
cd ..