diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-12 10:31:20 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-12 10:31:20 +0100 |
| commit | 26a4961cfb36a7dd47387122d1138468a5ce672a (patch) | |
| tree | 672081a2b79462247eb2c3a64dc024157e7bded9 /hacks | |
| parent | 977c874929e28792af0d8709c32dd0695f6c7f5e (diff) | |
Some support for Zanata translations.
Diffstat (limited to 'hacks')
| -rw-r--r-- | hacks/zanata_upload.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/hacks/zanata_upload.sh b/hacks/zanata_upload.sh new file mode 100644 index 000000000..c67f18959 --- /dev/null +++ b/hacks/zanata_upload.sh @@ -0,0 +1,19 @@ +#!/bin/bash +ZANATA=/opt/zanata-cli-3.6.0/bin/zanata-cli +dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) +tmp=/tmp/zanata.$$ +cd $dir/.. +./waf pot +mkdir -p $tmp/source $tmp/translated +cp build/src/lib/*.pot build/src/wx/*.pot build/src/tools/*.pot $tmp/source +for f in src/lib/po/*.po; do + cp $f $tmp/translated/lib_$f +done +for f in src/wx/po/*.po; do + cp $f $tmp/translated/wx_$f +done +for f in src/tools/po/*.po; do + cp $f $tmp/translated/tools_$f +done +$ZANATA push --push-type both -s $tmp/source -t $tmp/translated +rm -rf $tmp |
