summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
authorAndreas Brugger <brougs78@gmx.net>2006-12-03 17:45:17 +0100
committerThomas Günther <tom@toms-cafe.de>2009-06-03 04:13:49 +0200
commitac64ce03ec6b5766691ff2da3af6f51ed800792a (patch)
tree11acc2de3a055ff546a1bfa5e5cdad20ab1715c7 /common.c
parent165c14206aa2e06c33ac887f9b9d0f816573a5fe (diff)
downloadvdr-plugin-text2skin-ac64ce03ec6b5766691ff2da3af6f51ed800792a.tar.gz
vdr-plugin-text2skin-ac64ce03ec6b5766691ff2da3af6f51ed800792a.tar.bz2
2006-12-03: Version 1.1-cvs_ext-0.10 (vdr-text2skin-1.1-cvs_ext-0.10.diff)brougs78-extensions
- set EditableWidth. This is important for plugins like 'rotor' or 'extrecmenu' - now setting the locale setting LC_TIME according to the language-selection in VDR
Diffstat (limited to 'common.c')
-rw-r--r--common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common.c b/common.c
index d5bb0b4..0bfb1d4 100644
--- a/common.c
+++ b/common.c
@@ -4,6 +4,7 @@
#include "common.h"
#include <sstream>
+#include <locale.h>
#include <vdr/plugin.h>
#include <vdr/device.h>
#include <sys/ioctl.h>
@@ -409,6 +410,7 @@ cxType TimeType(time_t Time, const std::string &Format)
if (Time > 0) {
if (Format.length() > 0) {
+ setlocale(LC_TIME, tr("en_US"));
strftime(result, sizeof(result), Format.c_str(), tm);
cxType r = result;