From 8b4cb8d662baac8502d73528f374a2697a970d8a Mon Sep 17 00:00:00 2001 From: Roman Tsisyk Date: Fri, 24 Mar 2023 20:32:39 +0200 Subject: [PATCH] [android] Fix Bahasa localization `id` code is deprecated, please use `in` instead. Signed-off-by: Roman Tsisyk --- android/gradle.properties | 2 +- android/res/values-in/strings.xml | 2 ++ android/res/xml/locales_config.xml | 1 - data/strings/strings.txt | 2 +- tools/unix/generate_localizations.sh | 1 + 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/android/gradle.properties b/android/gradle.properties index 9495b9ad9c..9e57e595a1 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -8,4 +8,4 @@ org.gradle.jvmargs=-Xmx1024m -Xms256m android.useAndroidX=true android.native.buildOutput=verbose # Autogenerated by tools/unix/generate_localizations.sh -supportedLocalizations=ar,be,bg,ca,cs,da,de,el,en,en_GB,es,es_MX,et,eu,fa,fi,fr,fr_CA,iw,hi,hu,id,in,it,ja,ko,mr,nb,nl,pl,pt,pt_BR,ro,ru,sk,sv,sw,th,tr,uk,vi,zh,zh_HK,zh_MO,zh_TW +supportedLocalizations=ar,be,bg,ca,cs,da,de,el,en,en_GB,es,es_MX,et,eu,fa,fi,fr,fr_CA,iw,hi,hu,in,it,ja,ko,mr,nb,nl,pl,pt,pt_BR,ro,ru,sk,sv,sw,th,tr,uk,vi,zh,zh_HK,zh_MO,zh_TW diff --git a/android/res/values-in/strings.xml b/android/res/values-in/strings.xml index 269ba23ace..5bb6e53aa6 100644 --- a/android/res/values-in/strings.xml +++ b/android/res/values-in/strings.xml @@ -264,6 +264,8 @@ Hapus Peta Perbarui Peta + + Layanan Google Play Gunakan Layanan Google Play untuk mendapatkan lokasi Anda saat ini diff --git a/android/res/xml/locales_config.xml b/android/res/xml/locales_config.xml index 111a6605d4..a89e2e6979 100644 --- a/android/res/xml/locales_config.xml +++ b/android/res/xml/locales_config.xml @@ -21,7 +21,6 @@ - diff --git a/data/strings/strings.txt b/data/strings/strings.txt index 195060aa2e..e9475072d0 100644 --- a/data/strings/strings.txt +++ b/data/strings/strings.txt @@ -6749,7 +6749,7 @@ fr = Services Google Play hi = Google Play सेवाएं hu = Google Play-szolgáltatások - in = Layanan Google Play + id = Layanan Google Play ja = Google Play 開発者サービス ko = Google Play 서비스 mr = Google Play सेवा diff --git a/tools/unix/generate_localizations.sh b/tools/unix/generate_localizations.sh index 308833753e..05494f0bcb 100755 --- a/tools/unix/generate_localizations.sh +++ b/tools/unix/generate_localizations.sh @@ -74,6 +74,7 @@ SUPPORTED_LOCALIZATIONS="supportedLocalizations="$(sed -nEe "s/ +([a-zA-Z]{2}(-[ SUPPORTED_LOCALIZATIONS=${SUPPORTED_LOCALIZATIONS/zh_Hans/zh} SUPPORTED_LOCALIZATIONS=${SUPPORTED_LOCALIZATIONS/zh_Hant/zh_HK,zh_MO,zh_TW} SUPPORTED_LOCALIZATIONS=${SUPPORTED_LOCALIZATIONS/he/iw} +SUPPORTED_LOCALIZATIONS=${SUPPORTED_LOCALIZATIONS/id/in} GRADLE_PROPERTIES="$OMIM_PATH/android/gradle.properties" if [ "$SUPPORTED_LOCALIZATIONS" != "$(grep supportedLocalizations "$GRADLE_PROPERTIES")" ]; then sed -i .bak 's/supportedLocalizations.*/'"$SUPPORTED_LOCALIZATIONS"'/' "$GRADLE_PROPERTIES"