Translation update done using Pootle.
[phpmyadmin-themes.git] / scripts / update-po
blobf293467441c27c42671ee69fcaf7cb208868b136
1 #!/bin/sh
2 # vim: expandtab sw=4 ts=4 sts=4:
3 export LC_COLLATE=C
4 LOCS=`ls po/*.po | sed 's@.*/\(.*\)\.po@\1@'`
5 xgettext \
6 -d phpmyadmin \
7 --msgid-bugs-address=phpmyadmin-devel@lists.sourceforge.net \
8 -o po/phpmyadmin.pot \
9 --language=PHP \
10 --add-comments=l10n \
11 --add-location \
12 --debug \
13 --keyword=__ --keyword=_pgettext:1c,2 --keyword=_ngettext:1,2 \
14 --copyright-holder="phpMyAdmin devel team" \
15 `find . -name '*.php' | sort`
17 ver=`sed -n "/PMA_VERSION', '/ s/.*PMA_VERSION', '\(.*\)'.*/\1/p" libraries/Config.class.php`
19 sed -i '
20 s/SOME DESCRIPTIVE TITLE/phpMyAdmin translation/;
21 s/PACKAGE/phpMyAdmin/;
22 s/(C) YEAR/(C) 2003 - '`date +%Y`'/;
23 s/VERSION/'$ver'/;
24 ' po/phpmyadmin.pot
26 for loc in $LOCS ; do
27 sed -i '
28 s/SOME DESCRIPTIVE TITLE/phpMyAdmin translation/;
29 s/PACKAGE/phpMyAdmin/;
30 s/(C) YEAR/(C) 2003 - '`date +%Y`'/;
31 s/VERSION/'$ver'/;
32 s/Project-Id-Version: phpMyAdmin .*/Project-Id-Version: phpMyAdmin '$ver'\\n"/;
33 ' po/$loc.po
34 if [ -f ../localized_docs/po/$loc.po ] ; then
35 msgmerge --previous -C ../localized_docs/po/$loc.po -U po/$loc.po po/phpmyadmin.pot
36 else
37 msgmerge --previous -U po/$loc.po po/phpmyadmin.pot
39 done