Skip to content

Commit d1d561d

Browse files
committed
Update localization pull script to handle java Locale class exceptions
1 parent 6dd750e commit d1d561d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

app/src/processing/app/i18n/pull.sh

+19
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,16 @@ if [ $0 != "./pull.sh" ]; then
55
exit 1
66
fi
77

8+
ALL='n'
89
while [ $# -gt 0 ]; do
910
if [ $1 = '-a' ]; then
11+
ALL='y'
12+
# We must do this until java Locale class is updated...
13+
mv Resources_iw.po Resources_he.po
14+
mv Resources_iw.properties Resources_he.properties
15+
mv Resources_in.po Resources_id.po
16+
mv Resources_in.properties Resources_id.properties
17+
1018
for f in Resources_*.po; do
1119
f=$(expr "$f" : "Resources_\(.*\).po")
1220
langs="$langs $f"
@@ -22,10 +30,21 @@ if [ "$langs" = "" ]; then
2230
exit 1
2331
fi
2432

33+
2534
python python/pull.py $langs
2635

36+
if [ "$ALL" = "y" ]; then
37+
# We must do this until java Locale class is updated...
38+
mv Resources_he.po Resources_iw.po
39+
mv Resources_he.properties Resources_iw.properties
40+
mv Resources_id.po Resources_in.po
41+
mv Resources_id.properties Resources_in.properties
42+
fi
43+
2744
for lang in $langs; do
2845
if [ -f "Resources_$lang.po" ]; then
2946
msgcat -p Resources_$lang.po > Resources_$lang.properties
3047
fi
3148
done
49+
50+

0 commit comments

Comments
 (0)