Update by some strings from Gammu.
[wammu.git] / admin / locales-update
blob3ff0b9ecc8845626ddb3fdc09a2695ac6f769f58
1 #!/bin/sh
2 # vim: expandtab sw=4 ts=4 sts=4:
3 LOCS=`ls locale/*/wammu.po | sed 's@.*/\(.*\)/[^/]*@\1@'`
4 xgettext \
5 -d wammu \
6 --msgid-bugs-address=michal@cihar.com \
7 -o locale/wammu.pot \
8 --language=Python \
9 --add-comments=l10n \
10 --add-location \
11 --copyright-holder="Michal Čihař" \
12 `find Wammu/ -name '*.py' | sort` wammu-configure.py wammu.py wammu_setup/msgfmt.py
14 ver=`python -c 'import Wammu; print Wammu.__version__'`
15 sed -i '
16 s/SOME DESCRIPTIVE TITLE/Wammu translation/;
17 s/PACKAGE/Wammu/;
18 s/(C) YEAR/(C) 2003 - '`date +%Y`'/;
19 s/VERSION/'$ver'/;
20 ' locale/wammu.pot
22 for loc in $LOCS ; do
23 sed -i '
24 s/SOME DESCRIPTIVE TITLE/Wammu translation/;
25 s/PACKAGE/Wammu/;
26 s/VERSION/'$ver'/;
27 s/Project-Id-Version: Wammu [0-9.]*/Project-Id-Version: Wammu '$ver'/;
28 ' locale/$loc/wammu.po
29 msgmerge \
30 -C ../gammu/locale/$loc/gammu.po \
31 -C ../gammu/locale/$loc/libgammu.po \
32 -C ../gammu/locale/$loc/docs.po \
33 -U locale/$loc/wammu.po locale/wammu.pot
34 done