commit cf337dd73caa09df836b35496e54b56496038d5d Author: Mike Perry mikeperry-git@torproject.org Date: Tue May 28 17:27:54 2013 -0700
Add a script to pull in localizations from transifex. --- localization/import-translations.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+)
diff --git a/localization/import-translations.sh b/localization/import-translations.sh new file mode 100755 index 0000000..bd05bc5 --- /dev/null +++ b/localization/import-translations.sh @@ -0,0 +1,31 @@ +#!/bin/sh + +BUNDLE_LOCALES="de es fa fr it ko nl pl pt ru vi zh-CN" + +if [ -d translations ]; +then + cd translations + git fetch origin + cd .. +else + git clone https://git.torproject.org/translation.git +fi + +cd translation +for i in $BUNDLE_LOCALES +do + UL="`echo $i|tr - _`" + mkdir -p ../../src/chrome/locale/$i/ + + git checkout tor-launcher-network-settings + git merge origin/tor-launcher-network-settings + cp $UL/network-settings.dtd ../../src/chrome/locale/$i/ + + git checkout tor-launcher-progress + git merge origin/tor-launcher-progress + cp $UL/progress.dtd ../../src/chrome/locale/$i/ + + git checkout tor-launcher-properties + git merge origin/tor-launcher-properties + cp $UL/torlauncher.properties ../../src/chrome/locale/$i/ +done
tor-commits@lists.torproject.org