mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
migrated the max answers poll feature strings to localazy
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user