mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
5200cccbe3
* New bg (Bulgarian) localization! * New sq (Albanian) localization! * replace unfinished bg_BG localization with complete bg localization * caps keys to make it easier to see missing localizations * pull with newly pushed source keys // FREEBIE
27 lines
903 B
Objective-C
27 lines
903 B
Objective-C
// Copyright © 2016 Open Whisper Systems. All rights reserved.
|
|
|
|
#import "OWSDeviceTableViewCell.h"
|
|
#import "DateUtil.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@implementation OWSDeviceTableViewCell
|
|
|
|
- (void)configureWithDevice:(OWSDevice *)device
|
|
{
|
|
self.nameLabel.text = device.displayName;
|
|
|
|
NSString *linkedFormatString
|
|
= NSLocalizedString(@"DEVICE_LINKED_AT_LABEL", @"{{Short Date}} when device was linked.");
|
|
self.linkedLabel.text =
|
|
[NSString stringWithFormat:linkedFormatString, [DateUtil.dateFormatter stringFromDate:device.createdAt]];
|
|
|
|
NSString *lastSeenFormatString = NSLocalizedString(
|
|
@"DEVICE_LAST_ACTIVE_AT_LABEL", @"{{Short Date}} when device last communicated with Signal Server.");
|
|
self.lastSeenLabel.text =
|
|
[NSString stringWithFormat:lastSeenFormatString, [DateUtil.dateFormatter stringFromDate:device.createdAt]];
|
|
}
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|