mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-17 06:52:18 +01:00
Update localization pull script to handle java Locale class exceptions
This commit is contained in:
parent
6dd750e35b
commit
d1d561ddb7
@ -5,8 +5,16 @@ if [ $0 != "./pull.sh" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ALL='n'
|
||||
while [ $# -gt 0 ]; do
|
||||
if [ $1 = '-a' ]; then
|
||||
ALL='y'
|
||||
# We must do this until java Locale class is updated...
|
||||
mv Resources_iw.po Resources_he.po
|
||||
mv Resources_iw.properties Resources_he.properties
|
||||
mv Resources_in.po Resources_id.po
|
||||
mv Resources_in.properties Resources_id.properties
|
||||
|
||||
for f in Resources_*.po; do
|
||||
f=$(expr "$f" : "Resources_\(.*\).po")
|
||||
langs="$langs $f"
|
||||
@ -22,10 +30,21 @@ if [ "$langs" = "" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
python python/pull.py $langs
|
||||
|
||||
if [ "$ALL" = "y" ]; then
|
||||
# We must do this until java Locale class is updated...
|
||||
mv Resources_he.po Resources_iw.po
|
||||
mv Resources_he.properties Resources_iw.properties
|
||||
mv Resources_id.po Resources_in.po
|
||||
mv Resources_id.properties Resources_in.properties
|
||||
fi
|
||||
|
||||
for lang in $langs; do
|
||||
if [ -f "Resources_$lang.po" ]; then
|
||||
msgcat -p Resources_$lang.po > Resources_$lang.properties
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user