commit 98f7e82aaf8001208e7cd4055d51074e3a953860 Author: Mike Perry mikeperry-git@fscked.org Date: Mon Mar 21 02:47:39 2011 -0700
Add two new helper scripts. --- trans_tools/mvmoz.sh | 6 ++++++ trans_tools/new_tb_strings.sh | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/trans_tools/mvmoz.sh b/trans_tools/mvmoz.sh new file mode 100755 index 0000000..64ff436 --- /dev/null +++ b/trans_tools/mvmoz.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +for locale in `ls -1 moz/`; +do + mv -v moz/$locale/*.{dtd,properties} ../src/chrome/locale/$locale/ +done diff --git a/trans_tools/new_tb_strings.sh b/trans_tools/new_tb_strings.sh new file mode 100755 index 0000000..854f61c --- /dev/null +++ b/trans_tools/new_tb_strings.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +moz2po -P -i ../src/chrome/locale/en/ -o po/templates/ + +for i in `ls -1 po` +do + msgmerge -U ./po/$i/torbutton.dtd.po ./po/templates/torbutton.dtd.pot + msgmerge -U ./po/$i/torbutton.properties.po ./po/templates/torbutton.properties.pot +done + +svn diff po +svn commit po + +cd po +tx push --source +tx push --translation +cd .. +
tor-commits@lists.torproject.org