project_files/HedgewarsMobile/Classes/SingleWeaponViewController.m
branchios-revival
changeset 11219 c51ecb9bcf05
parent 11200 08c6ccc28007
child 11790 ac93cfc17365
--- a/project_files/HedgewarsMobile/Classes/SingleWeaponViewController.m	Tue Oct 20 00:51:45 2015 +0200
+++ b/project_files/HedgewarsMobile/Classes/SingleWeaponViewController.m	Tue Oct 20 23:56:31 2015 +0200
@@ -37,9 +37,7 @@
     [super viewDidLoad];
 
     self.trPath = [NSString stringWithFormat:@"%@", LOCALE_DIRECTORY()];
-    NSString *firstLanguage = [[NSLocale preferredLanguages] firstObject];
-    NSString *language = [[firstLanguage componentsSeparatedByString:@"-"] firstObject];
-    self.trFileName = [NSString stringWithFormat:@"%@.txt", language];
+    self.trFileName = [NSString stringWithFormat:@"%@.txt", [HWUtils languageID]];
     // fill the data structure that we are going to read
     LoadLocaleWrapper([self.trPath UTF8String], [self.trFileName UTF8String]);