Hello,
I need to add setLanguage function avaible in python script.
I'we do this :
--- ModuleXbmc.h_old 2013-01-07 16:07:15.783472110 +0100
+++ ModuleXbmc.h 2013-01-07 15:44:11.257405126 +0100
@@ -158,6 +158,14 @@
String getLanguage();
/**
+ * setLanguage(strLanguage) -- Change the active Language
+ *
+ * example:
+ * - xbmc.setLanguage('French')
+ */
+ bool setLanguage(const char* strLanguage);
+
+ /**
* getIPAddress() -- Returns the current ip address as a string.
*
* example:
and
--- ModuleXbmc.cpp_old 2013-01-07 16:06:38.279470296 +0100
+++ ModuleXbmc.cpp 2013-01-07 16:03:40.089461675 +0100
@@ -186,6 +186,16 @@
return g_guiSettings.GetString("locale.language");
}
+ bool setLanguage(const char* strLanguage)
+ {
+ TRACE;
+ CLog::Log(LOGDEBUG, "%s, Setting Language to %s", __FUNCTION__, strLanguage);
+ bool result;
+ result = g_guiSettings.SetLanguage(strLanguage);
+ CLog::Log(LOGDEBUG, "%s, Language Set Successfull to %s", __FUNCTION__, strLanguage);
+ return result;
+ }
+
String getIPAddress()
{
TRACE;
and I use this in script : xbmc.setLanguage(new_lang) # xbmc.setLanguage('French')
My XBMC crash with this log :
http://nopaste.info/700cd4d79a.html
Maybe something is wrong in the GUISettings::SetLanguage() function ?
Thanks so much for your help !
I need to add setLanguage function avaible in python script.
I'we do this :
--- ModuleXbmc.h_old 2013-01-07 16:07:15.783472110 +0100
+++ ModuleXbmc.h 2013-01-07 15:44:11.257405126 +0100
@@ -158,6 +158,14 @@
String getLanguage();
/**
+ * setLanguage(strLanguage) -- Change the active Language
+ *
+ * example:
+ * - xbmc.setLanguage('French')
+ */
+ bool setLanguage(const char* strLanguage);
+
+ /**
* getIPAddress() -- Returns the current ip address as a string.
*
* example:
and
--- ModuleXbmc.cpp_old 2013-01-07 16:06:38.279470296 +0100
+++ ModuleXbmc.cpp 2013-01-07 16:03:40.089461675 +0100
@@ -186,6 +186,16 @@
return g_guiSettings.GetString("locale.language");
}
+ bool setLanguage(const char* strLanguage)
+ {
+ TRACE;
+ CLog::Log(LOGDEBUG, "%s, Setting Language to %s", __FUNCTION__, strLanguage);
+ bool result;
+ result = g_guiSettings.SetLanguage(strLanguage);
+ CLog::Log(LOGDEBUG, "%s, Language Set Successfull to %s", __FUNCTION__, strLanguage);
+ return result;
+ }
+
String getIPAddress()
{
TRACE;
and I use this in script : xbmc.setLanguage(new_lang) # xbmc.setLanguage('French')
My XBMC crash with this log :
http://nopaste.info/700cd4d79a.html
Maybe something is wrong in the GUISettings::SetLanguage() function ?
Thanks so much for your help !