diff --git a/Riot/Assets/en.lproj/Vector.strings b/Riot/Assets/en.lproj/Vector.strings index add2164d1d..757d147776 100644 --- a/Riot/Assets/en.lproj/Vector.strings +++ b/Riot/Assets/en.lproj/Vector.strings @@ -1688,6 +1688,12 @@ Tap the + to start adding people."; "space_participants_action_remove" = "Remove from this space"; "space_participants_action_ban" = "Ban from this space"; +"space_invite_join_rule" = "Space with invite"; +"space_knock_join_rule" = "Space with knock"; +"space_none_join_rule" = "Space without join rule"; +"space_private_join_rule" = "Private space"; +"space_public_join_rule" = "Public space"; + // Mark: Avatar "space_avatar_view_accessibility_label" = "avatar"; diff --git a/Riot/Generated/Strings.swift b/Riot/Generated/Strings.swift index 9111ce6558..426e4bb179 100644 --- a/Riot/Generated/Strings.swift +++ b/Riot/Generated/Strings.swift @@ -4722,6 +4722,18 @@ internal enum VectorL10n { internal static var spaceFeatureUnavailableTitle: String { return VectorL10n.tr("Vector", "space_feature_unavailable_title") } + /// Space with invite + internal static var spaceInviteJoinRule: String { + return VectorL10n.tr("Vector", "space_invite_join_rule") + } + /// Space with knock + internal static var spaceKnockJoinRule: String { + return VectorL10n.tr("Vector", "space_knock_join_rule") + } + /// Space without join rule + internal static var spaceNoneJoinRule: String { + return VectorL10n.tr("Vector", "space_none_join_rule") + } /// Ban from this space internal static var spaceParticipantsActionBan: String { return VectorL10n.tr("Vector", "space_participants_action_ban") @@ -4730,6 +4742,14 @@ internal enum VectorL10n { internal static var spaceParticipantsActionRemove: String { return VectorL10n.tr("Vector", "space_participants_action_remove") } + /// Private space + internal static var spacePrivateJoinRule: String { + return VectorL10n.tr("Vector", "space_private_join_rule") + } + /// Public space + internal static var spacePublicJoinRule: String { + return VectorL10n.tr("Vector", "space_public_join_rule") + } /// space internal static var spaceTag: String { return VectorL10n.tr("Vector", "space_tag") diff --git a/Riot/Modules/Spaces/SpaceDetail/SpaceDetailViewController.swift b/Riot/Modules/Spaces/SpaceDetail/SpaceDetailViewController.swift index 3313b0d382..84e5a87103 100644 --- a/Riot/Modules/Spaces/SpaceDetail/SpaceDetailViewController.swift +++ b/Riot/Modules/Spaces/SpaceDetail/SpaceDetailViewController.swift @@ -217,11 +217,11 @@ class SpaceDetailViewController: UIViewController { var joinRuleString = "" switch joinRule { - case .invite: joinRuleString = "invite" - case .knock: joinRuleString = "knock" - case .none: joinRuleString = "none" - case .private: joinRuleString = "private" - case .public: joinRuleString = "public" + case .invite: joinRuleString = VectorL10n.spaceInviteJoinRule + case .knock: joinRuleString = VectorL10n.spaceKnockJoinRule + case .none: joinRuleString = VectorL10n.spaceNoneJoinRule + case .private: joinRuleString = VectorL10n.spacePrivateJoinRule + case .public: joinRuleString = VectorL10n.spacePublicJoinRule } let membersCount = summary.membersCount.members