From cae0280ff7244d70453a494e2647320611d9bde5 Mon Sep 17 00:00:00 2001 From: cooltey Date: Tue, 5 Nov 2024 16:41:33 -0800 Subject: [PATCH] Rename string items for SurveyDialog --- .../java/org/wikipedia/views/SurveyDialog.kt | 10 +++---- .../res/layout/dialog_feedback_options.xml | 20 +++++++------- app/src/main/res/values-ar/strings.xml | 6 ++--- app/src/main/res/values-az/strings.xml | 22 ++++++++-------- app/src/main/res/values-b+sr+Latn/strings.xml | 14 +++++----- app/src/main/res/values-b+tt+Cyrl/strings.xml | 12 ++++----- app/src/main/res/values-ba/strings.xml | 14 +++++----- app/src/main/res/values-be/strings.xml | 20 +++++++------- app/src/main/res/values-bg/strings.xml | 20 +++++++------- app/src/main/res/values-bn/strings.xml | 16 ++++++------ app/src/main/res/values-br/strings.xml | 4 +-- app/src/main/res/values-ca/strings.xml | 16 ++++++------ app/src/main/res/values-cs/strings.xml | 12 ++++----- app/src/main/res/values-cy/strings.xml | 2 +- app/src/main/res/values-da/strings.xml | 20 +++++++------- app/src/main/res/values-dag/strings.xml | 18 ++++++------- app/src/main/res/values-de/strings.xml | 20 +++++++------- app/src/main/res/values-dga/strings.xml | 14 +++++----- app/src/main/res/values-es/strings.xml | 4 +-- app/src/main/res/values-fa/strings.xml | 14 +++++----- app/src/main/res/values-fi/strings.xml | 22 ++++++++-------- app/src/main/res/values-fr/strings.xml | 20 +++++++------- app/src/main/res/values-ha/strings.xml | 14 +++++----- app/src/main/res/values-hi/strings.xml | 16 ++++++------ app/src/main/res/values-hu/strings.xml | 22 ++++++++-------- app/src/main/res/values-ia/strings.xml | 22 ++++++++-------- app/src/main/res/values-in/strings.xml | 20 +++++++------- app/src/main/res/values-it/strings.xml | 20 +++++++------- app/src/main/res/values-iw/strings.xml | 22 ++++++++-------- app/src/main/res/values-ja/strings.xml | 20 +++++++------- app/src/main/res/values-ko/strings.xml | 22 ++++++++-------- app/src/main/res/values-krc/strings.xml | 20 +++++++------- app/src/main/res/values-ks/strings.xml | 2 +- app/src/main/res/values-lb/strings.xml | 20 +++++++------- app/src/main/res/values-mk/strings.xml | 22 ++++++++-------- app/src/main/res/values-ms/strings.xml | 12 ++++----- app/src/main/res/values-my/strings.xml | 6 ++--- app/src/main/res/values-nb/strings.xml | 20 +++++++------- app/src/main/res/values-ne/strings.xml | 4 +-- app/src/main/res/values-nl/strings.xml | 20 +++++++------- app/src/main/res/values-nqo/strings.xml | 6 ++--- app/src/main/res/values-pa/strings.xml | 6 ++--- app/src/main/res/values-pl/strings.xml | 12 ++++----- app/src/main/res/values-pt-rBR/strings.xml | 16 ++++++------ app/src/main/res/values-pt/strings.xml | 18 ++++++------- app/src/main/res/values-qq/strings.xml | 25 ++++++++---------- app/src/main/res/values-ro/strings.xml | 12 ++++----- app/src/main/res/values-ru/strings.xml | 18 ++++++------- app/src/main/res/values-sd/strings.xml | 20 +++++++------- app/src/main/res/values-se/strings.xml | 20 +++++++------- app/src/main/res/values-skr/strings.xml | 6 ++--- app/src/main/res/values-sl/strings.xml | 20 +++++++------- app/src/main/res/values-sr/strings.xml | 20 +++++++------- app/src/main/res/values-sv/strings.xml | 22 ++++++++-------- app/src/main/res/values-tr/strings.xml | 20 +++++++------- app/src/main/res/values-uk/strings.xml | 22 ++++++++-------- app/src/main/res/values-ur/strings.xml | 14 +++++----- app/src/main/res/values-uz/strings.xml | 20 +++++++------- app/src/main/res/values-zh-rTW/strings.xml | 22 ++++++++-------- app/src/main/res/values-zh/strings.xml | 22 ++++++++-------- app/src/main/res/values/strings.xml | 26 +++++++++---------- 61 files changed, 493 insertions(+), 498 deletions(-) diff --git a/app/src/main/java/org/wikipedia/views/SurveyDialog.kt b/app/src/main/java/org/wikipedia/views/SurveyDialog.kt index 1dfc8833e93..06c9478bfff 100644 --- a/app/src/main/java/org/wikipedia/views/SurveyDialog.kt +++ b/app/src/main/java/org/wikipedia/views/SurveyDialog.kt @@ -22,9 +22,9 @@ import org.wikipedia.util.FeedbackUtil object SurveyDialog { fun showFeedbackOptionsDialog(activity: Activity, - titleId: Int = R.string.patroller_diff_feedback_dialog_title, - messageId: Int = R.string.patroller_diff_feedback_dialog_message, - snackbarMessageId: Int = R.string.patroller_diff_feedback_submitted_snackbar, + titleId: Int = R.string.survey_dialog_title, + messageId: Int = R.string.survey_dialog_message, + snackbarMessageId: Int = R.string.survey_dialog_submitted_snackbar, invokeSource: Constants.InvokeSource, historyEntry: HistoryEntry? = null) { var dialog: AlertDialog? = null @@ -43,7 +43,7 @@ object SurveyDialog { val clickListener = View.OnClickListener { val feedbackOption = (it as TextView).text.toString() dialog?.dismiss() - if (feedbackOption == activity.getString(R.string.patroller_diff_feedback_dialog_option_satisfied)) { + if (feedbackOption == activity.getString(R.string.survey_dialog_option_satisfied)) { showFeedbackSnackbarAndTooltip(activity, snackbarMessageId, invokeSource) } else { showFeedbackInputDialog(activity, snackbarMessageId, invokeSource) @@ -100,7 +100,7 @@ object SurveyDialog { MaterialAlertDialogBuilder(activity) .setTitle(R.string.patroller_diff_feedback_dialog_feedback_title) .setView(feedbackView) - .setPositiveButton(R.string.patroller_diff_feedback_dialog_submit) { _, _ -> + .setPositiveButton(R.string.survey_dialog_submit) { _, _ -> val feedbackInput = feedbackView.findViewById(R.id.feedbackInput).text.toString() PatrollerExperienceEvent.logAction("feedback_input_submit", "feedback_input_form", PatrollerExperienceEvent.getActionDataString(feedbackText = feedbackInput)) diff --git a/app/src/main/res/layout/dialog_feedback_options.xml b/app/src/main/res/layout/dialog_feedback_options.xml index f62ad4ed799..ca09b70d069 100644 --- a/app/src/main/res/layout/dialog_feedback_options.xml +++ b/app/src/main/res/layout/dialog_feedback_options.xml @@ -22,7 +22,7 @@ android:layout_marginTop="24dp" android:paddingHorizontal="24dp" android:textColor="?attr/primary_color" - android:text="@string/patroller_diff_feedback_dialog_title" /> + android:text="@string/survey_dialog_title" /> + android:text="@string/survey_dialog_message" /> @@ -61,7 +61,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="center_vertical" - android:text="@string/patroller_diff_feedback_dialog_option_satisfied" + android:text="@string/survey_dialog_option_satisfied" app:buttonTint="?attr/progressive_color"/> @@ -98,7 +98,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:visibility="gone" - android:hint="@string/recommended_content_survey_dialog_input_hint" + android:hint="@string/survey_dialog_input_hint" app:hintTextColor="?attr/secondary_color"> + android:text="@string/survey_dialog_cancel" />