project_files/HedgewarsMobile/Classes/SingleWeaponViewController.m
changeset 6657 e1125559359f
parent 6209 074ab6ebcb3e
child 6670 d57fa21781ea
--- a/project_files/HedgewarsMobile/Classes/SingleWeaponViewController.m	Thu Feb 09 17:28:05 2012 +0100
+++ b/project_files/HedgewarsMobile/Classes/SingleWeaponViewController.m	Thu Feb 09 18:09:03 2012 +0100
@@ -34,7 +34,7 @@
 -(void) viewDidLoad {
     [super viewDidLoad];
     
-    NSString *trFilePath = [NSString stringWithFormat:@"%@/en.txt",LOCALE_DIRECTORY()];
+    NSString *trFilePath = [NSString stringWithFormat:@"%@/%@.txt",LOCALE_DIRECTORY(),[[NSLocale preferredLanguages] objectAtIndex:0]];
     // fill the data structure that we are going to read
     LoadLocaleWrapper([trFilePath UTF8String]);