migrated the max answers poll feature strings to localazy

This commit is contained in:
Mauro Romito
2026-06-22 13:55:19 +02:00
committed by Mauro
parent a9252e400e
commit 87d18fe8e3
6 changed files with 16 additions and 13 deletions
@@ -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";
@@ -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";
@@ -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.";
@@ -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
+6
View File
@@ -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
@@ -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)