Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename string items for SurveyDialog #5093

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions app/src/main/java/org/wikipedia/views/SurveyDialog.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down Expand Up @@ -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<TextInputEditText>(R.id.feedbackInput).text.toString()
PatrollerExperienceEvent.logAction("feedback_input_submit", "feedback_input_form",
PatrollerExperienceEvent.getActionDataString(feedbackText = feedbackInput))
Expand Down
20 changes: 10 additions & 10 deletions app/src/main/res/layout/dialog_feedback_options.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />

<TextView
android:id="@+id/messageText"
Expand All @@ -31,7 +31,7 @@
android:layout_height="wrap_content"
android:layout_marginVertical="6dp"
android:paddingHorizontal="24dp"
android:text="@string/patroller_diff_feedback_dialog_message" />
android:text="@string/survey_dialog_message" />

<LinearLayout
android:layout_width="match_parent"
Expand All @@ -50,7 +50,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:text="@string/places_survey_very_satisfied_option"
android:text="@string/survey_dialog_option_very_satisfied"
android:visibility="gone"
android:buttonTint="?attr/progressive_color"
app:buttonTint="?attr/progressive_color"/>
Expand All @@ -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"/>

<RadioButton
Expand All @@ -70,7 +70,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:text="@string/patroller_diff_feedback_dialog_option_neutral"
android:text="@string/survey_dialog_option_neutral"
app:buttonTint="?attr/progressive_color"/>

<RadioButton
Expand All @@ -79,7 +79,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:text="@string/patroller_diff_feedback_dialog_option_unsatisfied"
android:text="@string/survey_dialog_option_unsatisfied"
app:buttonTint="?attr/progressive_color"/>

<RadioButton
Expand All @@ -88,7 +88,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:text="@string/places_survey_very_unsatisfied_option"
android:text="@string/survey_dialog_option_very_unsatisfied"
android:visibility="gone"
app:buttonTint="?attr/progressive_color"/>
</RadioGroup>
Expand All @@ -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">

<org.wikipedia.views.PlainPasteEditText
Expand All @@ -124,14 +124,14 @@
style="@style/App.Button.Text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/places_survey_dialog_cancel" />
android:text="@string/survey_dialog_cancel" />

<Button
android:id="@+id/submitButton"
style="@style/App.Button.Text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/patroller_diff_feedback_dialog_submit" />
android:text="@string/survey_dialog_submit" />

</LinearLayout>

Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/values-ar/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1583,11 +1583,11 @@
<string name="places_filter_title">فلترة حسب اللغة</string>
<string name="places_toggle_buttons_map">خريطة</string>
<string name="places_toggle_buttons_list">قائمة</string>
<string name="places_survey_very_satisfied_option">راض جدا</string>
<string name="places_survey_very_unsatisfied_option">غير راض جدا</string>
<string name="survey_dialog_option_very_satisfied">راض جدا</string>
<string name="survey_dialog_option_very_unsatisfied">غير راض جدا</string>
<string name="places_survey_dialog_title">ساعد في تحسين \"الأماكن\"</string>
<string name="places_survey_feedback_dialog_title">كيف يمكن تحسين \"المناطق\"</string>
<string name="places_survey_dialog_cancel">إلغاء</string>
<string name="survey_dialog_cancel">إلغاء</string>
<string name="places_survey_feedback_low_satisfaction_dialog_title">ما الذي تود منا تغييره أو تحسينه؟</string>
<string name="places_empty_list">هذه المنطقة فارغة. قم بتكبير &lt;a href\n=\"#\"&gt; الخريطة.</string>
<string name="recommended_content_survey_dialog_submitted_message">أرسلت التعليقات. شكرا لك!</string>
Expand Down
22 changes: 11 additions & 11 deletions app/src/main/res/values-az/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1588,16 +1588,16 @@
<string name="patroller_onboarding_two_undo_content">Potensial dağıdıcı redaktəni geri qaytarmaq \"Geri qaytar\"ı seçin.</string>
<string name="patroller_diff_tooltip_one">Zərər, redaktənin vikiyə ziyan vurub-vurmadığını proqnozlaşdırır.</string>
<string name="patroller_diff_tooltip_two">Niyyət redaktənin yaxşı niyyətlə edildiyi ehtimalını proqnozlaşdırır.</string>
<string name="patroller_diff_feedback_dialog_title">Bu funksiyanı təkmilləşdirməkdə bizə kömək edin</string>
<string name="patroller_diff_feedback_dialog_message">Bu funksiya sizi qane edirmi?</string>
<string name="patroller_diff_feedback_dialog_option_satisfied">Razıyam</string>
<string name="patroller_diff_feedback_dialog_option_neutral">Neytral</string>
<string name="patroller_diff_feedback_dialog_option_unsatisfied">Razı deyiləm</string>
<string name="survey_dialog_title">Bu funksiyanı təkmilləşdirməkdə bizə kömək edin</string>
<string name="survey_dialog_message">Bu funksiya sizi qane edirmi?</string>
<string name="survey_dialog_option_satisfied">Razıyam</string>
<string name="survey_dialog_option_neutral">Neytral</string>
<string name="survey_dialog_option_unsatisfied">Razı deyiləm</string>
<string name="patroller_diff_feedback_dialog_feedback_title">Bu xüsusiyyəti necə inkişaf etdirə bilərik?</string>
<string name="patroller_diff_menu_edit_history_title">Məqalənin redaktə tarixçəsi</string>
<string name="patroller_diff_feedback_dialog_input_hint">Rəy</string>
<string name="patroller_diff_feedback_dialog_submit">Göndər</string>
<string name="patroller_diff_feedback_submitted_snackbar">Rəy təqdim edildi.</string>
<string name="survey_dialog_submit">Göndər</string>
<string name="survey_dialog_submitted_snackbar">Rəy təqdim edildi.</string>
<string name="patroller_diff_feedback_tooltip">İstənilən vaxt \"Xüsusiyyətlə bağlı problem\" altında rəy bildirmək üçün menyuya toxunun.</string>
<string name="patroller_saved_message_title_vandalism">Vandalizm xəbərdarlığı</string>
<string name="patroller_saved_message_title_editing_tests">Test redaktələri</string>
Expand Down Expand Up @@ -1655,11 +1655,11 @@
<string name="places_filter_title">Dilə görə filtrlə</string>
<string name="places_toggle_buttons_map">Xəritə</string>
<string name="places_toggle_buttons_list">Siyahı</string>
<string name="places_survey_very_satisfied_option">Çox razıyam</string>
<string name="places_survey_very_unsatisfied_option">Çox narazıyam</string>
<string name="survey_dialog_option_very_satisfied">Çox razıyam</string>
<string name="survey_dialog_option_very_unsatisfied">Çox narazıyam</string>
<string name="places_survey_dialog_title">\"Yerləri\" təkmilləşdirməyə kömək edin</string>
<string name="places_survey_feedback_dialog_title">\"Yerləri\" necə yaxşılaşdırmaq olar?</string>
<string name="places_survey_dialog_cancel">İmtina</string>
<string name="survey_dialog_cancel">İmtina</string>
<string name="places_survey_feedback_low_satisfaction_dialog_title">Nəyi dəyişdirməyimizi və ya təkmilləşdirməmizi istərdiniz?</string>
<string name="places_empty_list">Bu sahə boşdur. &lt;a href=\"#\"&gt;Xəritədə&lt;/a&gt; böyüdün.</string>
<string name="places_card_title">Yaxınlıqdakı yerlər</string>
Expand All @@ -1672,7 +1672,7 @@
<string name="recommended_content_section_you_might_like">Xoşunuza gələ bilər</string>
<string name="recommended_content_survey_dialog_title">Tövsiyə olunan məzmunu təkmilləşdirməyə kömək edin.</string>
<string name="recommended_content_survey_dialog_message">Bu tövsiyə olunan axtarış nəticəsi sizi qane edirmi?</string>
<string name="recommended_content_survey_dialog_input_hint">Əlavə rəy</string>
<string name="survey_dialog_input_hint">Əlavə rəy</string>
<string name="recommended_content_survey_dialog_submitted_message">Rəy təqdim edildi. Təşəkkürlər!</string>
<string name="donor_history_title">Donor tarixi</string>
<string name="donor_history_save_button">Yadda saxla</string>
Expand Down
14 changes: 7 additions & 7 deletions app/src/main/res/values-b+sr+Latn/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1487,15 +1487,15 @@
<string name="patroller_onboarding_two_watch_content">Da li želite da pratite izmene članka? Dodajte ga na svoj spisak nadgledanja. Pogledajte ga pod \'Više\'.</string>
<string name="patroller_onboarding_two_undo_title">Poništi/vrati</string>
<string name="patroller_onboarding_two_undo_content">Odaberite \'Poništi\' da bi ste poništili ili vratili potencionalnu destruktivnu izmenu.</string>
<string name="patroller_diff_feedback_dialog_title">Pomozite nam da unapredimo ovu mogućnost</string>
<string name="patroller_diff_feedback_dialog_message">Da li ste zadovoljni sa ovom mogućnošću?</string>
<string name="patroller_diff_feedback_dialog_option_satisfied">Zadovoljavajuće</string>
<string name="patroller_diff_feedback_dialog_option_neutral">Neutralno</string>
<string name="patroller_diff_feedback_dialog_option_unsatisfied">Nezadovoljavajuće</string>
<string name="survey_dialog_title">Pomozite nam da unapredimo ovu mogućnost</string>
<string name="survey_dialog_message">Da li ste zadovoljni sa ovom mogućnošću?</string>
<string name="survey_dialog_option_satisfied">Zadovoljavajuće</string>
<string name="survey_dialog_option_neutral">Neutralno</string>
<string name="survey_dialog_option_unsatisfied">Nezadovoljavajuće</string>
<string name="patroller_diff_feedback_dialog_feedback_title">Kako možemo da unapredimo mogućnost?</string>
<string name="patroller_diff_feedback_dialog_input_hint">Povratne informacije</string>
<string name="patroller_diff_feedback_dialog_submit">Pošalji</string>
<string name="patroller_diff_feedback_submitted_snackbar">Povratne informacije poslate.</string>
<string name="survey_dialog_submit">Pošalji</string>
<string name="survey_dialog_submitted_snackbar">Povratne informacije poslate.</string>
<string name="data_opt_in_accept">Prihvatam</string>
<string name="data_opt_in_reject">Odbaci</string>
<string name="page_issues_title">Problemi stranice</string>
Expand Down
12 changes: 6 additions & 6 deletions app/src/main/res/values-b+tt+Cyrl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1548,13 +1548,13 @@
<string name="patroller_onboarding_two_talk_title">Фикер алыш</string>
<string name="patroller_onboarding_two_talk_content">Башка төзәтүчеләр белән аралашыгыз. Еш кулланылган битләрне фикер алышу битендә саклагыз яки калыпны кулланыгыз.</string>
<string name="patroller_onboarding_two_undo_title">Кире кагу/Кире кайтару</string>
<string name="patroller_diff_feedback_dialog_title">Бу функцияне яхшыртырга ярдәм итегез</string>
<string name="patroller_diff_feedback_dialog_message">Сезне бу функция канәгатьләндерәме?</string>
<string name="patroller_diff_feedback_dialog_option_satisfied">Канәгатьләндерелгән</string>
<string name="patroller_diff_feedback_dialog_option_neutral">Нейтраль</string>
<string name="survey_dialog_title">Бу функцияне яхшыртырга ярдәм итегез</string>
<string name="survey_dialog_message">Сезне бу функция канәгатьләндерәме?</string>
<string name="survey_dialog_option_satisfied">Канәгатьләндерелгән</string>
<string name="survey_dialog_option_neutral">Нейтраль</string>
<string name="patroller_diff_feedback_dialog_input_hint">Кире элемтә</string>
<string name="patroller_diff_feedback_dialog_submit">Җибәрү</string>
<string name="patroller_diff_feedback_submitted_snackbar">Бәяләмә җибәрелде.</string>
<string name="survey_dialog_submit">Җибәрү</string>
<string name="survey_dialog_submitted_snackbar">Бәяләмә җибәрелде.</string>
<string name="patroller_diff_feedback_tooltip">«Функциясе белән проблема» бүлегендә бәяләмәләрне теләсә кайсы вакытта җибәрү өчен өстәмә менюга басыгыз.</string>
<string name="patroller_saved_message_title_auto_trans">Автоматик тәрҗемә</string>
<string name="patroller_saved_message_title_final_warning">Соңгы кисәтү</string>
Expand Down
14 changes: 7 additions & 7 deletions app/src/main/res/values-ba/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1584,16 +1584,16 @@
<string name="patroller_onboarding_two_undo_content">Зыянлы үҙгәртеүҙе кире алыу өсөн \"Кире алырға\" ғәмәлен һайлағыҙ.</string>
<string name="patroller_diff_tooltip_one">Мөхәррирләү викиҙың боҙолоуына килтерәме икәнен күҙаллай.</string>
<string name="patroller_diff_tooltip_two">Был алым мөхәррирләү изге ниәт менән һаҡланыу ихтималлығын күҙаллай.</string>
<string name="patroller_diff_feedback_dialog_title">Был функцияны яҡшыртырға ярҙам итегеҙ</string>
<string name="patroller_diff_feedback_dialog_message">Был функция менән ҡәнәғәтһегеҙме?</string>
<string name="patroller_diff_feedback_dialog_option_satisfied">Ҡәнәғәт</string>
<string name="patroller_diff_feedback_dialog_option_neutral">Нейтраль</string>
<string name="patroller_diff_feedback_dialog_option_unsatisfied">Ҡәнәғәт түгел</string>
<string name="survey_dialog_title">Был функцияны яҡшыртырға ярҙам итегеҙ</string>
<string name="survey_dialog_message">Был функция менән ҡәнәғәтһегеҙме?</string>
<string name="survey_dialog_option_satisfied">Ҡәнәғәт</string>
<string name="survey_dialog_option_neutral">Нейтраль</string>
<string name="survey_dialog_option_unsatisfied">Ҡәнәғәт түгел</string>
<string name="patroller_diff_feedback_dialog_feedback_title">Был функцияны нисек яҡшырта алабыҙ?</string>
<string name="patroller_diff_menu_edit_history_title">Мәҡәләне мөхәррирләү тарихы</string>
<string name="patroller_diff_feedback_dialog_input_hint">Бәйләнеш</string>
<string name="patroller_diff_feedback_dialog_submit">Тәҡдим итергә</string>
<string name="patroller_diff_feedback_submitted_snackbar">Фекер ебәрелде.</string>
<string name="survey_dialog_submit">Тәҡдим итергә</string>
<string name="survey_dialog_submitted_snackbar">Фекер ебәрелде.</string>
<string name="patroller_diff_feedback_tooltip">«Функция проблемалары» бүлегендә теләгән ваҡытта баһалама яҙыу өсөн өҫтәмә менюға баҫығыҙ.</string>
<string name="patroller_saved_message_title_vandalism">Вандализм тураһында иҫкәртеү</string>
<string name="patroller_saved_message_title_npov">Нейтраль ҡараш</string>
Expand Down
Loading
Loading