- Localization for SingleSchemeViewController fixed
- Typos in Russian Scheme.strings
--- a/project_files/HedgewarsMobile/Classes/SingleSchemeViewController.m Sat Aug 15 16:26:00 2015 +0200
+++ b/project_files/HedgewarsMobile/Classes/SingleSchemeViewController.m Sat Aug 15 17:08:50 2015 +0200
@@ -190,7 +190,8 @@
[img release];
UILabel *cellLabel = (UILabel *)[cell.contentView viewWithTag:LABEL_TAG];
- cellLabel.text = [[self.basicSettingList objectAtIndex:row] objectForKey:@"title"];
+ NSString *basicSettingTitleKey = [[self.basicSettingList objectAtIndex:row] objectForKey:@"title"];
+ cellLabel.text = NSLocalizedStringFromTable(basicSettingTitleKey, @"Scheme", nil);
cellLabel.adjustsFontSizeToFitWidth = YES;
// can't use the viewWithTag method because row is dynamic
@@ -221,7 +222,7 @@
cellSlider.frame = CGRectMake(hOffset, vOffset, sliderLength, 23);
NSString *prestring = nil;
- checkValueString(prestring,cellLabel.text,cellSlider);
+ checkValueString(prestring,basicSettingTitleKey,cellSlider);
// forced to use this weird format otherwise the label disappears when size of the text is bigger than the original
while ([prestring length] <= 4)
@@ -251,8 +252,10 @@
[image release];
cell.imageView.layer.cornerRadius = 6.0f;
cell.imageView.layer.masksToBounds = YES;
- cell.textLabel.text = [[self.gameModifierArray objectAtIndex:row] objectForKey:@"title"];
- cell.detailTextLabel.text = [[self.gameModifierArray objectAtIndex:row] objectForKey:@"description"];
+ NSString *gameModTitleKey = [[self.gameModifierArray objectAtIndex:row] objectForKey:@"title"];
+ cell.textLabel.text = NSLocalizedStringFromTable(gameModTitleKey, @"Scheme", nil);
+ NSString *gameModDescKey = [[self.gameModifierArray objectAtIndex:row] objectForKey:@"description"];
+ cell.detailTextLabel.text = NSLocalizedStringFromTable(gameModDescKey, @"Scheme", nil);
cell.detailTextLabel.adjustsFontSizeToFitWidth = YES;
cell.detailTextLabel.minimumFontSize = 6;
Binary file project_files/HedgewarsMobile/Locale/ru.lproj/Scheme.strings has changed