29 #import <stdio.h> |
29 #import <stdio.h> |
30 #import <stdlib.h> |
30 #import <stdlib.h> |
31 #import <string.h> |
31 #import <string.h> |
32 |
32 |
33 #import "resource.h" |
33 #import "resource.h" |
|
34 #import "../common/properties.h" |
34 |
35 |
35 |
36 |
36 |
37 |
37 void ui_load_lang(char *locale) { |
38 void ui_load_lang_def(char *locale, char *default_locale) { |
38 NSString *localeString = nil; |
39 NSString *localeString = nil; |
39 if(locale) { |
40 if(locale) { |
40 localeString = [[NSString alloc]initWithUTF8String:locale]; |
41 localeString = [[NSString alloc]initWithUTF8String:locale]; |
41 } else { |
42 } else { |
42 localeString = @"en_EN"; |
43 localeString = [[NSString alloc]initWithUTF8String:default_locale]; |
43 } |
44 } |
44 |
45 |
45 NSString *path = [[NSBundle mainBundle] pathForResource:localeString ofType:@"properties" inDirectory:@"locales"]; |
46 NSString *path = [[NSBundle mainBundle] pathForResource:localeString ofType:@"properties" inDirectory:@"locales"]; |
46 |
47 |
47 const char *p = [path UTF8String]; |
48 const char *p = [path UTF8String]; |
48 uic_load_language_file(p); |
49 uic_load_language_file((char*)p); |
49 } |
50 } |
|
51 |
|
52 void ui_locales_dir(char *path) { |
|
53 // empty |
|
54 } |
|
55 |
|
56 void ui_pixmaps_dir(char *path) { |
|
57 // empty |
|
58 } |