Allow to pull translations for single plugins
This commit is contained in:
parent
f96e93eec2
commit
fd5f6ebf05
2 changed files with 12 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
||||||
[main]
|
[main]
|
||||||
host = https://www.transifex.com
|
host = https://www.transifex.com
|
||||||
lang_map = en: en_US, de: de_DE, da: da_DK, es: es_ES, fi: fi_FI, fr: fr_FR, ja: ja_JP, nl: nl_NL, cs: cs_CZ, vi: vi_VN, pl: pl_PL, th: th_TH, sv: sv_SE, he: he_IL, sk: sk_SK, sl: sl_SI, uk: uk_UA
|
lang_map = en: en_US, de: de_DE, da: da_DK, es: es_ES, fi: fi_FI, fr: fr_FR, ja: ja_JP, nl: nl_NL, cs: cs_CZ, vi: vi_VN, pl: pl_PL, th: th_TH, sv: sv_SE, he: he_IL, hr: hr_HR, sk: sk_SK, sl: sl_SI, uk: uk_UA
|
||||||
type = PHP_ALT_ARRAY
|
type = PHP_ALT_ARRAY
|
||||||
|
|
||||||
[kolab.calendar]
|
[kolab.calendar]
|
||||||
|
|
|
@ -6,9 +6,15 @@
|
||||||
# --force is necessary to avoid timestamp issues
|
# --force is necessary to avoid timestamp issues
|
||||||
# https://bugs.launchpad.net/ironic/+bug/1298645/comments/4
|
# https://bugs.launchpad.net/ironic/+bug/1298645/comments/4
|
||||||
|
|
||||||
tx --debug pull --force -a --mode translator
|
|
||||||
|
|
||||||
PWD=`dirname "$0"`
|
PWD=`dirname "$0"`
|
||||||
|
RES=${1:-'*'}
|
||||||
|
TXARGS=""
|
||||||
|
|
||||||
|
if [ "$RES" != "*" ]; then
|
||||||
|
TXARGS="-r kolab.$RES"
|
||||||
|
fi
|
||||||
|
|
||||||
|
tx --debug pull --force -a --mode translator $TXARGS
|
||||||
|
|
||||||
do_count()
|
do_count()
|
||||||
{
|
{
|
||||||
|
@ -37,7 +43,7 @@ do_clean()
|
||||||
}
|
}
|
||||||
|
|
||||||
# clean up translation files
|
# clean up translation files
|
||||||
for plugin in $PWD/plugins/*; do
|
for plugin in $PWD/plugins/$RES; do
|
||||||
if [ -s $plugin/localization/en_US.inc ]; then
|
if [ -s $plugin/localization/en_US.inc ]; then
|
||||||
do_count $plugin/localization/en_US.inc
|
do_count $plugin/localization/en_US.inc
|
||||||
EN_CNT=$?
|
EN_CNT=$?
|
||||||
|
@ -52,6 +58,8 @@ for plugin in $PWD/plugins/*; do
|
||||||
# git-add localizations with more than 0%
|
# git-add localizations with more than 0%
|
||||||
if [ "$PERCENT" != "0" ]; then
|
if [ "$PERCENT" != "0" ]; then
|
||||||
git add $file
|
git add $file
|
||||||
|
else
|
||||||
|
rm $file
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue