[tor-commits] [tor-launcher/master] Add a script to pull in localizations from transifex.
mikeperry at torproject.org
mikeperry at torproject.org
Wed May 29 00:28:35 UTC 2013
commit cf337dd73caa09df836b35496e54b56496038d5d
Author: Mike Perry <mikeperry-git at 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
More information about the tor-commits
mailing list