- Fix for localization of game settings detailLabel in SingleSchemeViewController ios-revival
authorantonc27 <antonc27@mail.ru>
Tue, 03 Nov 2015 21:43:05 +0100
branchios-revival
changeset 11279 c0d6f6ffa798
parent 11274 9e0fe32aff59
child 11281 9c021eadd374
- Fix for localization of game settings detailLabel in SingleSchemeViewController
project_files/HedgewarsMobile/Classes/SingleSchemeViewController.m
project_files/HedgewarsMobile/Locale/ru.lproj/Localizable.strings
--- a/project_files/HedgewarsMobile/Classes/SingleSchemeViewController.m	Tue Nov 03 04:49:50 2015 +0100
+++ b/project_files/HedgewarsMobile/Classes/SingleSchemeViewController.m	Tue Nov 03 21:43:05 2015 +0100
@@ -280,10 +280,10 @@
     UITableViewCell *cell = [self.tableView cellForRowAtIndexPath:indexPath];
     // grab the associated labels
     UILabel *detailLabel = (UILabel *)cell.detailTextLabel;
-    UILabel *cellLabel = (UILabel *)[cell.contentView viewWithTag:LABEL_TAG];
     // modify it
 
-    checkValueString(detailLabel.text,cellLabel.text,theSlider);
+    NSString *basicSettingTitleKey = [[self.basicSettingList objectAtIndex:[indexPath row]] objectForKey:@"title"];
+    checkValueString(detailLabel.text,basicSettingTitleKey,theSlider);
 
     // save changes in the main array
     NSMutableArray *array = [self.schemeDictionary objectForKey:@"basic"];
Binary file project_files/HedgewarsMobile/Locale/ru.lproj/Localizable.strings has changed