Updating language files from Transifex

This commit is contained in:
Benjamin Sonntag 2012-08-21 17:07:04 +00:00
parent 8f722bb00c
commit 4dace1781c
3 changed files with 16 additions and 1 deletions

1
.gitattributes vendored
View File

@ -525,6 +525,7 @@ src/slave_dns -text
src/spoolsize.php -text
src/sqlbackup.sh -text
src/update_domains.sh -text
/svnup.sh -text
tests/make_mail_dataset.sh -text
tests/mechdump.pm -text
tests/test_demo.pl -text

14
svnup.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
pushd ../..
for i in alternc alternc-bounces alternc-jabber alternc-munin alternc-procmail alternc-stats alternc-apps alternc-changepass alternc-mailman alternc-philesight alternc-secondarymx alternc-sympa alternc-awstats alternc-doc alternc-mergelog alternc-phpcron alternc-slavedns alternc-webalizer
do
if [ -d "$i" ]; then
pushd $i
svn up
popd
fi
done
popd

View File

@ -17,7 +17,7 @@ do
cp "lang/${lang}.po" "bureau/locales/$lang/LC_MESSAGES/alternc"
sublang="`echo $lang | cut -c 1-2`"
# merge the po for debconf into the relevant file for the modules :
if [ "$lang" != "en" ]
if [ "$lang" != "en_US" ]
then
msgcat --use-first --less-than=3 --more-than=1 -o tmp.po "lang/${lang}.po" "debian/po/${sublang}.po"
mv -f tmp.po "debian/po/${sublang}.po"