diff options
| author | louis <louis.braun@gmx.de> | 2014-11-22 12:19:13 +0100 |
|---|---|---|
| committer | louis <louis.braun@gmx.de> | 2014-11-22 12:19:13 +0100 |
| commit | a3d636ce9287b3206a1818426e02bca07ac42549 (patch) | |
| tree | 6558719317612517c1e0aaa65681fb9a5b46333b /libtemplate | |
| parent | 77368ebbd181ceb3b25545d6331f30d72900fa70 (diff) | |
| download | vdr-plugin-skindesigner-a3d636ce9287b3206a1818426e02bca07ac42549.tar.gz vdr-plugin-skindesigner-a3d636ce9287b3206a1818426e02bca07ac42549.tar.bz2 | |
using VDRs OSD Language instead of system language
Diffstat (limited to 'libtemplate')
| -rw-r--r-- | libtemplate/globals.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/libtemplate/globals.c b/libtemplate/globals.c index 9e9ce5f..af83da2 100644 --- a/libtemplate/globals.c +++ b/libtemplate/globals.c @@ -6,18 +6,7 @@ cGlobals::cGlobals(void) { fonts.insert(pair<string, string>("vdrOsd", Setup.FontOsd)); fonts.insert(pair<string, string>("vdrFix", Setup.FontFix)); fonts.insert(pair<string, string>("vdrSml", Setup.FontSml)); - - string loc = setlocale(LC_NAME, NULL); - size_t index = loc.find_first_of("."); - string langISO = ""; - if (index > 0) { - langISO = loc.substr(0, index); - } - if (langISO.size() == 5) { - language = langISO.c_str(); - } else { - language = "en_EN"; - } + language = Setup.OSDLanguage; dsyslog("skindesigner: using language %s", language.c_str()); } |
