mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
Update localization pull script to handle java Locale class exceptions
This commit is contained in:
@ -5,8 +5,16 @@ if [ $0 != "./pull.sh" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
ALL='n'
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
if [ $1 = '-a' ]; then
|
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
|
for f in Resources_*.po; do
|
||||||
f=$(expr "$f" : "Resources_\(.*\).po")
|
f=$(expr "$f" : "Resources_\(.*\).po")
|
||||||
langs="$langs $f"
|
langs="$langs $f"
|
||||||
@ -22,10 +30,21 @@ if [ "$langs" = "" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
python python/pull.py $langs
|
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
|
for lang in $langs; do
|
||||||
if [ -f "Resources_$lang.po" ]; then
|
if [ -f "Resources_$lang.po" ]; then
|
||||||
msgcat -p Resources_$lang.po > Resources_$lang.properties
|
msgcat -p Resources_$lang.po > Resources_$lang.properties
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user