aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins
diff options
context:
space:
mode:
authorFraxinas <andreas.frisch@multimedia-labs.de>2009-03-10 11:26:55 +0100
committerFraxinas <andreas.frisch@multimedia-labs.de>2009-03-10 11:26:55 +0100
commite926fbc3973297be694469ce932cb40cea5356c7 (patch)
treed7047e4410d7217027a2d9160752a7da84141e9b /lib/python/Plugins
parente3673ba34436cd5dd868277c5ea4c4e0f22df575 (diff)
downloadenigma2-e926fbc3973297be694469ce932cb40cea5356c7.tar.gz
enigma2-e926fbc3973297be694469ce932cb40cea5356c7.zip
try to use current GUI language as initial dvd menu language
Diffstat (limited to 'lib/python/Plugins')
-rw-r--r--lib/python/Plugins/Extensions/DVDPlayer/src/servicedvd.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/python/Plugins/Extensions/DVDPlayer/src/servicedvd.cpp b/lib/python/Plugins/Extensions/DVDPlayer/src/servicedvd.cpp
index c2590af5..e35f2807 100644
--- a/lib/python/Plugins/Extensions/DVDPlayer/src/servicedvd.cpp
+++ b/lib/python/Plugins/Extensions/DVDPlayer/src/servicedvd.cpp
@@ -103,7 +103,10 @@ eServiceDVD::eServiceDVD(const char *filename):
// create handle
ddvd_set_dvd_path(m_ddvdconfig, filename);
ddvd_set_ac3thru(m_ddvdconfig, 0);
- ddvd_set_language(m_ddvdconfig, "de");
+
+ std::string ddvd_language;
+ if (!ePythonConfigQuery::getConfigValue("config.osd.language", ddvd_language))
+ ddvd_set_language(m_ddvdconfig, (ddvd_language.substr(0,2)).c_str());
int fd = open("/proc/stb/video/aspect", O_RDONLY);
if (fd > -1)