Hello!
I was trying to do this but still no success. So maybe you could help. My question is:
How to get menu language setting? I mean language selected by user in main menu.
I want my ContentLibrary application to know what language is selected and to display messages in that language.
I was trying to use _Z17OSGetMenuLanguagePh, _ZN11YAPP_System20YAPP_getMenuLanguageEv, but I am not an expert in digging inside exeDSP. Someone?
[programming] how to get menu language setting?
Re: [programming] how to get menu language setting?
Maybe you could try something like that:geo650 wrote:Hello!
I was trying to do this but still no success. So maybe you could help. My question is:
How to get menu language setting? I mean language selected by user in main menu.
I want my ContentLibrary application to know what language is selected and to display messages in that language.
I was trying to use _Z17OSGetMenuLanguagePh, _ZN11YAPP_System20YAPP_getMenuLanguageEv, but I am not an expert in digging inside exeDSP. Someone?
Code: Select all
extern int _ZN4TCTv14PreferLanguageEv(int *);
extern unsigned int g_AppTV;
int _check_lang_pref() {
int retv;
retv=_ZN4TCTv14PreferLanguageEv(&g_AppTV);
printf("TCTv::PreferLanguage(): return=0x%08X\n", retv);
return(retv);
}
0x0c for french,
0x0d for german
0x12 for english,
0x13 for polish,
etc.
i.e.: current menu language setting (more-or-less) directly from eeprom.
Re: [programming] how to get menu language setting?
Thank you very much! That's what I was looking for.sbav1 wrote:extern int _ZN4TCTv14PreferLanguageEv(int *);
If somebody would like to dive into this subject, here is a list of language codes I have dumped a few minutes ago:
Code: Select all
enum
{
MENULANG_BG = 0x06,
MENULANG_HR, MENULANG_CZ, MENULANG_DK, MENULANG_NL, MENULANG_FI, MENULANG_FR, MENULANG_DE, MENULANG_GR,
MENULANG_HU, MENULANG_IT, MENULANG_NO, MENULANG_EN, MENULANG_PL, MENULANG_PT, MENULANG_RO, MENULANG_RU,
MENULANG_RS, MENULANG_SI, MENULANG_ES, MENULANG_SE, MENULANG_TR,
MENULANG_EE = 0x24, MENULANG_LV, MENULANG_LT
};
Re: [programming] how to get menu language setting?
Hi,
seeing this thread, maybe there is a solution to my (slightly different) problem, which I already posted here:
http://forum.samygo.tv/viewtopic.php?f=4&t=922
Any help would be appreciated!
seeing this thread, maybe there is a solution to my (slightly different) problem, which I already posted here:
http://forum.samygo.tv/viewtopic.php?f=4&t=922
Any help would be appreciated!