updated edit details screen copies to reflect the usage of spaces.
This commit is contained in:
@@ -239,6 +239,7 @@
|
||||
"common_message_removed" = "Message removed";
|
||||
"common_modern" = "Modern";
|
||||
"common_mute" = "Mute";
|
||||
"common_name" = "Name";
|
||||
"common_name_and_id" = "%1$@ (%2$@)";
|
||||
"common_no_results" = "No results";
|
||||
"common_no_room_name" = "No room name";
|
||||
@@ -300,6 +301,7 @@
|
||||
"common_something_went_wrong" = "Something went wrong";
|
||||
"common_something_went_wrong_message" = "We encountered an issue. Please try again.";
|
||||
"common_space" = "Space";
|
||||
"common_space_topic_placeholder" = "What is this space about?";
|
||||
"common_starting_chat" = "Starting chat…";
|
||||
"common_sticker" = "Sticker";
|
||||
"common_success" = "Success";
|
||||
|
||||
@@ -239,6 +239,7 @@
|
||||
"common_message_removed" = "Message removed";
|
||||
"common_modern" = "Modern";
|
||||
"common_mute" = "Mute";
|
||||
"common_name" = "Name";
|
||||
"common_name_and_id" = "%1$@ (%2$@)";
|
||||
"common_no_results" = "No results";
|
||||
"common_no_room_name" = "No room name";
|
||||
@@ -300,6 +301,7 @@
|
||||
"common_something_went_wrong" = "Something went wrong";
|
||||
"common_something_went_wrong_message" = "We encountered an issue. Please try again.";
|
||||
"common_space" = "Space";
|
||||
"common_space_topic_placeholder" = "What is this space about?";
|
||||
"common_starting_chat" = "Starting chat…";
|
||||
"common_sticker" = "Sticker";
|
||||
"common_success" = "Success";
|
||||
|
||||
@@ -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...)
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user