/*case "B_ENGLISH":
if(comName=="activate" || comName=="click")
{
// KK -->
LanguageSetLanguage("English");
SetInterfaceLanguage(ILANG_ENG);
SetKeyboardLayout(ILANG_ENG);
// <-- KK
AdditionalHide();
SetSelectable("B_ENGLISH",false);
if(GetSelectable("B_FRENCH")) SetCurrentNode("B_FRENCH");
else
{
if(GetSelectable("B_GERMAN")) SetCurrentNode("B_GERMAN");
else
{
if(GetSelectable("B_SPANISH")) SetCurrentNode("B_SPANISH");
else
{
if(GetSelectable("B_POLISH")) SetCurrentNode("B_POLISH");
else
{
if(GetSelectable("B_RUSSIAN")) SetCurrentNode("B_RUSSIAN");
else SetCurrentNode("LANGUAGETITLE");
}
}
}
}
InitLocalization();
SetFormatedText("REINITLANGUAGE",XI_ConvertString("Reinit_Language"));//MAXIMUS
SetNewLanguageView();//MAXIMUS
}
break;
case "B_RUSSIAN":
if(comName=="activate" || comName=="click")
{
LanguageSetLanguage("Russian");
SetInterfaceLanguage(ILANG_RUS);
SetKeyboardLayout(ILANG_RUS);
AdditionalHide();
SetSelectable("B_RUSSIAN",false);
if(GetSelectable("B_FRENCH")) SetCurrentNode("B_FRENCH");
else
{
if(GetSelectable("B_GERMAN")) SetCurrentNode("B_GERMAN");
else
{
if(GetSelectable("B_SPANISH")) SetCurrentNode("B_SPANISH");
else
{
if(GetSelectable("B_POLISH")) SetCurrentNode("B_POLISH"); // KK
else
{
if(GetSelectable("B_ENGLISH")) SetCurrentNode("B_ENGLISH"); // KK
else SetCurrentNode("LANGUAGETITLE");
}
}
}
}
InitLocalization();
SetFormatedText("REINITLANGUAGE",XI_ConvertString("Reinit_Language"));//MAXIMUS
SetNewLanguageView();//MAXIMUS
}
break;
case "B_FRENCH":
if(comName=="activate" || comName=="click")
{
LanguageSetLanguage("French");
SetInterfaceLanguage(ILANG_FRA);
SetKeyboardLayout(ILANG_FRA);
AdditionalHide();
SetSelectable("B_FRENCH",false);
if(GetSelectable("B_GERMAN")) SetCurrentNode("B_GERMAN");
else
{
if(GetSelectable("B_SPANISH")) SetCurrentNode("B_SPANISH");
else
{
if(GetSelectable("B_POLISH")) SetCurrentNode("B_POLISH"); // KK
else
{
if(GetSelectable("B_ENGLISH")) SetCurrentNode("B_ENGLISH"); // KK
else
{
if(GetSelectable("B_RUSSIAN")) SetCurrentNode("B_RUSSIAN");
else SetCurrentNode("LANGUAGETITLE");
}
}
}
}
InitLocalization();
SetFormatedText("REINITLANGUAGE",XI_ConvertString("Reinit_Language"));//MAXIMUS
SetNewLanguageView();//MAXIMUS
}
break;
case "B_GERMAN":
if(comName=="activate" || comName=="click")
{
LanguageSetLanguage("German");
SetInterfaceLanguage(ILANG_GER);
SetKeyboardLayout(ILANG_GER);
AdditionalHide();
SetSelectable("B_GERMAN",false);
if(GetSelectable("B_SPANISH")) SetCurrentNode("B_SPANISH");
else
{
if(GetSelectable("B_POLISH")) SetCurrentNode("B_POLISH"); // KK
else
{
if(GetSelectable("B_ENGLISH")) SetCurrentNode("B_ENGLISH"); // KK
else
{
if(GetSelectable("B_RUSSIAN")) SetCurrentNode("B_RUSSIAN");
else
{
if(GetSelectable("B_FRENCH")) SetCurrentNode("B_FRENCH");
else SetCurrentNode("LANGUAGETITLE");
}
}
}
}
InitLocalization();
SetFormatedText("REINITLANGUAGE",XI_ConvertString("Reinit_Language"));//MAXIMUS
SetNewLanguageView();//MAXIMUS
}
break;
case "B_SPANISH":
if(comName=="activate" || comName=="click")
{
LanguageSetLanguage("Spanish"); // KK
SetInterfaceLanguage(ILANG_SPA);
SetKeyboardLayout(ILANG_SPA);
AdditionalHide();
SetSelectable("B_SPANISH",false);
if(GetSelectable("B_POLISH")) SetCurrentNode("B_POLISH"); // KK
else {
if(GetSelectable("B_ENGLISH")) SetCurrentNode("B_ENGLISH"); // KK
else
{
if(GetSelectable("B_RUSSIAN")) SetCurrentNode("B_RUSSIAN");
else
{
if(GetSelectable("B_FRENCH")) SetCurrentNode("B_FRENCH");
else
{
if(GetSelectable("B_GERMAN")) SetCurrentNode("B_GERMAN");
else SetCurrentNode("LANGUAGETITLE");
}
}
}
}
InitLocalization();
SetFormatedText("REINITLANGUAGE",XI_ConvertString("Reinit_Language"));//MAXIMUS
SetNewLanguageView();//MAXIMUS
}
break;
// KK -->
case "B_POLISH":
if(comName=="activate" || comName=="click")
{
LanguageSetLanguage("Polish");
SetInterfaceLanguage(ILANG_POL);
SetKeyboardLayout(ILANG_POL);
AdditionalHide();
SetSelectable("B_POLISH",false);
if(GetSelectable("B_SPANISH")) SetCurrentNode("B_SPANISH");
else {
if(GetSelectable("B_ENGLISH")) SetCurrentNode("B_ENGLISH");
else
{
if(GetSelectable("B_RUSSIAN")) SetCurrentNode("B_RUSSIAN");
else
{
if(GetSelectable("B_FRENCH")) SetCurrentNode("B_FRENCH");
else
{
if(GetSelectable("B_GERMAN")) SetCurrentNode("B_GERMAN");
else SetCurrentNode("LANGUAGETITLE");
}
}
}
}
InitLocalization();
SetFormatedText("REINITLANGUAGE",XI_ConvertString("Reinit_Language"));//MAXIMUS
SetNewLanguageView();//MAXIMUS
}
break;*/
case "B_SELECTLANGUAGE":
LanguageSetLanguage(GetInterfaceLanguageName(iSelectedInterfaceLanguage));
SetInterfaceLanguage(iSelectedInterfaceLanguage);
SetKeyboardLayout(iSelectedKeyboardLayout);
AdditionalShow();
break;
case "B_CANCELLANGUAGE":
iSelectedInterfaceLanguage = GetInterfaceLanguage();
iSelectedKeyboardLayout = GetKeyboardLayout();
AdditionalShow();
break;
// <-- KK