Skip to content

Commit

Permalink
[Spaces] M10.6 Space preview bottom sheet #4497
Browse files Browse the repository at this point in the history
- Localized strings for space join rule
  • Loading branch information
gileluard committed Sep 6, 2021
1 parent bb1f93a commit 51abfdc
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
6 changes: 6 additions & 0 deletions Riot/Assets/en.lproj/Vector.strings
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
20 changes: 20 additions & 0 deletions Riot/Generated/Strings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand Down
10 changes: 5 additions & 5 deletions Riot/Modules/Spaces/SpaceDetail/SpaceDetailViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 51abfdc

Please sign in to comment.