vector-im/element-ios/issues/4717 - Exposed new room name localizable string to use for empty direct messages.
MODIFY
MatrixKit/Assets/MatrixKitAssets.bundle/en.lproj/MatrixKit.strings
MatrixKit/Assets/MatrixKitAssets.bundle/en.lproj/MatrixKit.strings
"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";

MODIFY
MatrixKit/Utils/EventFormatter/MXKRoomNameStringLocalizations.h
MatrixKit/Utils/EventFormatter/MXKRoomNameStringLocalizations.h
*/
@interface MXKRoomNameStringLocalizations : NSObject <MXRoomNameStringsLocalizable>
-@property (copy, readonly, nonnull) NSString *emptyRoom;
-@property (copy, readonly, nonnull) NSString *twoMembers;
-@property (copy, readonly, nonnull) NSString *moreThanTwoMembers;
-
@end

MODIFY
MatrixKit/Utils/EventFormatter/MXKRoomNameStringLocalizations.m
MatrixKit/Utils/EventFormatter/MXKRoomNameStringLocalizations.m
#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
_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;
}

ADD
changelog.d/4717.change
+Exposed new room name localizable string to use for empty direct messages.
\ No newline at end of file

vector-im/element-ios/issues/4717 - Exposed new room name localizable string to use for empty direct messages.