commit 10dc44d9a622d4069d7e16665de9c79113c2d854 Author: Sukhbir Singh sukhbir@torproject.org Date: Fri Nov 22 14:03:12 2013 -0500
Add script to import translations --- Makefile | 2 +- import-translations.sh | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile index 311a631..078535c 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ SHELL := /bin/bash VERSION := $(shell cat install.rdf|grep 'em:version'|cut -d> -f2|cut -d< -f1)
make-xpi: - zip -r ../torbirdy-$(VERSION).xpi * -x "debian/*" -x "patches/*" -x "ChangeLog" -x "Makefile" -x "gpg.conf" + zip -r ../torbirdy-$(VERSION).xpi * -x "debian/*" -x "patches/*" -x "ChangeLog" -x "Makefile" -x "gpg.conf" -x "import-translations.sh"
clean: rm -f ../torbirdy-$(VERSION).xpi diff --git a/import-translations.sh b/import-translations.sh new file mode 100755 index 0000000..a2b0954 --- /dev/null +++ b/import-translations.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +BUNDLE_LOCALES="ar da eu he lv pa pt_BR tr cs de es fr it nl pl sv zh-CN ms-MY ja" + +if [ -d translation ]; +then + cd translation + 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 - _`" + + git checkout torbirdy + git merge origin/torbirdy + cp $UL/torbirdy.dtd ../chrome/locale/$i/torbirdy.dtd + cp $UL/torbirdy.properties ../chrome/locale/$i/torbirdy.properties + +done
tor-commits@lists.torproject.org