diff options
author | bruno <bruno.stein@bluepex.com> | 2016-01-21 14:56:10 -0200 |
---|---|---|
committer | bruno <bruno.stein@bluepex.com> | 2016-01-21 14:56:10 -0200 |
commit | ff30e319d4239b4b6df55d2663f7c0f5efded5e1 (patch) | |
tree | 51a202b804c109c61b9560b39d68bf8facf1c944 /src/usr/local/www/diag_pftop.php | |
parent | bab790f20be61f0390364945cc5a40de82e0f73f (diff) | |
download | pfsense-ff30e319d4239b4b6df55d2663f7c0f5efded5e1.zip pfsense-ff30e319d4239b4b6df55d2663f7c0f5efded5e1.tar.gz |
add call gettext function for translate
Diffstat (limited to 'src/usr/local/www/diag_pftop.php')
-rw-r--r-- | src/usr/local/www/diag_pftop.php | 38 |
1 files changed, 22 insertions, 16 deletions
diff --git a/src/usr/local/www/diag_pftop.php b/src/usr/local/www/diag_pftop.php index cece7aa..b7604d6 100644 --- a/src/usr/local/www/diag_pftop.php +++ b/src/usr/local/www/diag_pftop.php @@ -125,15 +125,21 @@ $form->addGlobal(new Form_Input( $section = new Form_Section('pfTop Configuration'); $validViews = array( - 'default', 'label', 'long', - 'queue', 'rules', 'size', - 'speed', 'state', 'time', + 'default' => gettext('default'), + 'label' => gettext('label'), + 'long' => gettext('long'), + 'queue' => gettext('queue'), + 'rules' => gettext('rules'), + 'size' => gettext('size'), + 'speed' => gettext('speed'), + 'state' => gettext('state'), + 'time' => gettext('time'), ); $section->addInput(new Form_Select( 'viewtype', 'View', $viewtype, - array_combine($validViews, $validViews) + $validViews )); $section->addInput(new Form_Select( @@ -141,18 +147,18 @@ $section->addInput(new Form_Select( 'Sort by', $sorttype, array( - 'none' => 'None', - 'age' => 'Age', - 'bytes' => 'Bytes', - 'dest' => 'Destination Address', - 'dport' => 'Destination Port', - 'exp' => 'Expiry', - 'peak' => 'Peak', - 'pkt' => 'Packet', - 'rate' => 'Rate', - 'size' => 'Size', - 'sport' => 'Source Port', - 'src' => 'Source Address', + 'none' => gettext('None'), + 'age' => gettext('Age'), + 'bytes' => gettext('Bytes'), + 'dest' => gettext('Destination Address'), + 'dport' => gettext('Destination Port'), + 'exp' => gettext('Expiry'), + 'peak' => gettext('Peak'), + 'pkt' => gettext('Packet'), + 'rate' => gettext('Rate'), + 'size' => gettext('Size'), + 'sport' => gettext('Source Port'), + 'src' => gettext('Source Address'), ) )); |