dolibarr/dev/translation/txpull.sh

33 lines
1.0 KiB
Bash
Raw Normal View History

2013-05-27 10:32:47 +02:00
#!/bin/sh
#------------------------------------------------------
# Script to pull language files to Transifex
#
# Laurent Destailleur - eldy@users.sourceforge.net
#------------------------------------------------------
2013-08-03 16:24:52 +02:00
# Usage: txpull.sh (all|xx_XX) [-r dolibarr.file] [-f]
2013-05-27 10:32:47 +02:00
#------------------------------------------------------
# Syntax
if [ "x$1" = "x" ]
then
2013-08-03 16:24:52 +02:00
echo "This pull remote transifex files to local dir."
2013-09-03 00:06:42 +02:00
echo "Note: If you pull a language file (not source), file will be skipped if local file is newer."
2013-08-03 16:24:52 +02:00
echo " Using -f will overwrite local file (does not work with 'all')."
echo "Usage: txpull.sh (all|xx_XX) [-r dolibarr.file] [-f]"
2013-05-27 10:32:47 +02:00
exit
fi
if [ "x$1" = "xall" ]
then
for fic in ar_SA bg_BG ca_ES cs_CZ da_DK de_DE el_GR es_ES et_EE fa_IR fi_FI fr_FR he_IL hu_HU is_IS it_IT ja_JP ko_KR lv_LV nb_NO nl_NL pl_PL pt_PT ro_RO ru_RU ru_UA sk_SK sl_SI sv_SE tr_TR uz_UZ vi_VN zh_CN zh_TW
2013-05-27 10:32:47 +02:00
do
2013-05-27 12:02:31 +02:00
echo "tx pull -l $fic $2 $3"
tx pull -l $fic $2 $3
2013-05-27 10:32:47 +02:00
done
else
2013-08-03 16:24:52 +02:00
echo "tx pull -l $1 $2 $3 $4"
tx pull -l $1 $2 $3 $4
2013-05-27 10:32:47 +02:00
fi