bg translation, thanks to "Svetoslav Stefanov" <lfu.project@gmail.com>
[wammu.git] / admin / locales-update
blob66c9daf0d4cc96eb569cec955f728b639b44a268
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 --previous -U locale/$loc/wammu.po locale/wammu.pot
30 done