- Fix for localization of detail labels at AboutViewController ios-rus-localization
authorantonc27 <antonc27@mail.ru>
Sat, 15 Aug 2015 04:20:33 +0200
branchios-rus-localization
changeset 11128 344d523ab9bb
parent 11127 569bf3132ac4
child 11129 35739e4451c1
- Fix for localization of detail labels at AboutViewController
project_files/HedgewarsMobile/Classes/AboutViewController.m
--- a/project_files/HedgewarsMobile/Classes/AboutViewController.m	Sat Aug 15 02:41:35 2015 +0200
+++ b/project_files/HedgewarsMobile/Classes/AboutViewController.m	Sat Aug 15 04:20:33 2015 +0200
@@ -83,7 +83,8 @@
     cell.textLabel.text = [[self.people objectAtIndex:self.segmentedControl.selectedSegmentIndex] objectAtIndex:[indexPath row]];
     cell.textLabel.adjustsFontSizeToFitWidth = YES;
     cell.textLabel.minimumFontSize = 8;
-    cell.detailTextLabel.text = [[self.people objectAtIndex:(self.segmentedControl.selectedSegmentIndex + 5)] objectAtIndex:[indexPath row]];
+    NSString *detailsKey = [[self.people objectAtIndex:(self.segmentedControl.selectedSegmentIndex + 5)] objectAtIndex:[indexPath row]];
+    cell.detailTextLabel.text = NSLocalizedStringFromTable(detailsKey, @"About", nil);
 
     return cell;
 }