Line 21:
Line 21:
Could you maybe share the language detection code?
Could you maybe share the language detection code?
Would be really nice, as I didn't found any examples in the devkit/libogc or the internet. xander150 14:29, 10. April 2009 GMT+1
Would be really nice, as I didn't found any examples in the devkit/libogc or the internet. xander150 14:29, 10. April 2009 GMT+1
+
+
You just need to include ogcsys.h, then execute this function:
+
+
s32 lang = CONF_GetLanguage();
+
+
Then you can check the language comparing "lang" with the following constants
+
+
0 == CONF_LANG_JAPANESE
+
1 == CONF_LANG_ENGLISH
+
2 == CONF_LANG_GERMAN
+
3 == CONF_LANG_FRENCH
+
4 == CONF_LANG_SPANISH
+
5 == CONF_LANG_ITALIAN
+
6 == CONF_LANG_DUTCH
+
7 == CONF_LANG_SIMP_CHINESE
+
8 == CONF_LANG_TRAD_CHINESE
+
9 == CONF_LANG_KOREAN
+
+
hope that this helped :) --[[User:Grillo|Grillo]] 18:41, 25 April 2009 (UTC)