Update poll form localization keys (#2167)

* Update poll form localisations

* Update localisation keys
This commit is contained in:
Alfonso Grillo
2023-11-24 17:43:13 +01:00
committed by GitHub
parent 4447829618
commit 0d9579d78e
3 changed files with 9 additions and 6 deletions
@@ -294,6 +294,7 @@
"screen_advanced_settings_developer_mode" = "Developer mode"; "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_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_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_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_help_us_improve" = "Share anonymous usage data to help us identify issues.";
"screen_analytics_prompt_read_terms" = "You can read all our terms %1$@."; "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_desc" = "Show results only after poll ends";
"screen_create_poll_anonymous_headline" = "Hide votes"; "screen_create_poll_anonymous_headline" = "Hide votes";
"screen_create_poll_answer_hint" = "Option %1$d"; "screen_create_poll_answer_hint" = "Option %1$d";
"screen_create_poll_discard_confirmation" = "Your changes won’t be saved"; "screen_create_poll_cancel_confirmation_content_ios" = "Your changes won’t be saved";
"screen_create_poll_discard_confirmation_title" = "Cancel Poll"; "screen_create_poll_cancel_confirmation_title_ios" = "Cancel Poll";
"screen_create_poll_question_desc" = "Question or topic"; "screen_create_poll_question_desc" = "Question or topic";
"screen_create_poll_question_hint" = "What is the poll about?"; "screen_create_poll_question_hint" = "What is the poll about?";
"screen_create_poll_title" = "Create Poll"; "screen_create_poll_title" = "Create Poll";
+4 -2
View File
@@ -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") } 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. /// 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") } 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 /// We won't record or profile any personal data
public static var screenAnalyticsPromptDataUsage: String { return L10n.tr("Localizable", "screen_analytics_prompt_data_usage") } public static var screenAnalyticsPromptDataUsage: String { return L10n.tr("Localizable", "screen_analytics_prompt_data_usage") }
/// Share anonymous usage data to help us identify issues. /// 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) return L10n.tr("Localizable", "screen_create_poll_answer_hint", p1)
} }
/// Your changes won’t be saved /// 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 /// 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 /// Question or topic
public static var screenCreatePollQuestionDesc: String { return L10n.tr("Localizable", "screen_create_poll_question_desc") } public static var screenCreatePollQuestionDesc: String { return L10n.tr("Localizable", "screen_create_poll_question_desc") }
/// What is the poll about? /// What is the poll about?
@@ -47,8 +47,8 @@ class PollFormScreenViewModel: PollFormScreenViewModelType, PollFormScreenViewMo
case .cancel: case .cancel:
if state.formContentHasChanged { if state.formContentHasChanged {
state.bindings.alertInfo = .init(id: .init(), state.bindings.alertInfo = .init(id: .init(),
title: L10n.screenCreatePollDiscardConfirmationTitle, title: L10n.screenCreatePollCancelConfirmationTitleIos,
message: L10n.screenCreatePollDiscardConfirmation, message: L10n.screenCreatePollCancelConfirmationContentIos,
primaryButton: .init(title: L10n.actionCancel, role: .cancel, action: nil), primaryButton: .init(title: L10n.actionCancel, role: .cancel, action: nil),
secondaryButton: .init(title: L10n.actionOk, action: { self.actionsSubject.send(.cancel) })) secondaryButton: .init(title: L10n.actionOk, action: { self.actionsSubject.send(.cancel) }))
} else { } else {