|
|
@ -1504,22 +1504,22 @@ NSString *const kArchivedConversationsReuseIdentifier = @"kArchivedConversations
|
|
|
|
|
|
|
|
|
|
|
|
if (self.homeViewMode == HomeViewMode_Inbox) {
|
|
|
|
if (self.homeViewMode == HomeViewMode_Inbox) {
|
|
|
|
if ([Environment.preferences getHasSentAMessage]) {
|
|
|
|
if ([Environment.preferences getHasSentAMessage]) {
|
|
|
|
firstLine = NSLocalizedString(@"EMPTY_INBOX_FIRST_TITLE", @"");
|
|
|
|
firstLine = NSLocalizedString(
|
|
|
|
secondLine = NSLocalizedString(@"EMPTY_INBOX_FIRST_TEXT", @"");
|
|
|
|
@"EMPTY_INBOX_TITLE", @"Header text an existing user sees when viewing an empty inbox");
|
|
|
|
|
|
|
|
secondLine = NSLocalizedString(
|
|
|
|
|
|
|
|
@"EMPTY_INBOX_TEXT", @"Body text an existing user sees when viewing an empty inbox");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// FIXME: Misleading localizable string key name.
|
|
|
|
firstLine = NSLocalizedString(
|
|
|
|
firstLine = NSLocalizedString(@"EMPTY_ARCHIVE_FIRST_TITLE", @"First (bolded) part of the label that shows up when there are neither active nor archived conversations");
|
|
|
|
@"EMPTY_INBOX_NEW_USER_TITLE", @"Header text a new user sees when viewing an empty inbox");
|
|
|
|
secondLine = NSLocalizedString(@"EMPTY_ARCHIVE_FIRST_TEXT", @"Second part of the label that shows up when there are neither active nor archived conversations");
|
|
|
|
secondLine = NSLocalizedString(
|
|
|
|
|
|
|
|
@"EMPTY_INBOX_NEW_USER_TEXT", @"Body text a new user sees when viewing an empty inbox");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if ([Environment.preferences getHasArchivedAMessage]) {
|
|
|
|
OWSAssert(self.homeViewMode == HomeViewMode_Archive);
|
|
|
|
// FIXME: Shows up after the archival tab is cleared up completely by the user, the localizable string key is misleading.
|
|
|
|
firstLine = NSLocalizedString(
|
|
|
|
firstLine = NSLocalizedString(@"EMPTY_INBOX_TITLE", @"");
|
|
|
|
@"EMPTY_ARCHIVE_TITLE", @"Header text an existing user sees when viewing an empty archive");
|
|
|
|
secondLine = NSLocalizedString(@"EMPTY_INBOX_TEXT", @"");
|
|
|
|
secondLine = NSLocalizedString(
|
|
|
|
} else {
|
|
|
|
@"EMPTY_ARCHIVE_TEXT", @"Body text an existing user sees when viewing an empty archive");
|
|
|
|
firstLine = NSLocalizedString(@"EMPTY_ARCHIVE_TITLE", @"");
|
|
|
|
|
|
|
|
secondLine = NSLocalizedString(@"EMPTY_ARCHIVE_TEXT", @"");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
NSMutableAttributedString *fullLabelString =
|
|
|
|
NSMutableAttributedString *fullLabelString =
|
|
|
|
[[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@"%@\n%@", firstLine, secondLine]];
|
|
|
|
[[NSMutableAttributedString alloc] initWithString:[NSString stringWithFormat:@"%@\n%@", firstLine, secondLine]];
|
|
|
|