From 3c7811e45a6e9e63673a7cf22c3a74372045e2c4 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 25 Oct 2003 21:02:16 +0000 Subject: [PATCH] fixed translation of the date-widget's label --- etemplate/inc/class.date_widget.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.date_widget.inc.php b/etemplate/inc/class.date_widget.inc.php index c6e13e8a46..5e17ec0814 100644 --- a/etemplate/inc/class.date_widget.inc.php +++ b/etemplate/inc/class.date_widget.inc.php @@ -120,7 +120,11 @@ } $value = $str; $cell['type'] = 'label'; - $cell['no_lang'] = True; + if (!$cell['no_lang']) + { + $cell['no_lang'] = True; + $cell['label'] = strlen($cell['label']) > 1 ? lang($cell['label']) : $cell['label']; + } return True; } $tpl = new etemplate;