diff --git a/MatrixKit/Assets/MatrixKitAssets.bundle/en.lproj/MatrixKit.strings b/MatrixKit/Assets/MatrixKitAssets.bundle/en.lproj/MatrixKit.strings index 5258f9cb..39bc4310 100644 --- a/MatrixKit/Assets/MatrixKitAssets.bundle/en.lproj/MatrixKit.strings +++ b/MatrixKit/Assets/MatrixKitAssets.bundle/en.lproj/MatrixKit.strings @@ -158,6 +158,7 @@ "room_displayname_empty_room" = "Empty room"; "room_displayname_two_members" = "%@ and %@"; "room_displayname_more_than_two_members" = "%@ and %@ others"; +"room_displayname_all_other_participants_left" = "%@ (Left)"; // Settings "settings" = "Settings"; diff --git a/MatrixKit/Utils/EventFormatter/MXKRoomNameStringLocalizations.h b/MatrixKit/Utils/EventFormatter/MXKRoomNameStringLocalizations.h index 9f1a0cde..de63937a 100644 --- a/MatrixKit/Utils/EventFormatter/MXKRoomNameStringLocalizations.h +++ b/MatrixKit/Utils/EventFormatter/MXKRoomNameStringLocalizations.h @@ -21,10 +21,6 @@ /** The `MXKRoomNameStringLocalizations` implements localization strings for `MXRoomNameStringsLocalizable`. */ -@interface MXKRoomNameStringLocalizations : NSObject - -@property (copy, readonly, nonnull) NSString *emptyRoom; -@property (copy, readonly, nonnull) NSString *twoMembers; -@property (copy, readonly, nonnull) NSString *moreThanTwoMembers; +@interface MXKRoomNameStringLocalizations : NSObject @end diff --git a/MatrixKit/Utils/EventFormatter/MXKRoomNameStringLocalizations.m b/MatrixKit/Utils/EventFormatter/MXKRoomNameStringLocalizations.m index e748719a..d689018e 100644 --- a/MatrixKit/Utils/EventFormatter/MXKRoomNameStringLocalizations.m +++ b/MatrixKit/Utils/EventFormatter/MXKRoomNameStringLocalizations.m @@ -18,6 +18,15 @@ #import "NSBundle+MatrixKit.h" +@interface MXKRoomNameStringLocalizations () + +@property (nonatomic, copy) NSString *emptyRoom; +@property (nonatomic, copy) NSString *twoMembers; +@property (nonatomic, copy) NSString *moreThanTwoMembers; +@property (nonatomic, copy) NSString *allOtherParticipantsLeft; + +@end + @implementation MXKRoomNameStringLocalizations - (instancetype)init @@ -28,6 +37,7 @@ - (instancetype)init _emptyRoom = [NSBundle mxk_localizedStringForKey:@"room_displayname_empty_room"]; _twoMembers = [NSBundle mxk_localizedStringForKey:@"room_displayname_two_members"]; _moreThanTwoMembers = [NSBundle mxk_localizedStringForKey:@"room_displayname_more_than_two_members"]; + _allOtherParticipantsLeft = [NSBundle mxk_localizedStringForKey:@"room_displayname_all_other_participants_left"]; } return self; } diff --git a/changelog.d/4717.change b/changelog.d/4717.change new file mode 100644 index 00000000..61c30522 --- /dev/null +++ b/changelog.d/4717.change @@ -0,0 +1 @@ +Exposed new room name localizable string to use for empty direct messages. \ No newline at end of file