From 7268d0bbf5511be105b0f7b1ddc9c4cfa48064f1 Mon Sep 17 00:00:00 2001 From: Alex Gorichev Date: Mon, 19 Sep 2022 15:03:43 +0100 Subject: [PATCH] [strings] Add contentDescription to bottom buttons for accessibility Signed-off-by: Alex Gorichev --- android/res/layout/map_buttons_help.xml | 1 + android/res/layout/map_buttons_menu.xml | 1 + data/strings/strings.txt | 8 ++++++++ 3 files changed, 10 insertions(+) diff --git a/android/res/layout/map_buttons_help.xml b/android/res/layout/map_buttons_help.xml index 49951733de..42fd2ad391 100644 --- a/android/res/layout/map_buttons_help.xml +++ b/android/res/layout/map_buttons_help.xml @@ -4,5 +4,6 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/help_button" style="@style/MwmWidget.MapButton.Square" + android:contentDescription="@string/help" app:shapeAppearanceOverlay="@style/MwmWidget.MapButton.Square" android:src="@drawable/ic_question_mark" /> \ No newline at end of file diff --git a/android/res/layout/map_buttons_menu.xml b/android/res/layout/map_buttons_menu.xml index 9386c27fb6..0a46eeb65b 100644 --- a/android/res/layout/map_buttons_menu.xml +++ b/android/res/layout/map_buttons_menu.xml @@ -4,5 +4,6 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/menu_button" style="@style/MwmWidget.MapButton.Square" + android:contentDescription="@string/menu" app:shapeAppearanceOverlay="@style/MwmWidget.MapButton.Square" android:src="@drawable/ic_menu_open" /> \ No newline at end of file diff --git a/data/strings/strings.txt b/data/strings/strings.txt index 2aad17881a..7d71e46b87 100644 --- a/data/strings/strings.txt +++ b/data/strings/strings.txt @@ -5000,6 +5000,14 @@ zh-Hans = 在地图上查看 zh-Hant = 在地圖上查看 + [menu] + comment = Menu button + tags = android + en = Menu + pl = Menu + ru = Меню + uk = Меню + [website] comment = Text in menu tags = android,ios