equal
deleted
inserted
replaced
28 } |
28 } |
29 |
29 |
30 #pragma mark - |
30 #pragma mark - |
31 #pragma mark View Lifecycle |
31 #pragma mark View Lifecycle |
32 -(void) viewDidLoad { |
32 -(void) viewDidLoad { |
33 self.navigationItem.title = @"Edit game options"; |
33 self.navigationItem.title = NSLocalizedString(@"Edit game options", nil); |
34 [super viewDidLoad]; |
34 [super viewDidLoad]; |
35 } |
35 } |
36 |
36 |
37 -(void) viewWillAppear:(BOOL)animated { |
37 -(void) viewWillAppear:(BOOL)animated { |
38 [self.tableView setContentOffset:CGPointMake(0,0) animated:NO]; |
38 [self.tableView setContentOffset:CGPointMake(0,0) animated:NO]; |
177 [theSwitch release]; |
177 [theSwitch release]; |
178 } |
178 } |
179 |
179 |
180 switchContent = (UISwitch *)cell.accessoryView; |
180 switchContent = (UISwitch *)cell.accessoryView; |
181 if (row == 0) { |
181 if (row == 0) { |
182 cell.textLabel.text = NSLocalizedString(@"Sound Effects", @"from the settings table"); |
182 cell.textLabel.text = NSLocalizedString(@"Sound", @"from the settings table"); |
183 switchContent.on = [[settings objectForKey:@"sound"] boolValue]; |
183 switchContent.on = [[settings objectForKey:@"sound"] boolValue]; |
184 switchContent.tag = 10; |
184 switchContent.tag = 10; |
185 } else { |
185 } else { |
186 cell.textLabel.text = NSLocalizedString(@"Music", @"from the settings table"); |
186 cell.textLabel.text = NSLocalizedString(@"Music", @"from the settings table"); |
187 switchContent.on = [[settings objectForKey:@"music"] boolValue]; |
187 switchContent.on = [[settings objectForKey:@"music"] boolValue]; |