From 755d8311dc8516843091586102e431d2de3d9a20 Mon Sep 17 00:00:00 2001 From: "Amir E. Aharoni" Date: Wed, 8 Oct 2025 21:07:19 -0400 Subject: [PATCH] Make some hardcoded strings translatable (#6459) --- app/src/main/res/layout/activity_quiz.xml | 2 +- app/src/main/res/layout/activity_quiz_result.xml | 2 +- app/src/main/res/layout/activity_upload_categories_dialog.xml | 2 +- app/src/main/res/values-qq/strings.xml | 3 +++ app/src/main/res/values/strings.xml | 3 +++ 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/src/main/res/layout/activity_quiz.xml b/app/src/main/res/layout/activity_quiz.xml index f5de2c635..1b238b8b3 100644 --- a/app/src/main/res/layout/activity_quiz.xml +++ b/app/src/main/res/layout/activity_quiz.xml @@ -71,7 +71,7 @@ android:layout_alignParentRight="true" android:layout_marginLeft="@dimen/activity_margin_horizontal" android:layout_marginRight="@dimen/activity_margin_horizontal" - android:text="I am not sure" + android:text="@string/quiz_i_am_not_sure" android:backgroundTint="#D6DCE0" android:layout_marginBottom="@dimen/activity_margin_vertical" /> diff --git a/app/src/main/res/layout/activity_quiz_result.xml b/app/src/main/res/layout/activity_quiz_result.xml index 65db12902..877b02ea4 100644 --- a/app/src/main/res/layout/activity_quiz_result.xml +++ b/app/src/main/res/layout/activity_quiz_result.xml @@ -98,7 +98,7 @@ android:paddingHorizontal="@dimen/activity_margin_horizontal" android:layout_height="wrap_content" android:backgroundTint="#D6DCE0" - android:text="Continue" /> + android:text="@string/quiz_continue" /> diff --git a/app/src/main/res/layout/activity_upload_categories_dialog.xml b/app/src/main/res/layout/activity_upload_categories_dialog.xml index fd1620f6e..da21a2c8d 100644 --- a/app/src/main/res/layout/activity_upload_categories_dialog.xml +++ b/app/src/main/res/layout/activity_upload_categories_dialog.xml @@ -11,6 +11,6 @@ android:id="@+id/categories_checkbox" android:layout_width="match_parent" android:layout_height="wrap_content" - android:text="Don't show this message again" /> + android:text="@string/upload_categories_dont_show_this_message_again" /> \ No newline at end of file diff --git a/app/src/main/res/values-qq/strings.xml b/app/src/main/res/values-qq/strings.xml index 7cd68db41..7e25ef15f 100644 --- a/app/src/main/res/values-qq/strings.xml +++ b/app/src/main/res/values-qq/strings.xml @@ -173,7 +173,9 @@ {{Identical|Map}} Message shown in a dialog (\"success toast\") after a contribution by the user.\n\nParameter:\n* %1$s - title of the target page on Wikidata {{Identical|Question}} + In the quiz, a third option in addition to "Yes" and "No". {{Identical|Result}} + Button in quiz. {{Identical|Delete}} Èstatistik To see the correct translation for your language, please go to https://commons.wikimedia.org/wiki/Commons:Featured_pictures and select your language in \"This project page in other languages\". @@ -190,6 +192,7 @@ {{Identical|Please wait}} {{Identical|Author}} {{Identical|Location}} + A label of a checkbox. {{Doc-commons-app-depicts}} {{Doc-commons-app-depicts}} {{Doc-commons-app-depicts}} diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 310529d09..6e76cd25d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -348,6 +348,7 @@ Quiz Is this picture OK to upload? Question + I am not sure Result If you carry on uploading images that require deletion, your account will likely be banned. Are you sure you want to end the quiz? More than %1$s of the images you uploaded have been deleted. If you carry on uploading images that require deletion, your account will likely be banned.\n\nWould you like to view the tutorial again and then take a quiz to help you learn what type of images you should or shouldn\'t upload? @@ -357,6 +358,7 @@ One of the goals of Commons is to gather quality images. Therefore, blurry images shouldn\'t be uploaded. Always try to take nice pictures with good lighting. Pictures showing technology or culture are very welcome on Commons. You got %1$s of the answers correct. Congratulations! + Continue Select one of the two options to answer the question Log-in expired. Please log in again. Share your quiz with your friends! @@ -555,6 +557,7 @@ Upload your first media by tapping on the add button. Upload photos to Wikimedia Commons directly from your phone. Download the Commons App now: %1$s Share app via... Image Info + Don\'t show this message again No Categories found No Depictions found Cancelled Upload