Skip to content

Commit

Permalink
Merge pull request #2238 from stefansaraev/setguilanguage
Browse files Browse the repository at this point in the history
add builtin to set GUI Language
  • Loading branch information
Arne Morten Kvarving committed Jun 8, 2013
2 parents 32f9d10 + 2a072d1 commit 9d9c2ed
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions xbmc/interfaces/Builtins.cpp
Expand Up @@ -127,6 +127,7 @@ const BUILT_IN commands[] = {
{ "Minimize", false, "Minimize XBMC" },
{ "Reset", false, "Reset the system (same as reboot)" },
{ "Mastermode", false, "Control master mode" },
{ "SetGUILanguage", true, "Set GUI Language" },
{ "ActivateWindow", true, "Activate the specified window" },
{ "ActivateWindowAndFocus", true, "Activate the specified window and sets focus to the specified id" },
{ "ReplaceWindowAndFocus", true, "Replaces the current window with the new one and sets focus to the specified id" },
Expand Down Expand Up @@ -326,6 +327,13 @@ int CBuiltins::Execute(const CStdString& execString)
CGUIMessage msg(GUI_MSG_NOTIFY_ALL, 0, 0, GUI_MSG_UPDATE);
g_windowManager.SendMessage(msg);
}
else if (execute.Equals("setguilanguage"))
{
if (params.size())
{
CApplicationMessenger::Get().SetGUILanguage(params[0]);
}
}
else if (execute.Equals("takescreenshot"))
{
CScreenShot::TakeScreenshot();
Expand Down

0 comments on commit 9d9c2ed

Please sign in to comment.