From 923c4bc671dcef5d2d1899bb4e52ec5eeb9d7a29 Mon Sep 17 00:00:00 2001 From: Alfonso Grillo Date: Fri, 24 Nov 2023 17:43:13 +0100 Subject: [PATCH] Update poll form localization keys (#2167) * Update poll form localisations * Update localisation keys --- .../Resources/Localizations/en.lproj/Localizable.strings | 5 +++-- ElementX/Sources/Generated/Strings.swift | 6 ++++-- .../Screens/CreatePollScreen/PollFormScreenViewModel.swift | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/ElementX/Resources/Localizations/en.lproj/Localizable.strings b/ElementX/Resources/Localizations/en.lproj/Localizable.strings index 1985bcb70..205f80735 100644 --- a/ElementX/Resources/Localizations/en.lproj/Localizable.strings +++ b/ElementX/Resources/Localizations/en.lproj/Localizable.strings @@ -294,6 +294,7 @@ "screen_advanced_settings_developer_mode" = "Developer mode"; "screen_advanced_settings_developer_mode_description" = "Enable to have access to features and functionality for developers."; "screen_advanced_settings_rich_text_editor_description" = "Disable the rich text editor to type Markdown manually."; +"screen_advanced_settings_view_source_description" = "Enable option to view message source in the timeline."; "screen_analytics_prompt_data_usage" = "We won't record or profile any personal data"; "screen_analytics_prompt_help_us_improve" = "Share anonymous usage data to help us identify issues."; "screen_analytics_prompt_read_terms" = "You can read all our terms %1$@."; @@ -360,8 +361,8 @@ "screen_create_poll_anonymous_desc" = "Show results only after poll ends"; "screen_create_poll_anonymous_headline" = "Hide votes"; "screen_create_poll_answer_hint" = "Option %1$d"; -"screen_create_poll_discard_confirmation" = "Your changes won’t be saved"; -"screen_create_poll_discard_confirmation_title" = "Cancel Poll"; +"screen_create_poll_cancel_confirmation_content_ios" = "Your changes won’t be saved"; +"screen_create_poll_cancel_confirmation_title_ios" = "Cancel Poll"; "screen_create_poll_question_desc" = "Question or topic"; "screen_create_poll_question_hint" = "What is the poll about?"; "screen_create_poll_title" = "Create Poll"; diff --git a/ElementX/Sources/Generated/Strings.swift b/ElementX/Sources/Generated/Strings.swift index 366e9d392..119b7f777 100644 --- a/ElementX/Sources/Generated/Strings.swift +++ b/ElementX/Sources/Generated/Strings.swift @@ -712,6 +712,8 @@ public enum L10n { public static var screenAdvancedSettingsElementCallBaseUrlValidationError: String { return L10n.tr("Localizable", "screen_advanced_settings_element_call_base_url_validation_error") } /// Disable the rich text editor to type Markdown manually. public static var screenAdvancedSettingsRichTextEditorDescription: String { return L10n.tr("Localizable", "screen_advanced_settings_rich_text_editor_description") } + /// Enable option to view message source in the timeline. + public static var screenAdvancedSettingsViewSourceDescription: String { return L10n.tr("Localizable", "screen_advanced_settings_view_source_description") } /// We won't record or profile any personal data public static var screenAnalyticsPromptDataUsage: String { return L10n.tr("Localizable", "screen_analytics_prompt_data_usage") } /// Share anonymous usage data to help us identify issues. @@ -885,9 +887,9 @@ public enum L10n { return L10n.tr("Localizable", "screen_create_poll_answer_hint", p1) } /// Your changes won’t be saved - public static var screenCreatePollDiscardConfirmation: String { return L10n.tr("Localizable", "screen_create_poll_discard_confirmation") } + public static var screenCreatePollCancelConfirmationContentIos: String { return L10n.tr("Localizable", "screen_create_poll_cancel_confirmation_content_ios") } /// Cancel Poll - public static var screenCreatePollDiscardConfirmationTitle: String { return L10n.tr("Localizable", "screen_create_poll_discard_confirmation_title") } + public static var screenCreatePollCancelConfirmationTitleIos: String { return L10n.tr("Localizable", "screen_create_poll_cancel_confirmation_title_ios") } /// Question or topic public static var screenCreatePollQuestionDesc: String { return L10n.tr("Localizable", "screen_create_poll_question_desc") } /// What is the poll about? diff --git a/ElementX/Sources/Screens/CreatePollScreen/PollFormScreenViewModel.swift b/ElementX/Sources/Screens/CreatePollScreen/PollFormScreenViewModel.swift index d4919cea7..08bdca244 100644 --- a/ElementX/Sources/Screens/CreatePollScreen/PollFormScreenViewModel.swift +++ b/ElementX/Sources/Screens/CreatePollScreen/PollFormScreenViewModel.swift @@ -47,8 +47,8 @@ class PollFormScreenViewModel: PollFormScreenViewModelType, PollFormScreenViewMo case .cancel: if state.formContentHasChanged { state.bindings.alertInfo = .init(id: .init(), - title: L10n.screenCreatePollDiscardConfirmationTitle, - message: L10n.screenCreatePollDiscardConfirmation, + title: L10n.screenCreatePollCancelConfirmationTitleIos, + message: L10n.screenCreatePollCancelConfirmationContentIos, primaryButton: .init(title: L10n.actionCancel, role: .cancel, action: nil), secondaryButton: .init(title: L10n.actionOk, action: { self.actionsSubject.send(.cancel) })) } else {