diff options
Diffstat (limited to 'modules-available/usblockoff/page.inc.php')
-rw-r--r-- | modules-available/usblockoff/page.inc.php | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/modules-available/usblockoff/page.inc.php b/modules-available/usblockoff/page.inc.php index e2ebf11c..b667e1c8 100644 --- a/modules-available/usblockoff/page.inc.php +++ b/modules-available/usblockoff/page.inc.php @@ -180,7 +180,7 @@ class Page_usblockoff extends Page 'active' => false, 'value' => 'reject', )); - $setting['helptext'] = array('helptext' => Dictionary::translateFile('rule', 'abr_helptext')); + $setting['helptext'] = array('helptext' => Dictionary::translateFile('rule', 'target_helptext')); $setting['property'] = 'action'; $setting['settingHtml'] = Render::parse('server-prop-dropdown', (array)$setting); $settings[] = $setting; @@ -219,10 +219,10 @@ class Page_usblockoff extends Page while ($attribute = $query->fetch(PDO::FETCH_ASSOC)) { $attributesHtml = ''; $attr = array( - 'title' => $attribute['prop'], // TODO: Dictionary::translateFile(' ... + 'title' => Dictionary::translateFile('rule', $attribute['prop']), 'property' => $attribute['prop'], 'currentvalue' => $attribute['value'], - 'helptext' => "TODO", // TODO Dict bla bla.. + 'helptext' => Dictionary::translateFile('rule', $attribute['prop'] . "_helptext"), ); if ($attribute['prop'] === 'target') { @@ -251,10 +251,12 @@ class Page_usblockoff extends Page $pid = $id[1]; // Vendor ID - $attr['title'] = "VID"; + $attr['title'] = Dictionary::translateFile('rule', 'vid'); $attr['select_list'] = array(); $attr['toTextButton'] = true; $attr['property'] = 'vid'; + $attr['helptext'] = Dictionary::translateFile('rule', "vid_helptext"); + $attr['select_list'][] = array( 'option' => $idList[$vid]['name'], @@ -268,9 +270,11 @@ class Page_usblockoff extends Page ); // Product ID - $attr['title'] = "PID"; + $attr['title'] = Dictionary::translateFile('rule', 'pid'); $attr['select_list'] = array(); $attr['property'] = 'pid'; + $attr['helptext'] = Dictionary::translateFile('rule', "pid_helptext"); + $attr['select_list'][] = array( 'option' => $idList[$vid]['products'][$pid], @@ -379,7 +383,7 @@ class Page_usblockoff extends Page 'active' => ($target == 'reject' ? true : false), 'value' => 'reject', )); - $setting['helptext'] = array('helptext' => Dictionary::translateFile('rule', 'abr_helptext')); + $setting['helptext'] = array('helptext' => Dictionary::translateFile('rule', 'target_helptext')); $setting['property'] = 'action'; $setting['settingHtml'] = Render::parse('server-prop-dropdown', (array)$setting); $settings[] = $setting; |