project_files/HedgewarsMobile/Classes/GeneralSettingsViewController.m
branchqmlfrontend
changeset 11408 b894922d58cc
parent 11237 e21027aa9068
child 12877 00215a7ec5f5
equal deleted inserted replaced
11076:fcbdee9cdd74 11408:b894922d58cc
    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];