import-translations.sh 742 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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