Index: android/patch_locale.sh |
diff --git a/android/patch_locale.sh b/android/patch_locale.sh |
index bc860b4c285e12e99c8d18ca569ca12423b12765..33553b9f244b42491aafa8b08f6fa9266a5450f6 100755 |
--- a/android/patch_locale.sh |
+++ b/android/patch_locale.sh |
@@ -164,12 +164,15 @@ for i in locales/*.txt; do |
ja) |
EXTRA_CAL='japanese' |
;; |
+ *) |
+ EXTRA_CAL='' |
+ ;; |
esac |
# Add 'roc' calendar to zh_Hant*. |
- [[ "$(basename $i .txt)" =~ 'zh_Hant' ]] && { EXTRA_CAL="$EXTRA_CAL|roc"; } |
+ [[ "$(basename $i .txt)" =~ 'zh_Hant' ]] && { EXTRA_CAL="${EXTRA_CAL}|roc"; } |
- CAL_PATTERN="(${COMMON_CALENDARS}|${EXTRA_CAL})" |
+ CAL_PATTERN="${COMMON_CALENDARS}${EXTRA_CAL:+|${EXTRA_CAL}}" |
echo $CAL_PATTERN |
echo Overwriting $i... |