Kaydet (Commit) a1174cd9 authored tarafından Siqi LIU's avatar Siqi LIU

localization support for iPhone on fr,zh-Hans,en

Change-Id: Ic27519a8873436f3683450059aecbbd04e1403ab
üst a8775975
B/* Popover option */ B/* Popover option */
......
...@@ -85,7 +85,8 @@ ...@@ -85,7 +85,8 @@
[self setNameCell:[self newDetailCellWithTag:ServerName]]; [self setNameCell:[self newDetailCellWithTag:ServerName]];
[self setAddrCell:[self newDetailCellWithTag:ServerAddr]]; [self setAddrCell:[self newDetailCellWithTag:ServerAddr]];
[self setTitle:NSLocalizedString(@"New Server", nil)]; if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
[self setTitle:NSLocalizedString(@"New Server", nil)];
UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"Cancel", nil) style:UIBarButtonItemStyleBordered target:self action:@selector(handleBack)]; UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"Cancel", nil) style:UIBarButtonItemStyleBordered target:self action:@selector(handleBack)];
[backButton setBackgroundImage:[UIImage imageNamed:@"backButton"] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault]; [backButton setBackgroundImage:[UIImage imageNamed:@"backButton"] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
......
...@@ -281,9 +281,9 @@ ...@@ -281,9 +281,9 @@
} }
UILabel *sectionHeader; UILabel *sectionHeader;
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) {
sectionHeader = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 200, 40)]; sectionHeader = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 310, 40)];
} else { } else {
sectionHeader = [[UILabel alloc] initWithFrame:CGRectMake(25, 10, 200, 40)]; sectionHeader = [[UILabel alloc] initWithFrame:CGRectMake(25, 10, 295, 40)];
} }
sectionHeader.backgroundColor = [UIColor clearColor]; sectionHeader.backgroundColor = [UIColor clearColor];
sectionHeader.font = kAppTextFont; sectionHeader.font = kAppTextFont;
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
#import "CommunicationManager.h" #import "CommunicationManager.h"
#define OPTION_TIMER @"Timer auto-start" #define OPTION_TIMER NSLocalizedString(@"Timer auto-start", nil)
#define OPTION_POINTER @"Touch pointer" #define OPTION_POINTER NSLocalizedString(@"Touch pointer", nil)
#define KEY_TIMER @"TIMER_AUTOSTART_ENABLED" #define KEY_TIMER @"TIMER_AUTOSTART_ENABLED"
#define KEY_POINTER @"TOUCH_POINTER_ENABLED" #define KEY_POINTER @"TOUCH_POINTER_ENABLED"
......
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
[self.startButton setImage:[UIImage imageNamed:@"timer_pause_btn"] forState:UIControlStateNormal]; [self.startButton setImage:[UIImage imageNamed:@"timer_pause_btn"] forState:UIControlStateNormal];
break; break;
case TIMER_STATE_PAUSED: case TIMER_STATE_PAUSED:
[self.startButton setImage:[UIImage imageNamed:@"timer_resume_btn"] forState:UIControlStateNormal]; [self.startButton setImage:[UIImage imageNamed:@"timer_start_btn"] forState:UIControlStateNormal];
break; break;
case TIMER_STATE_CLEARED: case TIMER_STATE_CLEARED:
[self.startButton setImage:[UIImage imageNamed:@"timer_start_btn"] forState:UIControlStateNormal]; [self.startButton setImage:[UIImage imageNamed:@"timer_start_btn"] forState:UIControlStateNormal];
......
B/* Popover option */ B/* Popover option */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment