From 20a5f1e510d83c787e9016bb4b542f2837b9f255 Mon Sep 17 00:00:00 2001 From: Sebastiao Sousa Date: Mon, 8 Jul 2024 23:16:25 +0100 Subject: [PATCH 1/3] [android] Implement Light, Dark, and System modes on android(Auto) closes #749 Changed from the existing night modes (on, off, auto), to "appearence" modes: - Light; - Dark; - System; System mode follows whatever mode the user's device is in. This implementation works for both normal android and AndroidAuto. Main changes: - added necessary strings to XML files; - changed the position and option names of the "map style preferences"; - implemented system mode, and some helper methods on ThemeSwitcher.java and ThemeUtils.java; - added uiMode changes detection to all activities; - removed "auto" mode implementation; Signed-off-by: Sebastiao Sousa Co-authored-by: Francisco Nael Salgado --- android/app/src/main/AndroidManifest.xml | 28 +++++-- .../java/app/organicmaps/SplashActivity.java | 16 +++- .../base/BaseMwmFragmentActivity.java | 11 ++- .../car/screens/settings/ThemeScreen.java | 3 +- .../app/organicmaps/car/util/ThemeUtils.java | 19 ++--- .../app/organicmaps/help/HelpActivity.java | 1 - .../settings/SettingsPrefsFragment.java | 6 +- .../java/app/organicmaps/util/Config.java | 9 +- .../app/organicmaps/util/ThemeSwitcher.java | 83 +++++-------------- .../java/app/organicmaps/util/ThemeUtils.java | 32 +++++-- .../src/main/res/values/donottranslate.xml | 2 +- .../app/src/main/res/values/string-arrays.xml | 14 ++-- android/app/src/main/res/values/strings.xml | 8 +- android/app/src/main/res/xml/prefs_main.xml | 22 ++--- 14 files changed, 132 insertions(+), 122 deletions(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 5edfb32bb2..e123fb1199 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -331,10 +331,13 @@ + + android:configChanges="uiMode|orientation|screenLayout|screenSize" /> @@ -377,6 +380,7 @@ android:name="app.organicmaps.help.HelpActivity" android:label="@string/about_menu_title" android:parentActivityName="app.organicmaps.MwmActivity" + android:configChanges="uiMode" android:exported="false"> @@ -386,54 +390,62 @@ + android:name="app.organicmaps.MapPlaceholderActivity" + android:configChanges="uiMode" /> = Build.VERSION_CODES.S) - uiModeManager.setApplicationNightMode(UiModeManager.MODE_NIGHT_YES); - else - AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES); - if (RoutingController.get().isVehicleNavigation()) style = Framework.MAP_STYLE_VEHICLE_DARK; else if (Framework.nativeIsOutdoorsLayerEnabled()) @@ -114,11 +73,6 @@ public enum ThemeSwitcher } else { - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) - uiModeManager.setApplicationNightMode(UiModeManager.MODE_NIGHT_NO); - else - AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO); - if (RoutingController.get().isVehicleNavigation()) style = Framework.MAP_STYLE_VEHICLE_CLEAR; else if (Framework.nativeIsOutdoorsLayerEnabled()) @@ -127,6 +81,13 @@ public enum ThemeSwitcher style = Framework.MAP_STYLE_CLEAR; } + return style; + } + + private void setThemeAndMapStyle(@NonNull String theme, @Framework.MapStyle int style) + { + String oldTheme = Config.getCurrentUiTheme(mContext); + if (!theme.equals(oldTheme)) { Config.setCurrentUiTheme(mContext, theme); diff --git a/android/app/src/main/java/app/organicmaps/util/ThemeUtils.java b/android/app/src/main/java/app/organicmaps/util/ThemeUtils.java index cd82d02c48..4b10297692 100644 --- a/android/app/src/main/java/app/organicmaps/util/ThemeUtils.java +++ b/android/app/src/main/java/app/organicmaps/util/ThemeUtils.java @@ -1,6 +1,7 @@ package app.organicmaps.util; import android.content.Context; +import android.content.res.Configuration; import android.content.res.TypedArray; import android.util.TypedValue; @@ -8,7 +9,7 @@ import androidx.annotation.AttrRes; import androidx.annotation.ColorInt; import androidx.annotation.NonNull; import androidx.annotation.StyleRes; - +import androidx.appcompat.app.AppCompatDelegate; import app.organicmaps.R; public final class ThemeUtils @@ -45,6 +46,25 @@ public final class ThemeUtils return VALUE_BUFFER.resourceId; } + public static String getAndroidTheme(@NonNull Context context) + { + String nightTheme = context.getString(R.string.theme_night); + String defaultTheme = context.getString(R.string.theme_default); + + if (AppCompatDelegate.getDefaultNightMode() == AppCompatDelegate.MODE_NIGHT_YES) + return nightTheme; + + if (AppCompatDelegate.getDefaultNightMode() == AppCompatDelegate.MODE_NIGHT_NO) + return defaultTheme; + + int nightModeFlags = context.getResources() + .getConfiguration().uiMode & Configuration.UI_MODE_NIGHT_MASK; + if (nightModeFlags == Configuration.UI_MODE_NIGHT_YES) + return nightTheme; + else + return defaultTheme; + } + public static boolean isDefaultTheme(@NonNull Context context) { return isDefaultTheme(context, Config.getCurrentUiTheme(context)); @@ -67,15 +87,15 @@ public final class ThemeUtils return nightTheme.equals(theme); } - public static boolean isAutoTheme(@NonNull Context context) + public static boolean isFollowSystemTheme(@NonNull Context context) { - return isAutoTheme(context, Config.getCurrentUiTheme(context)); + return isFollowSystemTheme(context, Config.getCurrentUiTheme(context)); } - public static boolean isAutoTheme(@NonNull Context context, String theme) + public static boolean isFollowSystemTheme(@NonNull Context context, String theme) { - String autoTheme = context.getString(R.string.theme_auto); - return autoTheme.equals(theme); + String followSystemTheme = context.getString(R.string.theme_follow_system); + return followSystemTheme.equals(theme); } public static boolean isValidTheme(@NonNull Context context, String theme) diff --git a/android/app/src/main/res/values/donottranslate.xml b/android/app/src/main/res/values/donottranslate.xml index 36bfd2c8d2..88c9835ec4 100644 --- a/android/app/src/main/res/values/donottranslate.xml +++ b/android/app/src/main/res/values/donottranslate.xml @@ -50,7 +50,7 @@ default night - auto + follow system collapse diff --git a/android/app/src/main/res/values/string-arrays.xml b/android/app/src/main/res/values/string-arrays.xml index e8d64627e7..9685b40378 100644 --- a/android/app/src/main/res/values/string-arrays.xml +++ b/android/app/src/main/res/values/string-arrays.xml @@ -23,18 +23,16 @@ 0 1 - - - @string/off - @string/on - @string/auto + + @string/light + @string/dark + @string/system - - @string/theme_default @string/theme_night - @string/theme_auto + @string/theme_follow_system diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xml index 865ab42cf9..cafa6844bb 100644 --- a/android/app/src/main/res/values/strings.xml +++ b/android/app/src/main/res/values/strings.xml @@ -221,13 +221,19 @@ Zoom buttons Display on the map - Night Mode + Appearance Off On Auto + + Light + + Dark + + System Perspective view diff --git a/android/app/src/main/res/xml/prefs_main.xml b/android/app/src/main/res/xml/prefs_main.xml index 93bc6d01da..45de411c68 100644 --- a/android/app/src/main/res/xml/prefs_main.xml +++ b/android/app/src/main/res/xml/prefs_main.xml @@ -97,39 +97,39 @@ android:summary="@string/enable_show_on_lock_screen_description" android:defaultValue="true" android:order="17"/> + - + android:order="1" /> + android:order="2" /> + android:order="3"> Date: Mon, 8 Jul 2024 23:17:26 +0100 Subject: [PATCH 2/3] [strings] Modified android strings Added system, light, and dark to strings.txt. Modified pref_map_style_title from Night Mode to Appearance Signed-off-by: Sebastiao Sousa Co-authored-by: Francisco Nael Salgado --- data/strings/strings.txt | 215 +++++++++++++++++++++++++++++++-------- 1 file changed, 174 insertions(+), 41 deletions(-) diff --git a/data/strings/strings.txt b/data/strings/strings.txt index f3b288d2b3..79a3bad2e4 100644 --- a/data/strings/strings.txt +++ b/data/strings/strings.txt @@ -5366,48 +5366,48 @@ zh-Hant = 在螢幕上顯示 [pref_map_style_title] - comment = Settings «Map» category: «Night style» title + comment = Settings «Map» category: «Appearance» title tags = android - en = Night Mode - af = Nagmodus - ar = الوضع الليلي - az = Gecə rejimi - be = Начны рэжым - bg = Нощен режим - ca = Mode nocturn - cs = Noční režim - da = Nattilstand - de = Nachtmodus - el = Νυχτερινή λειτουργία - es = Modo nocturno - et = Öörežiim - eu = Gaueko modua - fa = حالت شب - fi = Yötila - fr = Mode nuit - he = מצב לילה - hi = रात का मोड - hu = Éjszakai üzemmód - id = Mode Malam - it = Modalità notturna - ja = 夜間モード - ko = 나이트 모드 - lt = Nakties režimas - mr = रात्र मोड - nb = Nattmodus - nl = Nachtmodus - pl = Tryb nocny - pt = Modo noturno - ro = Mod nocturn - ru = Ночной режим - sk = Nočný režim - sv = Nattläge - th = โหมดกลางคืน - tr = Gece Modu - uk = Нічний режим - vi = Chế độ ban đêm - zh-Hans = 夜间模式 - zh-Hant = 夜間模式 + en = Appearance + ar = المظهر + az = Görünüş + be = Выгляд + bg = Изглед + ca = Aspecte + cs = Vzhled + da = Udseende + de = Erscheinungsbild + el = Εμφάνιση + es = Aspecto + et = Välimus + eu = Itxura + fa = ظاهری + fi = Ulkoasu + fr = Apparence + he = מראה + hi = प्रकटन + hu = Megjelenés + id = Tampilan + it = Aspetto + ja = 外観 + ko = 모양 + lt = Išvaizda + mr = प्रतिमा + nb = Utseende + nl = Weergave + pl = Wygląd + pt = Apresentação + pt-BR = Aparência + ro = Aspect + ru = Оформление + sk = Vzhľad + sv = Utseende + th = รูปแบบ + tr = Görünüş + uk = Вигляд + vi = Giao diện + zh-Hans = 外观 + zh-Hant = 外觀 [pref_appearance_title] comment = Settings «Map» category: «Appearance» title @@ -5675,6 +5675,139 @@ zh-Hans = 自动 zh-Hant = 自動 + [light] + comment = Settings "Appearance" category: "Light" title, should be consistent with the pref_map_title translation. + tags = android + en = Light + ar = فاتح + az = Parlaq + be = Светлы + bg = Светъл + ca = Clar + cs = Světlý + da = Lys + de = Hell + el = Ανοιχτόχρωμη + es = Claro + et = Valgus + eu = Argi + fa = نور + fi = Vaalea + fr = Claire + he = בהיר + hi = हल्का + hu = Világos + id = Terang + it = Chiaro + ja = ライト + ko = 라이트 + lt = Šviesus + mr = प्रकाश + nb = Lys + nl = Licht + pl = Jasny + pt = Tons claros + pt-BR = Clara + ro = Luminos + ru = Светлое + sk = Svetlý + sv = Ljust + th = สว่าง + tr = Açık + uk = Світлий + vi = Sáng + zh-Hans = 浅色 + zh-Hant = 淺色 + + [dark] + comment = Settings "Appearance" category: "Dark" title, should be consistent with the pref_map_style_title translation. + tags = android + en = Dark + ar = داكن + az = Tünd + be = Цемны + bg = Тъмен + ca = Fosc + cs = Tmavý + da = Mørk + de = Dunkel + el = Σκουρόχρωμη + es = Oscuro + et = Tume + eu = Iluna + fa = تاریک + fi = Tumma + fr = Sombre + he = כהה + hi = गहरा + hu = Sötét + id = Gelap + it = Scuro + ja = ダーク + ko = 다크 + lt = Tamsus + mr = अंधार + nb = Mørke + nl = Donker + pl = Ciemny + pt = Tons escuros + pt-BR = Escura + ro = Întunecat + ru = Темное + sk = Tmavý + sv = Mörkt + th = มืด + tr = Koyu + uk = Темний + vi = Tối + zh-Hans = 深色 + zh-Hant = 深色 + + [system] + comment = Settings "Appearance" category: "System" title, should be consistent with the pref_map_style_title translation. + tags = android + en = System + af = Stelsel + ar = النظام + az = Sistem + be = сістэма + bg = Система + ca = Sistema + cs = Systém + da = System + de = System + el = Σύστημα + es = Sistema + et = Süsteem + eu = Sistema + fa = سیستم + fi = Järjestelmä + fr = Système + he = מערכת + hi = प्रणाली + hu = Rendszer + id = Sistem + it = Sistema + ja = システム + ko = 시스템 + lt = Sistema + mr = प्रणाली + nb = System + nl = Systeem + pl = System + pt = Sistema + ro = Sistem + ru = Система + sk = Systém + sv = Systemet + sw = Mfumo + th = ระบบ + tr = Sistem + uk = Система + vi = Hệ thống + zh-Hans = 系统 + zh-Hant = 系統 + [pref_map_3d_title] comment = Settings «Map» category: «Perspective view» title tags = android,ios -- 2.45.3 From a1827180aae753b875e995a62cdfc285c8b6f564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A3o=20Andrade=20e=20Sousa?= Date: Mon, 8 Jul 2024 23:37:47 +0100 Subject: [PATCH 3/3] [strings] Regenerated Signed-off-by: Sebastiao Sousa Co-authored-by: Francisco Nael Salgado --- 3party/harfbuzz/harfbuzz | 2 +- android/app/src/main/res/values-ar/strings.xml | 10 ++++++++-- android/app/src/main/res/values-az/strings.xml | 10 ++++++++-- android/app/src/main/res/values-be/strings.xml | 10 ++++++++-- android/app/src/main/res/values-bg/strings.xml | 10 ++++++++-- android/app/src/main/res/values-ca/strings.xml | 10 ++++++++-- android/app/src/main/res/values-cs/strings.xml | 10 ++++++++-- android/app/src/main/res/values-da/strings.xml | 10 ++++++++-- android/app/src/main/res/values-de/strings.xml | 10 ++++++++-- android/app/src/main/res/values-el/strings.xml | 10 ++++++++-- android/app/src/main/res/values-es/strings.xml | 10 ++++++++-- android/app/src/main/res/values-et/strings.xml | 10 ++++++++-- android/app/src/main/res/values-eu/strings.xml | 10 ++++++++-- android/app/src/main/res/values-fa/strings.xml | 10 ++++++++-- android/app/src/main/res/values-fi/strings.xml | 10 ++++++++-- android/app/src/main/res/values-fr/strings.xml | 10 ++++++++-- android/app/src/main/res/values-hi/strings.xml | 10 ++++++++-- android/app/src/main/res/values-hu/strings.xml | 10 ++++++++-- android/app/src/main/res/values-in/strings.xml | 10 ++++++++-- android/app/src/main/res/values-it/strings.xml | 10 ++++++++-- android/app/src/main/res/values-iw/strings.xml | 10 ++++++++-- android/app/src/main/res/values-ja/strings.xml | 10 ++++++++-- android/app/src/main/res/values-ko/strings.xml | 10 ++++++++-- android/app/src/main/res/values-mr/strings.xml | 10 ++++++++-- android/app/src/main/res/values-nb/strings.xml | 10 ++++++++-- android/app/src/main/res/values-nl/strings.xml | 10 ++++++++-- android/app/src/main/res/values-pl/strings.xml | 10 ++++++++-- .../app/src/main/res/values-pt-rBR/strings.xml | 6 ++++++ android/app/src/main/res/values-pt/strings.xml | 10 ++++++++-- android/app/src/main/res/values-ro/strings.xml | 10 ++++++++-- android/app/src/main/res/values-ru/strings.xml | 10 ++++++++-- android/app/src/main/res/values-sk/strings.xml | 10 ++++++++-- android/app/src/main/res/values-sv/strings.xml | 10 ++++++++-- android/app/src/main/res/values-sw/strings.xml | 2 ++ android/app/src/main/res/values-th/strings.xml | 10 ++++++++-- android/app/src/main/res/values-tr/strings.xml | 10 ++++++++-- android/app/src/main/res/values-uk/strings.xml | 10 ++++++++-- android/app/src/main/res/values-vi/strings.xml | 10 ++++++++-- .../app/src/main/res/values-zh-rTW/strings.xml | 10 ++++++++-- android/app/src/main/res/values-zh/strings.xml | 10 ++++++++-- android/app/src/main/res/values/strings.xml | 18 +++++++++--------- .../app/src/main/res/xml/locales_config.xml | 1 + android/gradle.properties | 2 +- .../es-MX.lproj/Localizable.strings | 2 +- 44 files changed, 317 insertions(+), 86 deletions(-) diff --git a/3party/harfbuzz/harfbuzz b/3party/harfbuzz/harfbuzz index 49c8493f5c..bc90b29b37 160000 --- a/3party/harfbuzz/harfbuzz +++ b/3party/harfbuzz/harfbuzz @@ -1 +1 @@ -Subproject commit 49c8493f5ce67bc66610d5e4494ce3231c8229cf +Subproject commit bc90b29b37fe3809f9e48aa7be08fbf2208e481a diff --git a/android/app/src/main/res/values-ar/strings.xml b/android/app/src/main/res/values-ar/strings.xml index 4111a92b7e..51687b738e 100644 --- a/android/app/src/main/res/values-ar/strings.xml +++ b/android/app/src/main/res/values-ar/strings.xml @@ -220,14 +220,20 @@ الملاحة أزرار التكبير والتصغير عرض على الشاشة - - الوضع الليلي + + المظهر تعطيل تشغيل تلقائي + + فاتح + + داكن + + النظام العرض المنظوري diff --git a/android/app/src/main/res/values-az/strings.xml b/android/app/src/main/res/values-az/strings.xml index cbc2a9220f..20eda40744 100644 --- a/android/app/src/main/res/values-az/strings.xml +++ b/android/app/src/main/res/values-az/strings.xml @@ -219,14 +219,20 @@ Naviqasiya Böyütmə düymələri Xəritədə göstər - - Gecə rejimi + + Görünüş Bağlı Açıq Avtomatik + + Parlaq + + Tünd + + Sistem Perspektiv baxış diff --git a/android/app/src/main/res/values-be/strings.xml b/android/app/src/main/res/values-be/strings.xml index 555af3ce08..f4aae1a63b 100644 --- a/android/app/src/main/res/values-be/strings.xml +++ b/android/app/src/main/res/values-be/strings.xml @@ -218,14 +218,20 @@ Навігацыя Кнопкі маштабавання Паказаць на мапе - - Начны рэжым + + Выгляд Выключаны Уключаны Аўтаматычна + + Светлы + + Цемны + + сістэма Перспектыўны выгляд diff --git a/android/app/src/main/res/values-bg/strings.xml b/android/app/src/main/res/values-bg/strings.xml index 890494fa0f..113a6147e7 100644 --- a/android/app/src/main/res/values-bg/strings.xml +++ b/android/app/src/main/res/values-bg/strings.xml @@ -207,14 +207,20 @@ Навигация Мащабни бутони Показване на картата - - Нощен режим + + Изглед Изключен Включен Автоматично + + Светъл + + Тъмен + + Система Перспективен изглед diff --git a/android/app/src/main/res/values-ca/strings.xml b/android/app/src/main/res/values-ca/strings.xml index 22905c4709..bde90f62c4 100644 --- a/android/app/src/main/res/values-ca/strings.xml +++ b/android/app/src/main/res/values-ca/strings.xml @@ -211,14 +211,20 @@ Navegació Botons de zoom Mostra\'ls al mapa - - Mode nocturn + + Aspecte Desactivat Activat Automàtic + + Clar + + Fosc + + Sistema Vista en perspectiva diff --git a/android/app/src/main/res/values-cs/strings.xml b/android/app/src/main/res/values-cs/strings.xml index f417f1070e..b7ca9ed3bd 100644 --- a/android/app/src/main/res/values-cs/strings.xml +++ b/android/app/src/main/res/values-cs/strings.xml @@ -204,14 +204,20 @@ Navigace Tlačítka přiblížení/oddálení Zobrazit na obrazovce - - Noční režim + + Vzhled Vypnuto Zapnuto Automaticky + + Světlý + + Tmavý + + Systém Zobrazení perspektivy diff --git a/android/app/src/main/res/values-da/strings.xml b/android/app/src/main/res/values-da/strings.xml index 83eeaf816f..7729653801 100644 --- a/android/app/src/main/res/values-da/strings.xml +++ b/android/app/src/main/res/values-da/strings.xml @@ -200,14 +200,20 @@ Navigation Zoom knapper Vis på skærmen - - Nattilstand + + Udseende Fra Til Auto + + Lys + + Mørk + + System Perspektivvisning diff --git a/android/app/src/main/res/values-de/strings.xml b/android/app/src/main/res/values-de/strings.xml index 1a332c66bb..6796df050a 100644 --- a/android/app/src/main/res/values-de/strings.xml +++ b/android/app/src/main/res/values-de/strings.xml @@ -217,14 +217,20 @@ Navigation Zoom-Tasten Auf der Karte anzeigen - - Nachtmodus + + Erscheinungsbild Aus An Auto + + Hell + + Dunkel + + System Perspektivische Ansicht diff --git a/android/app/src/main/res/values-el/strings.xml b/android/app/src/main/res/values-el/strings.xml index 597b7ff83f..928cb5d45f 100644 --- a/android/app/src/main/res/values-el/strings.xml +++ b/android/app/src/main/res/values-el/strings.xml @@ -218,14 +218,20 @@ Πλοήγηση Πλήκτρα μεγέθυνσης Εμφάνιση στο χάρτη - - Νυχτερινή λειτουργία + + Εμφάνιση Απενεργ. Ενεργ. Αυτόματα + + Ανοιχτόχρωμη + + Σκουρόχρωμη + + Σύστημα Οπτική γωνία diff --git a/android/app/src/main/res/values-es/strings.xml b/android/app/src/main/res/values-es/strings.xml index 56c9b016b6..bfa30a5f6d 100644 --- a/android/app/src/main/res/values-es/strings.xml +++ b/android/app/src/main/res/values-es/strings.xml @@ -217,14 +217,20 @@ Navegación Botones de zoom Visualización en la pantalla - - Modo nocturno + + Aspecto Desactivado Activado Automático + + Claro + + Oscuro + + Sistema Vista en perspectiva diff --git a/android/app/src/main/res/values-et/strings.xml b/android/app/src/main/res/values-et/strings.xml index 0d0682a6cf..e3fde9542d 100644 --- a/android/app/src/main/res/values-et/strings.xml +++ b/android/app/src/main/res/values-et/strings.xml @@ -211,14 +211,20 @@ Navigeerimine Zoomi nupud Kuva kaardil - - Öörežiim + + Välimus Väljas Sees Automaatne + + Valgus + + Tume + + Süsteem Perspektiivi vaade diff --git a/android/app/src/main/res/values-eu/strings.xml b/android/app/src/main/res/values-eu/strings.xml index 9e583da961..aeda89cd28 100644 --- a/android/app/src/main/res/values-eu/strings.xml +++ b/android/app/src/main/res/values-eu/strings.xml @@ -217,14 +217,20 @@ Nabigazioa Zoom botoiak Erakutsi mapan - - Gaueko modua + + Itxura Desgaituta Aktibatuta Automatikoa + + Argi + + Iluna + + Sistema Perspektiba ikuspegia diff --git a/android/app/src/main/res/values-fa/strings.xml b/android/app/src/main/res/values-fa/strings.xml index 7796a0b25d..951ec99ba0 100644 --- a/android/app/src/main/res/values-fa/strings.xml +++ b/android/app/src/main/res/values-fa/strings.xml @@ -193,14 +193,20 @@ مسیریابی دکمه‌های بزرگنمایی نمایش بر روی نقشه - - حالت شب + + ظاهری خاموش روشن خودکار + + نور + + تاریک + + سیستم نمای چشم انداز diff --git a/android/app/src/main/res/values-fi/strings.xml b/android/app/src/main/res/values-fi/strings.xml index 54e4945c90..3fb5a99eca 100644 --- a/android/app/src/main/res/values-fi/strings.xml +++ b/android/app/src/main/res/values-fi/strings.xml @@ -219,14 +219,20 @@ Navigointi Zoomauspainikkeet Näytä kartalla - - Yötila + + Ulkoasu Pois päältä Päällä Automaattinen + + Vaalea + + Tumma + + Järjestelmä Perspektiivinäkymä diff --git a/android/app/src/main/res/values-fr/strings.xml b/android/app/src/main/res/values-fr/strings.xml index f5bc0e971d..88e079170a 100644 --- a/android/app/src/main/res/values-fr/strings.xml +++ b/android/app/src/main/res/values-fr/strings.xml @@ -219,14 +219,20 @@ Navigation Boutons de zoom Afficher à l\'écran - - Mode nuit + + Apparence Désactivé Activé Automatique + + Claire + + Sombre + + Système Vue en perspective diff --git a/android/app/src/main/res/values-hi/strings.xml b/android/app/src/main/res/values-hi/strings.xml index 108e9da738..0099557b5e 100644 --- a/android/app/src/main/res/values-hi/strings.xml +++ b/android/app/src/main/res/values-hi/strings.xml @@ -218,14 +218,20 @@ मार्गदर्शन ज़ूम बटन मानचित्र पर बटन प्रदर्शित करें - - रात का मोड + + प्रकटन बंद चालू स्वचालित + + हल्का + + गहरा + + प्रणाली परिप्रेक्ष्य दृश्य diff --git a/android/app/src/main/res/values-hu/strings.xml b/android/app/src/main/res/values-hu/strings.xml index 1c042111f3..1f69a52b31 100644 --- a/android/app/src/main/res/values-hu/strings.xml +++ b/android/app/src/main/res/values-hu/strings.xml @@ -214,14 +214,20 @@ Navigáció Nagyítás/kicsinyítés gombok Mutassa a kijelzőn - - Éjszakai üzemmód + + Megjelenés Ki Be Automatikus + + Világos + + Sötét + + Rendszer Perspektivikus nézet diff --git a/android/app/src/main/res/values-in/strings.xml b/android/app/src/main/res/values-in/strings.xml index aa61058450..1ffda2fd0f 100644 --- a/android/app/src/main/res/values-in/strings.xml +++ b/android/app/src/main/res/values-in/strings.xml @@ -202,14 +202,20 @@ Navigasi Tombol perbesaran Tampilkan pada layar - - Mode Malam + + Tampilan Tidak Aktif Aktif Otomatis + + Terang + + Gelap + + Sistem Pandangan perspektif diff --git a/android/app/src/main/res/values-it/strings.xml b/android/app/src/main/res/values-it/strings.xml index 5372b60d8e..dcbb1dd773 100644 --- a/android/app/src/main/res/values-it/strings.xml +++ b/android/app/src/main/res/values-it/strings.xml @@ -205,14 +205,20 @@ Navigazione Pulsanti per lo zoom Mostra sulla mappa - - Modalità notturna + + Aspetto Spento Acceso Automatico + + Chiaro + + Scuro + + Sistema Vista in prospettiva diff --git a/android/app/src/main/res/values-iw/strings.xml b/android/app/src/main/res/values-iw/strings.xml index 1405f02ca3..93f02a1db9 100644 --- a/android/app/src/main/res/values-iw/strings.xml +++ b/android/app/src/main/res/values-iw/strings.xml @@ -215,14 +215,20 @@ ניווט כפתורי זום הצג על המסך - - מצב לילה + + מראה כבוי מופעל אוטומטי + + בהיר + + כהה + + מערכת פרספקטיבה diff --git a/android/app/src/main/res/values-ja/strings.xml b/android/app/src/main/res/values-ja/strings.xml index 71a1823f5a..ff74aa11de 100644 --- a/android/app/src/main/res/values-ja/strings.xml +++ b/android/app/src/main/res/values-ja/strings.xml @@ -217,14 +217,20 @@ ナビゲーション ズームボタン 画面上に表示 - - 夜間モード + + 外観 オフ オン 自動 + + ライト + + ダーク + + システム パースペクティブ表示 diff --git a/android/app/src/main/res/values-ko/strings.xml b/android/app/src/main/res/values-ko/strings.xml index 93582f7a37..b0c5dcb632 100644 --- a/android/app/src/main/res/values-ko/strings.xml +++ b/android/app/src/main/res/values-ko/strings.xml @@ -200,14 +200,20 @@ 네비게이션 확대/축소 버튼 화면에 표시 - - 나이트 모드 + + 모양 끄기 켜기 자동 + + 라이트 + + 다크 + + 시스템 원근 보기 diff --git a/android/app/src/main/res/values-mr/strings.xml b/android/app/src/main/res/values-mr/strings.xml index 56883ef3f4..3ed1cdec1a 100644 --- a/android/app/src/main/res/values-mr/strings.xml +++ b/android/app/src/main/res/values-mr/strings.xml @@ -195,14 +195,20 @@ मार्गनिर्देशन झूम बटणे नकाशावर दाखवा - - रात्र मोड + + प्रतिमा बंद चालू स्वयं + + प्रकाश + + अंधार + + प्रणाली यथार्थ दृश्य diff --git a/android/app/src/main/res/values-nb/strings.xml b/android/app/src/main/res/values-nb/strings.xml index d3c94c022b..77b0f2baaa 100644 --- a/android/app/src/main/res/values-nb/strings.xml +++ b/android/app/src/main/res/values-nb/strings.xml @@ -219,14 +219,20 @@ Navigasjon Zoom-knapper Vis på skjermen - - Nattmodus + + Utseende Av Auto + + Lys + + Mørke + + System Perspektivvisning diff --git a/android/app/src/main/res/values-nl/strings.xml b/android/app/src/main/res/values-nl/strings.xml index cea95eafc1..b01a18b455 100644 --- a/android/app/src/main/res/values-nl/strings.xml +++ b/android/app/src/main/res/values-nl/strings.xml @@ -217,14 +217,20 @@ Navigatie Zoomknoppen Toon op de kaart - - Nachtmodus + + Weergave Uit Aan Automatisch + + Licht + + Donker + + Systeem Perspectiefbeeld diff --git a/android/app/src/main/res/values-pl/strings.xml b/android/app/src/main/res/values-pl/strings.xml index 2c9ae601e1..d264d91538 100644 --- a/android/app/src/main/res/values-pl/strings.xml +++ b/android/app/src/main/res/values-pl/strings.xml @@ -217,14 +217,20 @@ Nawigacja Przyciski przybliżania Wyświetla na ekranie - - Tryb nocny + + Wygląd Wyłączony Włączony Automatycznie + + Jasny + + Ciemny + + System Widok z perspektywy diff --git a/android/app/src/main/res/values-pt-rBR/strings.xml b/android/app/src/main/res/values-pt-rBR/strings.xml index 20b28b9d50..7b4b649345 100644 --- a/android/app/src/main/res/values-pt-rBR/strings.xml +++ b/android/app/src/main/res/values-pt-rBR/strings.xml @@ -213,8 +213,14 @@ Navegação Botões de zoom Mostrar na tela + + Aparência Automático + + Clara + + Escura Visão em perspectiva diff --git a/android/app/src/main/res/values-pt/strings.xml b/android/app/src/main/res/values-pt/strings.xml index 751a0fb5ad..7adefefee1 100644 --- a/android/app/src/main/res/values-pt/strings.xml +++ b/android/app/src/main/res/values-pt/strings.xml @@ -205,14 +205,20 @@ Navegação Botões de ampliação Mostrar no ecrã - - Modo noturno + + Apresentação Desligado Ligado Automático + + Tons claros + + Tons escuros + + Sistema Visão em perspetiva diff --git a/android/app/src/main/res/values-ro/strings.xml b/android/app/src/main/res/values-ro/strings.xml index bd12fe8596..b47fed3d4c 100644 --- a/android/app/src/main/res/values-ro/strings.xml +++ b/android/app/src/main/res/values-ro/strings.xml @@ -205,14 +205,20 @@ Navigare Butoane zoom Arată pe hartă - - Mod nocturn + + Aspect Oprit Pornit Automat + + Luminos + + Întunecat + + Sistem Vedere în perspectivă diff --git a/android/app/src/main/res/values-ru/strings.xml b/android/app/src/main/res/values-ru/strings.xml index 4856377dca..bacf120716 100644 --- a/android/app/src/main/res/values-ru/strings.xml +++ b/android/app/src/main/res/values-ru/strings.xml @@ -220,14 +220,20 @@ Навигация Кнопки масштаба Показать на карте - - Ночной режим + + Оформление Выключен Включен Автоматически + + Светлое + + Темное + + Система Перспективный вид diff --git a/android/app/src/main/res/values-sk/strings.xml b/android/app/src/main/res/values-sk/strings.xml index 4e15d05961..d37a6a0bb6 100644 --- a/android/app/src/main/res/values-sk/strings.xml +++ b/android/app/src/main/res/values-sk/strings.xml @@ -217,14 +217,20 @@ Navigácia Tlačidlá priblíženia/oddialenia Zobraziť na obrazovke - - Nočný režim + + Vzhľad Vypnúť Zapnúť Automaticky + + Svetlý + + Tmavý + + Systém Perspektívne zobrazenie diff --git a/android/app/src/main/res/values-sv/strings.xml b/android/app/src/main/res/values-sv/strings.xml index 14a895b9a2..8f9e504e10 100644 --- a/android/app/src/main/res/values-sv/strings.xml +++ b/android/app/src/main/res/values-sv/strings.xml @@ -198,14 +198,20 @@ Navigering Zoom-knappar Visa på skärmen - - Nattläge + + Utseende Av Auto + + Ljust + + Mörkt + + Systemet Perspektivvy diff --git a/android/app/src/main/res/values-sw/strings.xml b/android/app/src/main/res/values-sw/strings.xml index 9591287cb2..00a90f255b 100644 --- a/android/app/src/main/res/values-sw/strings.xml +++ b/android/app/src/main/res/values-sw/strings.xml @@ -50,6 +50,8 @@ Data ya OpenStreetMap: %s Auto + + Mfumo Majengo ya 3D yamezimwa katika hali ya kuokoa nishati diff --git a/android/app/src/main/res/values-th/strings.xml b/android/app/src/main/res/values-th/strings.xml index b850d2f7c8..5987a02204 100644 --- a/android/app/src/main/res/values-th/strings.xml +++ b/android/app/src/main/res/values-th/strings.xml @@ -202,14 +202,20 @@ การนำทาง ปุ่มซูม แสดงบนหน้าจอ - - โหมดกลางคืน + + รูปแบบ ปิด เปิด อัตโนมัติ + + สว่าง + + มืด + + ระบบ มุมมองเพอร์สเปกทีฟ diff --git a/android/app/src/main/res/values-tr/strings.xml b/android/app/src/main/res/values-tr/strings.xml index 6f873e4672..cf28620538 100644 --- a/android/app/src/main/res/values-tr/strings.xml +++ b/android/app/src/main/res/values-tr/strings.xml @@ -219,14 +219,20 @@ Navigasyon Yakınlaştırma butonları Haritada göster - - Gece Modu + + Görünüş Kapalı Açık Otomatik + + Açık + + Koyu + + Sistem Perspektif görünüm diff --git a/android/app/src/main/res/values-uk/strings.xml b/android/app/src/main/res/values-uk/strings.xml index b5a498ebec..ec09582e6d 100644 --- a/android/app/src/main/res/values-uk/strings.xml +++ b/android/app/src/main/res/values-uk/strings.xml @@ -220,14 +220,20 @@ Навігація Кнопки трансфокації Відображення на екрані - - Нічний режим + + Вигляд Вимкнуто Увімкнуто Автоматично + + Світлий + + Темний + + Система Перспективний вид diff --git a/android/app/src/main/res/values-vi/strings.xml b/android/app/src/main/res/values-vi/strings.xml index 0f5b3be708..9f8a368d7e 100644 --- a/android/app/src/main/res/values-vi/strings.xml +++ b/android/app/src/main/res/values-vi/strings.xml @@ -200,14 +200,20 @@ Điều hướng Nút Phóng to/Thu nhỏ Hiển thị trên màn hình - - Chế độ ban đêm + + Giao diện Tắt Bật Tự động + + Sáng + + Tối + + Hệ thống Góc nhìn phối cảnh diff --git a/android/app/src/main/res/values-zh-rTW/strings.xml b/android/app/src/main/res/values-zh-rTW/strings.xml index 6623876ea7..bf9f82e437 100644 --- a/android/app/src/main/res/values-zh-rTW/strings.xml +++ b/android/app/src/main/res/values-zh-rTW/strings.xml @@ -205,14 +205,20 @@ 導航 縮放按鈕 在螢幕上顯示 - - 夜間模式 + + 外觀 關閉 開啟 自動 + + 淺色 + + 深色 + + 系統 透視圖 diff --git a/android/app/src/main/res/values-zh/strings.xml b/android/app/src/main/res/values-zh/strings.xml index b902984d77..8a104b0fdf 100644 --- a/android/app/src/main/res/values-zh/strings.xml +++ b/android/app/src/main/res/values-zh/strings.xml @@ -204,14 +204,20 @@ 导航 缩放按钮 在屏幕上显示 - - 夜间模式 + + 外观 关闭 开启 自动 + + 浅色 + + 深色 + + 系统 透视图 diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xml index cafa6844bb..68fb05ddff 100644 --- a/android/app/src/main/res/values/strings.xml +++ b/android/app/src/main/res/values/strings.xml @@ -220,20 +220,20 @@ Navigation Zoom buttons Display on the map - - Appearance + + Appearance Off On Auto - - Light - - Dark - - System + + Light + + Dark + + System Perspective view @@ -251,7 +251,7 @@ Test Voice Directions (TTS, Text-To-Speech) - Check the volume or system Text-To-Speech settings if you don\'t hear the voice now. + Check the volume or system Text-To-Speech settings if you don\'zi hear the voice now. Not Available Auto zoom diff --git a/android/app/src/main/res/xml/locales_config.xml b/android/app/src/main/res/xml/locales_config.xml index 39a62b00bf..e517b1e6bc 100644 --- a/android/app/src/main/res/xml/locales_config.xml +++ b/android/app/src/main/res/xml/locales_config.xml @@ -29,6 +29,7 @@ + diff --git a/android/gradle.properties b/android/gradle.properties index 91d7895ad5..a9ff623d7e 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -12,4 +12,4 @@ android.nonFinalResIds=false enableVulkanDiagnostics=OFF # Autogenerated by tools/unix/generate_localizations.sh -supportedLocalizations=af,ar,az,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,lt,mr,nb,nl,pl,pt,pt_BR,ro,ru,sk,sv,sw,th,tr,uk,vi,zh,zh_HK,zh_MO,zh_TW +supportedLocalizations=af,ar,az,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,lt,mr,mt,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/iphone/Maps/LocalizedStrings/es-MX.lproj/Localizable.strings b/iphone/Maps/LocalizedStrings/es-MX.lproj/Localizable.strings index 78ab2c46f5..6346b9a63b 100644 --- a/iphone/Maps/LocalizedStrings/es-MX.lproj/Localizable.strings +++ b/iphone/Maps/LocalizedStrings/es-MX.lproj/Localizable.strings @@ -1738,7 +1738,7 @@ "type.barrier.chain" = "Cadena"; -"type.barrier.city_wall" = "Muro de la ciudad"; +"type.barrier.city_wall" = "City Wall"; "type.barrier.cycle_barrier" = "Barrera para bicicletas"; -- 2.45.3