mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
updated edit details screen copies to reflect the usage of spaces.
This commit is contained in:
@@ -534,6 +534,8 @@ internal enum L10n {
|
||||
internal static var commonModern: String { return L10n.tr("Localizable", "common_modern") }
|
||||
/// Mute
|
||||
internal static var commonMute: String { return L10n.tr("Localizable", "common_mute") }
|
||||
/// Name
|
||||
internal static var commonName: String { return L10n.tr("Localizable", "common_name") }
|
||||
/// %1$@ (%2$@)
|
||||
internal static func commonNameAndId(_ p1: Any, _ p2: Any) -> String {
|
||||
return L10n.tr("Localizable", "common_name_and_id", String(describing: p1), String(describing: p2))
|
||||
@@ -676,6 +678,8 @@ internal enum L10n {
|
||||
internal static var commonSomethingWentWrongMessage: String { return L10n.tr("Localizable", "common_something_went_wrong_message") }
|
||||
/// Space
|
||||
internal static var commonSpace: String { return L10n.tr("Localizable", "common_space") }
|
||||
/// What is this space about?
|
||||
internal static var commonSpaceTopicPlaceholder: String { return L10n.tr("Localizable", "common_space_topic_placeholder") }
|
||||
/// Plural format key: "%#@COUNT@"
|
||||
internal static func commonSpaces(_ p1: Int) -> String {
|
||||
return L10n.tr("Localizable", "common_spaces", p1)
|
||||
|
||||
@@ -35,7 +35,7 @@ struct RoomDetailsEditScreenViewState: BindableState {
|
||||
|
||||
/// The string shown for the room's name when it can't be edited.
|
||||
var nameRowTitle: String {
|
||||
bindings.name.isEmpty ? L10n.commonRoomName : bindings.name
|
||||
bindings.name.isEmpty ? L10n.commonName : bindings.name
|
||||
}
|
||||
|
||||
/// The string shown for the room's topic when it can't be edited.
|
||||
|
||||
@@ -92,7 +92,7 @@ struct RoomDetailsEditScreen: View {
|
||||
})
|
||||
}
|
||||
} header: {
|
||||
Text(L10n.commonRoomName)
|
||||
Text(L10n.commonName)
|
||||
.compoundListSectionHeader()
|
||||
}
|
||||
}
|
||||
@@ -100,7 +100,7 @@ struct RoomDetailsEditScreen: View {
|
||||
private var topicSection: some View {
|
||||
Section {
|
||||
if context.viewState.canEditTopic {
|
||||
ListRow(label: .plain(title: L10n.commonTopicPlaceholder),
|
||||
ListRow(label: .plain(title: context.viewState.isSpace ? L10n.commonSpaceTopicPlaceholder : L10n.commonTopicPlaceholder),
|
||||
kind: .textField(text: $context.topic, axis: .vertical))
|
||||
.focused($focus, equals: .topic)
|
||||
.lineLimit(3...)
|
||||
|
||||
Reference in New Issue
Block a user