Add tx scripts
This commit is contained in:
parent
c5737e214b
commit
ce45291c00
29
dev/translation/txpull.sh
Normal file
29
dev/translation/txpull.sh
Normal file
@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
#------------------------------------------------------
|
||||
# Script to pull language files to Transifex
|
||||
#
|
||||
# Laurent Destailleur - eldy@users.sourceforge.net
|
||||
#------------------------------------------------------
|
||||
# Usage: txpull.sh [all|xx_XX]
|
||||
#------------------------------------------------------
|
||||
|
||||
# Syntax
|
||||
if [ "x$1" = "x" ]
|
||||
then
|
||||
echo "Usage: txpull.sh [all|xx_XX]"
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
if [ "x$1" = "xall" ]
|
||||
then
|
||||
for fic in ar_SA bg_BG ca_ES da_DK de_DE el_GR es_ES et_EE fa_IR fi_FI fr_FR hu_HU is_IS it_IT ja_JP nb_NO nl_NL pl_PL pt_PT ro_RO ru_RU ru_UA sl_SI sv_SE tr_TR zh_CN zh_TW
|
||||
do
|
||||
echo "tx pull -l $fic"
|
||||
tx pull -l $fic
|
||||
done
|
||||
else
|
||||
echo "tx pull -l $1"
|
||||
tx pull -l $1
|
||||
fi
|
||||
|
||||
29
dev/translation/txpush.sh
Normal file
29
dev/translation/txpush.sh
Normal file
@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
#------------------------------------------------------
|
||||
# Script to push language files to Transifex
|
||||
#
|
||||
# Laurent Destailleur - eldy@users.sourceforge.net
|
||||
#------------------------------------------------------
|
||||
# Usage: txpush.sh [all|xx_XX]
|
||||
#------------------------------------------------------
|
||||
|
||||
# Syntax
|
||||
if [ "x$1" = "x" ]
|
||||
then
|
||||
echo "Usage: txpush.sh [all|xx_XX]"
|
||||
exit
|
||||
fi
|
||||
|
||||
|
||||
if [ "x$1" = "xall" ]
|
||||
then
|
||||
for fic in ar_SA bg_BG ca_ES da_DK de_DE el_GR es_ES et_EE fa_IR fi_FI fr_FR hu_HU is_IS it_IT ja_JP nb_NO nl_NL pl_PL pt_PT ro_RO ru_RU ru_UA sl_SI sv_SE tr_TR zh_CN zh_TW
|
||||
do
|
||||
echo "tx push -t -l $fic"
|
||||
tx push -t -l $fic
|
||||
done
|
||||
else
|
||||
echo "tx push -t -l $1"
|
||||
tx push -t -l $1
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user