From 04601a486e70b46e50fb7f2829c5739fa7609f95 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 21 May 2010 07:21:30 +0000 Subject: [PATCH] "understand run_lang for settings, to NOT return already translated phrases with replaced placeholders" --- etemplate/inc/class.solangfile.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.solangfile.inc.php b/etemplate/inc/class.solangfile.inc.php index 6cde565694..c064f95e72 100644 --- a/etemplate/inc/class.solangfile.inc.php +++ b/etemplate/inc/class.solangfile.inc.php @@ -172,7 +172,11 @@ class solangfile { if (isset($data[$key]) && !empty($data[$key])) { - $this->plist[$data[$key]] = $app; + // run_lang: NULL, true --> help + label, false --> help only, -1 => none + if (!isset($data['run_lang']) || !$data['run_lang'] && $key == 'help' || $data['run_lang'] != -1) + { + $this->plist[$data[$key]] = $app; + } } } }