Home » Community » Newbie corner » Translation files
Re: Translation files [message #54716 is a reply to message #54706] |
Thu, 03 September 2020 16:27   |
idkfa46
Messages: 155 Registered: December 2011
|
Experienced Member |
|
|
Hi guys,
I'm here again... I made a test but I have a few problems changing the language setting inside the tool
I set the .t file that include (encoded UTF8)
#ifdef _MSC_VER
#pragma setlocale("C")
#endif
T_("Support")
itIT("Supporto")
I try to change the language with the function below:
void STDctrl::Language(void)
{
MenuBar bar;
bar.MaxIconSize(Size(80,35)).LeftGap(85);
bar.Add("Italiano", Images::Flag, THISBACK1(SetLang, 10));
bar.Add("English", Images::Flag, THISBACK1(SetLang, 20));
bar.Execute();
}
void STDctrl::SetLang(int i)
{
switch(i) {
case 10:
SetLanguage(LNGC_('I','T','I','T', CHARSET_UNICODE));
Refresh();
break;
case 20:
SetLanguage(LNGC_('E','N','U','S', CHARSET_UNICODE));
Refresh();
break;
default:
SetLanguage(LNGC_('E','N','U','S', CHARSET_UNICODE));
Refresh();
break;
}
}
and this:
GUI_APP_MAIN
{
SetLanguage( GetSystemLNG());
}
When I open the software the "SetLanguage( GetSystemLNG())" function works and the tool display the italian translation "supporto" but if I try to call the function THISBACK1(SetLang, 10 or 20) nothing happen. Maybe I have to refresh something?
One more question, can I turn the default setting to italian and English as a second language with something like this?รน
T_("Supporto")
enUS("Support")
Thanks,
Matteo
|
|
|
 |
|
Translation files
By: idkfa46 on Tue, 01 September 2020 17:44
|
 |
|
Re: Translation files
By: mirek on Tue, 01 September 2020 19:13
|
 |
|
Re: Translation files
By: idkfa46 on Wed, 02 September 2020 11:03
|
 |
|
Re: Translation files
By: idkfa46 on Thu, 03 September 2020 16:27
|
 |
|
Re: Translation files
By: mirek on Thu, 03 September 2020 16:55
|
 |
|
Re: Translation files
By: idkfa46 on Thu, 03 September 2020 17:37
|
 |
|
Re: Translation files
By: mirek on Thu, 03 September 2020 18:50
|
 |
|
Re: Translation files
By: idkfa46 on Wed, 23 September 2020 11:22
|
 |
|
Re: Translation files
By: mirek on Wed, 23 September 2020 11:46
|
 |
|
Re: Translation files
By: idkfa46 on Wed, 23 September 2020 14:18
|
 |
|
Re: Translation files
By: mirek on Wed, 23 September 2020 16:22
|
 |
|
Re: Translation files
By: Klugier on Wed, 23 September 2020 16:38
|
 |
|
Re: Translation files
By: mirek on Wed, 23 September 2020 17:11
|
 |
|
Re: Translation files
By: Klugier on Sun, 27 September 2020 00:15
|
 |
|
Re: Translation files
By: idkfa46 on Wed, 23 September 2020 14:25
|
 |
|
Re: Translation files
By: mirek on Wed, 23 September 2020 16:08
|
 |
|
Re: Translation files
By: idkfa46 on Wed, 23 September 2020 17:32
|
 |
|
Re: Translation files
By: idkfa46 on Wed, 30 September 2020 12:31
|
 |
|
Re: Translation files
By: idkfa46 on Fri, 02 October 2020 08:51
|
 |
|
Re: Translation files
By: mirek on Fri, 02 October 2020 11:24
|
 |
|
Re: Translation files
By: idkfa46 on Fri, 02 October 2020 12:04
|
 |
|
Re: Translation files
By: mirek on Sat, 03 October 2020 04:38
|
 |
|
Re: Translation files
By: idkfa46 on Wed, 07 October 2020 13:35
|
Goto Forum:
Current Time: Sun Aug 24 14:30:19 CEST 2025
Total time taken to generate the page: 0.08885 seconds
|