summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_packet_capture.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-03-11 21:44:54 +0545
committerPhil Davis <phil.davis@inf.org>2016-03-11 21:44:54 +0545
commitbc3c30ebc548c9b1b184166e940d66cc91752a28 (patch)
tree893d69eb2196c05cc57e651d070421244e09659d /src/usr/local/www/diag_packet_capture.php
parent418695882980cce2450e97608ee0864885208250 (diff)
downloadpfsense-bc3c30ebc548c9b1b184166e940d66cc91752a28.zip
pfsense-bc3c30ebc548c9b1b184166e940d66cc91752a28.tar.gz
Internationalize Form_Button text
The text of a Form_Button is not translated internally. Some Form_Button calls already had the button text enclosed in gettext(), this does it for the remaining ones.
Diffstat (limited to 'src/usr/local/www/diag_packet_capture.php')
-rw-r--r--src/usr/local/www/diag_packet_capture.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/usr/local/www/diag_packet_capture.php b/src/usr/local/www/diag_packet_capture.php
index d31c335..766002d 100644
--- a/src/usr/local/www/diag_packet_capture.php
+++ b/src/usr/local/www/diag_packet_capture.php
@@ -393,14 +393,14 @@ $processisrunning = ($processcheck != "");
if (($action == gettext("Stop") or $action == "") and $processisrunning != true) {
$form->addGlobal(new Form_Button(
'startbtn',
- 'Start',
+ gettext('Start'),
null,
'fa-play-circle'
))->addClass('btn-success');
} else {
$form->addGlobal(new Form_Button(
'stopbtn',
- 'Stop',
+ gettext('Stop'),
null,
'fa-stop-circle'
))->addClass('btn-warning');
@@ -409,14 +409,14 @@ if (($action == gettext("Stop") or $action == "") and $processisrunning != true)
if (file_exists($fp.$fn) and $processisrunning != true) {
$form->addGlobal(new Form_Button(
'viewbtn',
- 'View Capture',
+ gettext('View Capture'),
null,
'fa-file-text-o'
))->addClass('btn-primary');
$form->addGlobal(new Form_Button(
'downloadbtn',
- 'Download Capture',
+ gettext('Download Capture'),
null,
'fa-download'
))->addClass('btn-primary');
OpenPOWER on IntegriCloud