summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_backup.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_backup.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_backup.php')
-rw-r--r--src/usr/local/www/diag_backup.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/usr/local/www/diag_backup.php b/src/usr/local/www/diag_backup.php
index 5b49019..b7cd6cf 100644
--- a/src/usr/local/www/diag_backup.php
+++ b/src/usr/local/www/diag_backup.php
@@ -664,7 +664,7 @@ $group = new Form_Group('');
// Note: ID attribute of each element created is to be unique. Not being used, suppressing it.
$group->add(new Form_Button(
'Submit',
- 'Download configuration as XML',
+ gettext('Download configuration as XML'),
null,
'fa-download'
))->setAttribute('id')->addClass('btn-primary');
@@ -712,7 +712,7 @@ $group = new Form_Group('');
// Note: ID attribute of each element created is to be unique. Not being used, suppressing it.
$group->add(new Form_Button(
'Submit',
- 'Restore Configuration',
+ gettext('Restore Configuration'),
null,
'fa-undo'
))->setHelp('The firewall will reboot after restoring the configuration.')->addClass('btn-danger restore')->setAttribute('id');
@@ -729,7 +729,7 @@ if (($config['installedpackages']['package'] != "") || (is_subsystem_dirty("pack
// Note: ID attribute of each element created is to be unique. Not being used, suppressing it.
$group->add(new Form_Button(
'Submit',
- 'Reinstall Packages',
+ gettext('Reinstall Packages'),
null,
'fa-retweet'
))->setHelp('Click this button to reinstall all system packages. This may take a while.')->addClass('btn-success')->setAttribute('id');
@@ -742,7 +742,7 @@ if (($config['installedpackages']['package'] != "") || (is_subsystem_dirty("pack
// Note: ID attribute of each element created is to be unique. Not being used, suppressing it.
$group->add(new Form_Button(
'Submit',
- 'Clear Package Lock',
+ gettext('Clear Package Lock'),
null,
'fa-wrench'
))->setHelp('Click this button to clear the package lock if a package fails to reinstall properly after an upgrade.')->addClass('btn-warning')->setAttribute('id');
OpenPOWER on IntegriCloud