From 37fea79d575afd90632d21f89d3bba02e0e621b7 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Thu, 25 Jul 2019 13:48:39 +1000 Subject: [PATCH] Improve public key explanation --- Signal/src/Loki/NewConversationViewController.swift | 2 +- Signal/src/ViewControllers/HomeView/HomeViewController.m | 4 ++-- Signal/translations/en.lproj/Localizable.strings | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Signal/src/Loki/NewConversationViewController.swift b/Signal/src/Loki/NewConversationViewController.swift index 8b528627f..0c12b230f 100644 --- a/Signal/src/Loki/NewConversationViewController.swift +++ b/Signal/src/Loki/NewConversationViewController.swift @@ -31,7 +31,7 @@ final class NewConversationViewController : OWSViewController { let explanationLabel = UILabel() explanationLabel.textColor = Theme.primaryColor explanationLabel.font = UIFont.ows_dynamicTypeSubheadlineClamped - explanationLabel.text = NSLocalizedString("For example: 059abcf223aa8c10e3dc2d623688b75dd25896794717e4a9c486772664fc95e41e.", comment: "") + explanationLabel.text = NSLocalizedString("Enter the public key of the person you'd like to securely message. They can share their public key with you by going into Loki Messenger's in-app settings and clicking \"Share Public Key\".", comment: "") explanationLabel.numberOfLines = 0 explanationLabel.lineBreakMode = .byWordWrapping // Button diff --git a/Signal/src/ViewControllers/HomeView/HomeViewController.m b/Signal/src/ViewControllers/HomeView/HomeViewController.m index 44affb8da..8b1355f59 100644 --- a/Signal/src/ViewControllers/HomeView/HomeViewController.m +++ b/Signal/src/ViewControllers/HomeView/HomeViewController.m @@ -396,9 +396,9 @@ typedef NS_ENUM(NSInteger, HomeViewControllerSection) { */ UILabel *emptyInboxLabel = [UILabel new]; - emptyInboxLabel.text = NSLocalizedString(@"Looks like you don\'t have any conversations yet. Get started by messaging a friend.", @""); + emptyInboxLabel.text = NSLocalizedString(@"Looks like you don't have any conversations yet. Get started by messaging a friend.", @""); emptyInboxLabel.font = UIFont.ows_dynamicTypeBodyClampedFont; - emptyInboxLabel.textColor = Theme.secondaryColor; + emptyInboxLabel.textColor = UIColor.whiteColor; emptyInboxLabel.textAlignment = NSTextAlignmentCenter; emptyInboxLabel.numberOfLines = 0; emptyInboxLabel.lineBreakMode = NSLineBreakByWordWrapping; diff --git a/Signal/translations/en.lproj/Localizable.strings b/Signal/translations/en.lproj/Localizable.strings index db927985d..c405b85d6 100644 --- a/Signal/translations/en.lproj/Localizable.strings +++ b/Signal/translations/en.lproj/Localizable.strings @@ -2597,4 +2597,5 @@ "For example: 059abcf223aa8c10e3dc2d623688b75dd25896794717e4a9c486772664fc95e41e." = "For example: 059abcf223aa8c10e3dc2d623688b75dd25896794717e4a9c486772664fc95e41e."; "Invalid Public Key" = "Invalid Public Key"; "Please check the public key you entered and try again." = "Please check the public key you entered and try again."; -"Looks like you don\'t have any conversations yet. Get started by messaging a friend." = "Looks like you don\'t have any conversations yet. Get started by messaging a friend."; +"Looks like you don't have any conversations yet. Get started by messaging a friend." = "Looks like you don't have any conversations yet. Get started by messaging a friend."; +"Enter the public key of the person you'd like to securely message. They can share their public key with you by going into Loki Messenger's in-app settings and clicking \"Share Public Key\"." = "Enter the public key of the person you'd like to securely message. They can share their public key with you by going into Loki Messenger's in-app settings and clicking \"Share Public Key\".";