diff options
author | Siqi LIU <me@siqi.fr> | 2013-11-21 00:58:10 +0100 |
---|---|---|
committer | Siqi LIU <me@siqi.fr> | 2013-11-21 00:59:57 +0100 |
commit | 8232dfd5206da20546780ec0a2d3e7ea490fdb07 (patch) | |
tree | 08b017ce4a84310a26423219a1143f54427a9aeb /ios | |
parent | e7fcb3f02092f1ac136344a54298e87798428860 (diff) |
plain strings in in-app tuto to localized strings
Change-Id: I20cf3a3095015a72a8db46248a196c70f399f84f
Diffstat (limited to 'ios')
3 files changed, 10 insertions, 10 deletions
diff --git a/ios/iosremote/iosremote/Classes/ServerListViewController.m b/ios/iosremote/iosremote/Classes/ServerListViewController.m index 0012921cb3f9..15bdf86305ef 100644 --- a/ios/iosremote/iosremote/Classes/ServerListViewController.m +++ b/ios/iosremote/iosremote/Classes/ServerListViewController.m @@ -484,7 +484,7 @@ if (indexPath.section == 0){ if ([self.comManager.autoDiscoveryServers count] == 0){ - cell.textLabel.text = NSLocalizedString(self.searchStateText, nil); + cell.textLabel.text = self.searchStateText; cell.textLabel.lineBreakMode = UILineBreakModeClip; cell.selectionStyle = self.style; diff --git a/ios/iosremote/iosremote/Classes/WalkThroughContainerViewController.m b/ios/iosremote/iosremote/Classes/WalkThroughContainerViewController.m index 49c7c035b8a7..6bc9f9d2111c 100644 --- a/ios/iosremote/iosremote/Classes/WalkThroughContainerViewController.m +++ b/ios/iosremote/iosremote/Classes/WalkThroughContainerViewController.m @@ -40,11 +40,11 @@ [[self view] addSubview:self.pageController.view]; [self.pageController didMoveToParentViewController:self]; - UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"Ok, thanks", nil) style:UIBarButtonItemStyleBordered target:self action:@selector(handleBack)]; + UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"Ok, thanks", @"backButton for Tutorial") style:UIBarButtonItemStyleBordered target:self action:@selector(handleBack)]; [backButton setBackgroundImage:[UIImage imageNamed:@"backButton"] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault]; self.navigationItem.leftBarButtonItem = backButton; - [self setTitle:NSLocalizedString(@"How-to", nil)]; + [self setTitle:NSLocalizedString(@"How-to", @"In app How-to title")]; self.navigationController.navigationBar.translucent = NO; } diff --git a/ios/iosremote/iosremote/Classes/WalkThroughPageViewController.m b/ios/iosremote/iosremote/Classes/WalkThroughPageViewController.m index a53ccf5eefbe..f7b4c775e4c5 100644 --- a/ios/iosremote/iosremote/Classes/WalkThroughPageViewController.m +++ b/ios/iosremote/iosremote/Classes/WalkThroughPageViewController.m @@ -31,16 +31,16 @@ switch (self.index) { case 0: [self.image setImage:[UIImage imageNamed:@"WTconnection"]]; - self.instructionText.text = @"Connect your devices to the same WiFi network."; - self.instructionHint.text = @"Create a personal hotspot on your iPhone if needed."; - self.instructionTitle.text = @"Connection"; + self.instructionText.text = NSLocalizedString(@"Connect your devices to the same WiFi network.", @"connect instructions"); + self.instructionHint.text = NSLocalizedString(@"Create a personal hotspot on your iPhone if needed.", @"connect instructions"); + self.instructionTitle.text = NSLocalizedString(@"Connection", @"instruction page title"); [self.hintImage setImage:[UIImage imageNamed:@"WTConnectionHotspot"]]; break; case 1: [self.image setImage:[UIImage imageNamed:@"WTconnecting"]]; - self.instructionText.text = @"Launch Impress & select your computer."; - self.instructionHint.text = @"Enter the PIN code in SlideShow - Impress Remote"; - self.instructionTitle.text = @"Pairing"; + self.instructionText.text = NSLocalizedString(@"Launch Impress & select your computer.", @"Pairing instruction text"); + self.instructionHint.text = NSLocalizedString(@"Enter the PIN code in SlideShow - Impress Remote", @"Pairing instruction text"); + self.instructionTitle.text = NSLocalizedString(@"Pairing", @"Pairing instruction title"); [self.hintImage setImage:[UIImage imageNamed:@"WTPairing"]]; break; case 2:{ @@ -49,7 +49,7 @@ else [self.image setImage:[UIImage imageNamed:@"WTcontrol~ipad"]]; // self.instructionText.text = @"Control your presentation at your fingertips!"; - self.instructionTitle.text = @"Control"; + self.instructionTitle.text = NSLocalizedString(@"Control", @"Control instruction title"); UIImage *backgroundImage = [UIImage imageNamed:@"buttonBackground"]; UIEdgeInsets insets = UIEdgeInsetsMake(20, 7, 20, 7); UIImage *stretchableBackgroundImage = [backgroundImage resizableImageWithCapInsets:insets]; |