From 88221346a5c0c461e2bbc9ac22b0f13dbab2e82f Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 24 Mar 2011 15:47:40 +0100 Subject: [PATCH] Generate_lang_file : Added support of LSformElement_valueWithUnit's units configuration --- public_html/lang/generate_lang_file.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/public_html/lang/generate_lang_file.php b/public_html/lang/generate_lang_file.php index 0d02ab56..07e0a2d5 100755 --- a/public_html/lang/generate_lang_file.php +++ b/public_html/lang/generate_lang_file.php @@ -105,6 +105,13 @@ if (loadDir('../'.LS_OBJECTS_DIR)) { } } } + + // LSattr_html_valueWithUnit + if ($attr['html_type']=='valueWithUnit' && is_array($attr['html_options']['units'])) { + foreach($attr['html_options']['units'] as $pname) { + add($pname); + } + } // Check data if (is_array($attr['check_data'])) {