2013-01-30 21:57:14 +00:00
|
|
|
#!/bin/sh
|
2013-08-15 08:30:01 +00:00
|
|
|
. ./etc/translation.vars
|
2017-05-16 12:26:51 +00:00
|
|
|
[ -f ./etc/translation.vars.custom ] && . ./etc/translation.vars.custom
|
2013-08-31 23:58:20 +00:00
|
|
|
export TZ=UTC
|
2013-01-18 11:01:32 +00:00
|
|
|
|
2013-07-21 22:15:24 +00:00
|
|
|
if [ $# -ge 1 ]
|
|
|
|
then
|
2013-08-31 23:58:20 +00:00
|
|
|
$PYBABEL update -D $1 -i $POTDIR/$1.pot -d $TRANSDIR
|
2014-03-05 02:43:53 +00:00
|
|
|
for file in $(ls i2p2www/translations/*/LC_MESSAGES/$1.po); do
|
|
|
|
sed -i '/^#~/,+2d' $file
|
|
|
|
done
|
2013-07-21 22:15:24 +00:00
|
|
|
else
|
|
|
|
for domain in $(ls $BABELCFG); do
|
2013-08-31 23:58:20 +00:00
|
|
|
$PYBABEL update -D $domain -i $POTDIR/$domain.pot -d $TRANSDIR
|
2014-03-05 02:43:53 +00:00
|
|
|
for file in $(ls i2p2www/translations/*/LC_MESSAGES/$domain.po); do
|
|
|
|
sed -i '/^#~/,+2d' $file
|
|
|
|
done
|
2013-07-21 22:15:24 +00:00
|
|
|
done
|
|
|
|
fi
|