From ce45291c003520250af776c9d8e24e4ff602e9dd Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 27 May 2013 10:32:47 +0200 Subject: [PATCH] Add tx scripts --- dev/translation/txpull.sh | 29 +++++++++++++++++++++++++++++ dev/translation/txpush.sh | 29 +++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 dev/translation/txpull.sh create mode 100644 dev/translation/txpush.sh diff --git a/dev/translation/txpull.sh b/dev/translation/txpull.sh new file mode 100644 index 00000000000..107fb0490d3 --- /dev/null +++ b/dev/translation/txpull.sh @@ -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 + diff --git a/dev/translation/txpush.sh b/dev/translation/txpush.sh new file mode 100644 index 00000000000..5c5cf2825da --- /dev/null +++ b/dev/translation/txpush.sh @@ -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 +