2 # vim: expandtab sw=4 ts=4 sts=4:
5 # Generate PHP code for advisor rules
6 php .
/scripts
/advisor2php
> po
/advisory_rules.php
8 # Update pot (template), ensure that advisor is at the end
9 LOCS
=`ls po/*.po | sed 's@.*/\(.*\)\.po@\1@'`
12 --msgid-bugs-address=phpmyadmin-devel@lists.sourceforge.net \
13 -o po
/phpmyadmin.pot \
18 --keyword=__
--keyword=_pgettext
:1c
,2 --keyword=_ngettext
:1,2 \
19 --copyright-holder="phpMyAdmin devel team" \
20 `find . -name '*.php' -not -path './test/*' -not -path './po/*' | sort` \
23 ver
=`sed -n "/PMA_VERSION', '/ s/.*PMA_VERSION', '\(.*\)'.*/\1/p" libraries/Config.class.php`
26 s/SOME DESCRIPTIVE TITLE/phpMyAdmin translation/;
27 s/PACKAGE/phpMyAdmin/;
28 s/(C) YEAR/(C) 2003 - '`date +%Y`'/;
32 # Update po files (translations)
35 s/SOME DESCRIPTIVE TITLE/phpMyAdmin translation/;
36 s/PACKAGE/phpMyAdmin/;
37 s/(C) YEAR/(C) 2003 - '`date +%Y`'/;
39 s/Project-Id-Version: phpMyAdmin .*/Project-Id-Version: phpMyAdmin '$ver'\\n"/;
41 if [ -f ..
/localized_docs
/po
/$loc.po
] ; then
42 msgmerge
--previous -C ..
/localized_docs
/po
/$loc.po
-U po
/$loc.po po
/phpmyadmin.pot
44 msgmerge
--previous -U po
/$loc.po po
/phpmyadmin.pot