Added custum action feature
[ldapsaisie.git] / public_html / lang / generate_lang_file.php
index 0d02ab5..3b293c4 100755 (executable)
@@ -71,6 +71,15 @@ if (loadDir('../'.LS_OBJECTS_DIR)) {
         add($rel['emptyText']);
       }
     }
+    // Custom Actions
+    if (is_array($conf['customActions'])) {
+      foreach($conf['customActions'] as $act) {
+        add($act['label']);
+        add($act['question_format']);
+        add($act['onSuccessMsgFormat']);
+      }
+    }
+
     // LSform
     if (is_array($conf['LSform']['layout'])) {
       foreach($conf['LSform']['layout'] as $lay) {
@@ -105,6 +114,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'])) {