summaryrefslogtreecommitdiffstats
path: root/bin/pykolab-update-lang
blob: ce171b5f664537725ecbfebcafa3abd4617e53df (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 ..