vector-im/element-ios/issues/4899 - Replaced (*almost*) all NSLocalizedString calls with newly generated ObjC methods.

This commit is contained in:
Stefan Ceriu
2021-09-28 08:40:01 +03:00
committed by Stefan Ceriu
parent 21a71abedb
commit 7b75dec011
77 changed files with 1099 additions and 1108 deletions
@@ -20,6 +20,12 @@
#import "MXRoom+Riot.h"
#import "MatrixSDK-Swift.h"
#ifdef IS_SHARE_EXTENSION
#import "RiotShareExtension-Swift.h"
#else
#import "Riot-Swift.h"
#endif
@implementation RecentCellData
// trick to hide the mother class property as it is readonly one.
// self.roomDisplayname returns this value instead of the mother class.
@@ -33,7 +39,7 @@
if (notificationCount > 1000)
{
CGFloat value = notificationCount / 1000.0;
stringValue = [NSString stringWithFormat:NSLocalizedStringFromTable(@"large_badge_value_k_format", @"Vector", nil), value];
stringValue = [VectorL10n largeBadgeValueKFormat:value];
}
else
{
@@ -61,7 +67,7 @@
roomDisplayname = self.spaceChildInfo ? self.spaceChildInfo.name: self.roomSummary.displayname;
if (!roomDisplayname.length)
{
roomDisplayname = [NSBundle mxk_localizedStringForKey:@"room_displayname_empty_room"];
roomDisplayname = [MatrixKitL10n roomDisplaynameEmptyRoom];
}
}