From e9a1af0f528067d87b3fa2e6e61ff2b0fec11cef Mon Sep 17 00:00:00 2001 From: "Amir E. Aharoni" Date: Fri, 3 Oct 2025 21:43:10 -0400 Subject: [PATCH] Change hardcoded strings in the language search dialog to messages (#6440) Another comment: While working on this, I also noticed that "Recent Searches" is hardcoded in the XML file, and I'm not sure where does it actually appear. I fixed it, too, but perhaps it can be completely removed. Fixes #6439. --- app/src/main/res/layout/dialog_select_language.xml | 6 +++--- app/src/main/res/values-qq/strings.xml | 3 +++ app/src/main/res/values/strings.xml | 3 +++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/src/main/res/layout/dialog_select_language.xml b/app/src/main/res/layout/dialog_select_language.xml index b63d3ceac..6fa70dcdb 100644 --- a/app/src/main/res/layout/dialog_select_language.xml +++ b/app/src/main/res/layout/dialog_select_language.xml @@ -12,7 +12,7 @@ android:layout_marginStart="8dp" android:layout_marginTop="8dp" android:layout_marginEnd="8dp" - android:hint="Type Language Name" + android:hint="@string/language_search_type_language_name" android:padding="12dp" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -22,7 +22,7 @@ android:id="@+id/recent_searches" android:layout_width="0dp" android:layout_height="wrap_content" - android:text="Recent Searches" + android:text="@string/language_search_recent_searches" app:layout_constraintTop_toBottomOf="@id/search_language" app:layout_constraintEnd_toEndOf="@+id/language_history_list" android:layout_marginEnd="8dp" @@ -55,7 +55,7 @@ android:id="@+id/all_languages" android:layout_width="0dp" android:layout_height="wrap_content" - android:text="All Languages" + android:text="@string/language_search_all_languages" app:layout_constraintTop_toBottomOf="@id/separator" app:layout_constraintEnd_toEndOf="@+id/language_history_list" android:layout_margin="8dp" diff --git a/app/src/main/res/values-qq/strings.xml b/app/src/main/res/values-qq/strings.xml index 09d73b6fb..dc0ae6a07 100644 --- a/app/src/main/res/values-qq/strings.xml +++ b/app/src/main/res/values-qq/strings.xml @@ -97,6 +97,9 @@ Message shown on contribution list during non-first sync if no uploads present. Menu item text prompting user to retry a failed upload.\n{{Identical|Retry}} Menu item text prompting user to cancel and delete a failed upload.\n{{Identical|Cancel}} + Placeholder text in the top search box in the language search dialog. + A title in the language search dialog. + A title in the language search dialog. Menu item text prompting user to download a selected photo or media file locally.\n{{Identical|Download}} {{Identical|License}} This is a button text. Concise wording is preferred (e.g. \"&\" instead of \"and\"), where possible. It should ideally be rendered in one line, even on small devices. diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 6447f552a..785d7cbef 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -150,6 +150,9 @@ You have not yet uploaded any photos. Retry Cancel + Type Language Name + Recent Searches + All Languages By submitting this picture, I declare that this is my own work, that it does not contain copyrighted material or selfies, and otherwise adheres to <a href=\"https://commons.wikimedia.org/wiki/Commons:Policies_and_guidelines\">Wikimedia Commons policies</a>. Download Default License