Generate_lang_file : Added support of LSformElement_valueWithUnit's units configuration
authorBenjamin Renard <brenard@easter-eggs.com>
Thu, 24 Mar 2011 14:47:40 +0000 (15:47 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Thu, 24 Mar 2011 14:47:40 +0000 (15:47 +0100)
public_html/lang/generate_lang_file.php

index 0d02ab5..07e0a2d 100755 (executable)
@@ -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'])) {