diff options
author | Phil Davis <phil.davis@inf.org> | 2016-03-11 21:44:54 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2016-03-11 21:44:54 +0545 |
commit | bc3c30ebc548c9b1b184166e940d66cc91752a28 (patch) | |
tree | 893d69eb2196c05cc57e651d070421244e09659d /src/usr/local/www/pkg_edit.php | |
parent | 418695882980cce2450e97608ee0864885208250 (diff) | |
download | pfsense-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/pkg_edit.php')
-rw-r--r-- | src/usr/local/www/pkg_edit.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr/local/www/pkg_edit.php b/src/usr/local/www/pkg_edit.php index b62e057..a5b2143 100644 --- a/src/usr/local/www/pkg_edit.php +++ b/src/usr/local/www/pkg_edit.php @@ -1457,7 +1457,7 @@ foreach ($pkg['fields']['field'] as $pkga) { // Delete row button $group->add(new Form_Button( 'deleterow' . $rowcounter, - 'Delete', + gettext('Delete'), null, 'fa-trash' ))->removeClass('btn-primary')->addClass('btn-warning btn-sm'); @@ -1469,7 +1469,7 @@ foreach ($pkg['fields']['field'] as $pkga) { // Add row button $section->addInput(new Form_Button( 'addrow', - 'Add', + gettext('Add'), null, 'fa-plus' ))->addClass('btn-success'); @@ -1510,7 +1510,7 @@ $form->addGlobal(new Form_Input( if (!empty($advanced)) { $form->addGlobal(new Form_Button( 'showadv', - 'Show Advanced Options', + gettext('Show Advanced Options'), null, 'fa-cog' ))->addClass('btn-info'); |