Merge branch 'QA_3_4'

This commit is contained in:
Michal Čihař 2011-05-16 10:41:29 +02:00
commit c95116a941
3 changed files with 29 additions and 2 deletions

View File

@ -7,10 +7,10 @@ msgstr ""
"PO-Revision-Date: 2011-05-09 14:22+0200\n"
"Last-Translator: <gergo314@gmail.com>\n"
"Language-Team: hungarian <hu@li.org>\n"
"Language: hu\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: hu\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Pootle 2.0.5\n"

View File

@ -7,10 +7,10 @@ msgstr ""
"PO-Revision-Date: 2011-05-11 11:55+0200\n"
"Last-Translator: <ViktorJezek@email.cz>\n"
"Language-Team: slovak <sk@li.org>\n"
"Language: sk\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: sk\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
"X-Generator: Pootle 2.0.5\n"

27
scripts/update-po-foreign Executable file
View File

@ -0,0 +1,27 @@
#!/bin/sh
# vim: expandtab sw=4 ts=4 sts=4:
if [ ! -d "$1" ] ; then
echo 'Usage: update-po-foreign DIR'
echo 'Updates po files based on po files in DIR'
exit 1
fi
export LC_COLLATE=C
LOCS=`ls po/*.po | sed 's@.*/\(.*\)\.po@\1@'`
ver=`sed -n "/PMA_VERSION', '/ s/.*PMA_VERSION', '\(.*\)'.*/\1/p" libraries/Config.class.php`
for loc in $LOCS ; do
if [ ! -f "$1/$loc.po" ] ; then
continue
fi
sed -i '
s/SOME DESCRIPTIVE TITLE/phpMyAdmin translation/;
s/PACKAGE/phpMyAdmin/;
s/(C) YEAR/(C) 2003 - '`date +%Y`'/;
s/VERSION/'$ver'/;
s/Project-Id-Version: phpMyAdmin .*/Project-Id-Version: phpMyAdmin '$ver'\\n"/;
' po/$loc.po
msgmerge --previous -C "$1/$loc.po" -U po/$loc.po po/phpmyadmin.pot
done