diff --git a/ElementX/Resources/Localizations/en-US.lproj/Localizable.strings b/ElementX/Resources/Localizations/en-US.lproj/Localizable.strings index c778631d4..a7aaf13b0 100644 --- a/ElementX/Resources/Localizations/en-US.lproj/Localizable.strings +++ b/ElementX/Resources/Localizations/en-US.lproj/Localizable.strings @@ -3,6 +3,8 @@ "a11y_address" = "Address"; "a11y_avatar" = "Avatar"; "a11y_collapse_message_text_field" = "Minimize message text field"; +"a11y_create_poll_votes_allowed_decrease" = "Decrease votes allowed per person"; +"a11y_create_poll_votes_allowed_increase" = "Increase votes allowed per person"; "a11y_delete" = "Delete"; "a11y_duration" = "Duration: %1$@"; "a11y_edit_avatar" = "Edit avatar"; @@ -732,6 +734,7 @@ "screen_create_poll_remove_accessibility_label" = "Remove %1$@"; "screen_create_poll_settings_section_title" = "Settings"; "screen_create_poll_title" = "Create Poll"; +"screen_create_poll_votes_allowed_per_person" = "Votes allowed per person"; "screen_create_room_action_create_room" = "New room"; "screen_create_room_add_people_title" = "Invite people"; "screen_create_room_error_creating_room" = "An error occurred when creating the room"; diff --git a/ElementX/Resources/Localizations/en.lproj/Localizable.strings b/ElementX/Resources/Localizations/en.lproj/Localizable.strings index 2507c9324..40cc4f1e9 100644 --- a/ElementX/Resources/Localizations/en.lproj/Localizable.strings +++ b/ElementX/Resources/Localizations/en.lproj/Localizable.strings @@ -3,6 +3,8 @@ "a11y_address" = "Address"; "a11y_avatar" = "Avatar"; "a11y_collapse_message_text_field" = "Minimise message text field"; +"a11y_create_poll_votes_allowed_decrease" = "Decrease votes allowed per person"; +"a11y_create_poll_votes_allowed_increase" = "Increase votes allowed per person"; "a11y_delete" = "Delete"; "a11y_duration" = "Duration: %1$@"; "a11y_edit_avatar" = "Edit avatar"; @@ -732,6 +734,7 @@ "screen_create_poll_remove_accessibility_label" = "Remove %1$@"; "screen_create_poll_settings_section_title" = "Settings"; "screen_create_poll_title" = "Create Poll"; +"screen_create_poll_votes_allowed_per_person" = "Votes allowed per person"; "screen_create_room_action_create_room" = "New room"; "screen_create_room_add_people_title" = "Invite people"; "screen_create_room_error_creating_room" = "An error occurred when creating the room"; @@ -1537,7 +1540,7 @@ "screen_start_chat_error_starting_chat" = "An error occurred when trying to start a chat"; "screen_start_chat_join_room_by_address_action" = "Join room by address"; "screen_start_chat_join_room_by_address_invalid_address" = "Not a valid address"; -"screen_start_chat_join_room_by_address_placeholder" = "Enter..."; +"screen_start_chat_join_room_by_address_placeholder" = "Enter Address..."; "screen_start_chat_join_room_by_address_room_found" = "Matching room found"; "screen_start_chat_join_room_by_address_room_not_found" = "Room not found"; "screen_start_chat_join_room_by_address_supporting_text" = "e.g. #room-name:matrix.org"; diff --git a/ElementX/Resources/Localizations/en.lproj/Untranslated.strings b/ElementX/Resources/Localizations/en.lproj/Untranslated.strings index 3b787688a..91af059f3 100644 --- a/ElementX/Resources/Localizations/en.lproj/Untranslated.strings +++ b/ElementX/Resources/Localizations/en.lproj/Untranslated.strings @@ -2,9 +2,6 @@ "screen_search_empty_state_message" = "Search for rooms"; "screen_search_empty_state_title" = "Start searching..."; "screen_search_no_results_message" = "There are no results for “%1$@.” Try a new search term."; -"a11y_screen_create_poll_votes_allowed_decrease" = "Decrease votes allowed per person"; -"a11y_screen_create_poll_votes_allowed_increase" = "Increase votes allowed per person"; -"screen_create_poll_votes_allowed_per_person" = "Votes allowed per person"; "soft_logout_clear_data_dialog_content" = "Clear all data currently stored on this device?\nSign in again to access your account data and messages."; "soft_logout_clear_data_dialog_title" = "Clear data"; "soft_logout_clear_data_notice" = "Warning: Your personal data (including encryption keys) is still stored on this device.\n\nClear it if you’re finished using this device, or want to sign in to another account."; diff --git a/ElementX/Sources/Generated/Strings+Untranslated.swift b/ElementX/Sources/Generated/Strings+Untranslated.swift index b19fc4b4b..a24c4b413 100644 --- a/ElementX/Sources/Generated/Strings+Untranslated.swift +++ b/ElementX/Sources/Generated/Strings+Untranslated.swift @@ -10,12 +10,6 @@ import Foundation // swiftlint:disable explicit_type_interface function_parameter_count identifier_name line_length // swiftlint:disable nesting type_body_length type_name vertical_whitespace_opening_braces internal nonisolated enum UntranslatedL10n { - /// Decrease votes allowed per person - internal static var a11yScreenCreatePollVotesAllowedDecrease: String { return UntranslatedL10n.tr("Untranslated", "a11y_screen_create_poll_votes_allowed_decrease") } - /// Increase votes allowed per person - internal static var a11yScreenCreatePollVotesAllowedIncrease: String { return UntranslatedL10n.tr("Untranslated", "a11y_screen_create_poll_votes_allowed_increase") } - /// Votes allowed per person - internal static var screenCreatePollVotesAllowedPerPerson: String { return UntranslatedL10n.tr("Untranslated", "screen_create_poll_votes_allowed_per_person") } /// Search internal static var screenHomeTabSearch: String { return UntranslatedL10n.tr("Untranslated", "screen_home_tab_search") } /// Search for rooms diff --git a/ElementX/Sources/Generated/Strings.swift b/ElementX/Sources/Generated/Strings.swift index 07b88906b..80afadb10 100644 --- a/ElementX/Sources/Generated/Strings.swift +++ b/ElementX/Sources/Generated/Strings.swift @@ -22,6 +22,10 @@ internal nonisolated enum L10n { internal static var a11yAvatar: String { return L10n.tr("Localizable", "a11y_avatar") } /// Minimise message text field internal static var a11yCollapseMessageTextField: String { return L10n.tr("Localizable", "a11y_collapse_message_text_field") } + /// Decrease votes allowed per person + internal static var a11yCreatePollVotesAllowedDecrease: String { return L10n.tr("Localizable", "a11y_create_poll_votes_allowed_decrease") } + /// Increase votes allowed per person + internal static var a11yCreatePollVotesAllowedIncrease: String { return L10n.tr("Localizable", "a11y_create_poll_votes_allowed_increase") } /// Delete internal static var a11yDelete: String { return L10n.tr("Localizable", "a11y_delete") } /// Plural format key: "%#@COUNT@" @@ -1717,6 +1721,8 @@ internal nonisolated enum L10n { internal static var screenCreatePollSettingsSectionTitle: String { return L10n.tr("Localizable", "screen_create_poll_settings_section_title") } /// Create Poll internal static var screenCreatePollTitle: String { return L10n.tr("Localizable", "screen_create_poll_title") } + /// Votes allowed per person + internal static var screenCreatePollVotesAllowedPerPerson: String { return L10n.tr("Localizable", "screen_create_poll_votes_allowed_per_person") } /// New room internal static var screenCreateRoomActionCreateRoom: String { return L10n.tr("Localizable", "screen_create_room_action_create_room") } /// Invite people diff --git a/ElementX/Sources/Screens/CreatePollScreen/View/PollFormScreen.swift b/ElementX/Sources/Screens/CreatePollScreen/View/PollFormScreen.swift index 4ff865148..8ae8e1efa 100644 --- a/ElementX/Sources/Screens/CreatePollScreen/View/PollFormScreen.swift +++ b/ElementX/Sources/Screens/CreatePollScreen/View/PollFormScreen.swift @@ -177,7 +177,7 @@ private struct PollFormMaxSelectionsRow: View { var body: some View { ListRow(kind: .custom { HStack(spacing: 16) { - Text(UntranslatedL10n.screenCreatePollVotesAllowedPerPerson) + Text(L10n.screenCreatePollVotesAllowedPerPerson) .font(.compound.bodyLG) .foregroundStyle(.compound.textPrimary) .lineLimit(2) @@ -190,7 +190,7 @@ private struct PollFormMaxSelectionsRow: View { } .disabled(maxSelections <= 1) .buttonStyle(.compound(.tertiary, size: .toolbarIcon)) - .accessibilityLabel(UntranslatedL10n.a11yScreenCreatePollVotesAllowedDecrease) + .accessibilityLabel(L10n.a11yCreatePollVotesAllowedDecrease) .accessibilityIdentifier(A11yIdentifiers.pollFormScreen.maxSelectionsDecrement) Text("\(maxSelections)") @@ -206,7 +206,7 @@ private struct PollFormMaxSelectionsRow: View { } .disabled(maxSelections >= maxNumberOfSelections) .buttonStyle(.compound(.tertiary, size: .toolbarIcon)) - .accessibilityLabel(UntranslatedL10n.a11yScreenCreatePollVotesAllowedIncrease) + .accessibilityLabel(L10n.a11yCreatePollVotesAllowedIncrease) .accessibilityIdentifier(A11yIdentifiers.pollFormScreen.maxSelectionsIncrement) } .layoutPriority(1)