session-ios/Signal/src/views/OWSDeviceTableViewCell.m
Michael Kirk 5200cccbe3 Update translations
* 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
2016-09-09 15:17:15 -04:00

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