From a3d636ce9287b3206a1818426e02bca07ac42549 Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 22 Nov 2014 12:19:13 +0100 Subject: using VDRs OSD Language instead of system language --- libtemplate/globals.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'libtemplate') 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("vdrOsd", Setup.FontOsd)); fonts.insert(pair("vdrFix", Setup.FontFix)); fonts.insert(pair("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()); } -- cgit v1.2.3