Translation update done using Pootle.
[gammu.git] / admin / locales-update
blob8e3981899bea6fc727dadbcc49e18d217306565f
1 #!/bin/sh
2 # vim: expandtab sw=4 ts=4 sts=4:
4 set -e
6 LOCS=`ls locale/*/gammu.po | sed 's@.*/\(.*\)/[^/]*@\1@'`
7 ver=`sed -n 's/set (GAMMU_VERSION "\([^"]*\)".*)/\1/p' CMakeLists.txt`
9 xgettext \
10 -d gammu \
11 --msgid-bugs-address=michal@cihar.com \
12 -o locale/gammu.pot \
13 --language=C \
14 --keyword=_ \
15 --keyword=N_ \
16 --add-comments=l10n \
17 --add-location \
18 --copyright-holder "Michal Čihař <michal@cihar.com>" \
19 --package-name gammu \
20 --package-version $ver \
21 `find gammu helper gammu-detect -name '*.c' -o -name '*.h' | sort`
23 xgettext \
24 -d libgammu \
25 --msgid-bugs-address=michal@cihar.com \
26 -o locale/libgammu.pot \
27 --language=C \
28 --keyword=_ \
29 --keyword=N_ \
30 --add-comments=l10n \
31 --add-location \
32 --copyright-holder "Michal Čihař <michal@cihar.com>" \
33 --package-name libgammu \
34 --package-version $ver \
35 `find libgammu -name '*.c' -o -name '*.h' | sort`
37 if [ "x$1" = "x--po4a" ] ; then
38 ./admin/po4a-docs
39 ./admin/po4a-manual
42 for loc in $LOCS ; do
43 cd locale/$loc
44 msgmerge -U -C ../../../wammu/locale/$loc/docs.po -C ../../../wammu/locale/$loc/wammu.po -C gammu.po -C libgammu.po -C manual.po docs.po ../docs.pot
45 msgmerge -U -C ../../../wammu/locale/$loc/docs.po -C ../../../wammu/locale/$loc/wammu.po -C gammu.po -C libgammu.po -C docs.po manual.po ../manual.pot
46 if [ -f ../../..//wammu_web/locale/$loc/LC_MESSAGES/django.po ] ; then
47 msgmerge -C ../../../wammu_web/locale/$loc/LC_MESSAGES/django.po -U docs.po ../docs.pot
48 msgmerge -C ../../../wammu_web/locale/$loc/LC_MESSAGES/django.po -U manual.po ../manual.pot
50 cd ../..
51 done
53 sed -i '
54 s/SOME DESCRIPTIVE TITLE/Gammu translation/;
55 s/PACKAGE/Gammu/;
56 s/(C) YEAR/(C) 2003 - '`date +%Y`'/;
57 s/VERSION/'$ver'/;
58 ' locale/gammu.pot
59 sed -i '
60 s/SOME DESCRIPTIVE TITLE/libGammu translation/;
61 s/PACKAGE/libGammu/;
62 s/(C) YEAR/(C) 2003 - '`date +%Y`'/;
63 s/VERSION/'$ver'/;
64 ' locale/libgammu.pot
66 for loc in $LOCS ; do
67 sed -i '
68 s/SOME DESCRIPTIVE TITLE/Gammu translation/;
69 s/PACKAGE/Gammu/;
70 s/VERSION/'$ver'/;
71 s/Project-Id-Version: Gammu [0-9.]*/Project-Id-Version: Gammu '$ver'/;
72 ' locale/$loc/gammu.po
73 msgmerge -C ../wammu/locale/$loc/docs.po -C ../wammu/locale/$loc/wammu.po -C locale/$loc/libgammu.po -C locale/$loc/docs.po -C locale/$loc/manual.po -U locale/$loc/gammu.po locale/gammu.pot
74 if [ -f ../wammu_web/locale/$loc/LC_MESSAGES/django.po ] ; then
75 msgmerge -C ../wammu_web/locale/$loc/LC_MESSAGES/django.po -U locale/$loc/gammu.po locale/gammu.pot
77 sed -i '
78 s/SOME DESCRIPTIVE TITLE/libGammu translation/;
79 s/PACKAGE/libGammu/;
80 s/VERSION/'$ver'/;
81 s/Project-Id-Version: libGammu [0-9.]*/Project-Id-Version: libGammu '$ver'/;
82 ' locale/$loc/libgammu.po
83 msgmerge -C ../wammu/locale/$loc/docs.po -C ../wammu/locale/$loc/wammu.po -C locale/$loc/gammu.po -C locale/$loc/docs.po -C locale/$loc/manual.po -U locale/$loc/libgammu.po locale/libgammu.pot
84 if [ -f ../wammu_web/locale/$loc/LC_MESSAGES/django.po ] ; then
85 msgmerge -C ../wammu_web/locale/$loc/LC_MESSAGES/django.po -U locale/$loc/libgammu.po locale/libgammu.pot
87 sed -i '
88 s/SOME DESCRIPTIVE TITLE/Gammu documentation translation/;
89 s/PACKAGE/Gammu-docs/;
90 s/(C) YEAR/(C) 2003 - '`date +%Y`'/;
91 s/VERSION/'$ver'/;
92 s/Project-Id-Version: Gammu-docs [0-9.]*/Project-Id-Version: Gammu-docs '$ver'/;
93 ' locale/$loc/docs.po
94 sed -i '
95 s/SOME DESCRIPTIVE TITLE/Gammu manual translation/;
96 s/PACKAGE/Gammu-manual/;
97 s/(C) YEAR/(C) 2003 - '`date +%Y`'/;
98 s/VERSION/'$ver'/;
99 s/Project-Id-Version: Gammu-manual [0-9.]*/Project-Id-Version: Gammu-manual '$ver'/;
100 ' locale/$loc/manual.po
101 done