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/services_captiveportal.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/services_captiveportal.php')
-rw-r--r-- | src/usr/local/www/services_captiveportal.php | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/usr/local/www/services_captiveportal.php b/src/usr/local/www/services_captiveportal.php index 68ec06f..29c32b8 100644 --- a/src/usr/local/www/services_captiveportal.php +++ b/src/usr/local/www/services_captiveportal.php @@ -1105,21 +1105,21 @@ if ($pconfig['page']['htmltext']) { $group = new Form_Group('Current Portal Page'); $group->add(new Form_Button( 'btnview', - 'View', + gettext('View'), $href, 'fa-file-text-o' ))->addClass('btn btn-info btn-xs')->setAttribute("target", "_blank"); $group->add(new Form_Button( 'btndownload', - 'Download', + gettext('Download'), '?zone=' . $cpzone . '&act=gethtmlhtml', 'fa-download' ))->addClass('btn btn-primary btn-xs')->setAttribute("target", "_blank"); $group->add(new Form_Button( 'btndownload', - 'Restore Default Page', + gettext('Restore Default Page'), '?zone=' . $cpzone . '&act=delhtmlhtml', 'fa-undo' ))->addClass('btn btn-danger btn-xs')->setAttribute("target", "_blank"); @@ -1139,21 +1139,21 @@ if ($pconfig['page']['errtext']) { $group = new Form_Group('Current Auth Error Page'); $group->add(new Form_Button( 'btnview', - 'View', + gettext('View'), '?zone=' . $cpzone . '&act=viewerrhtml', 'fa-file-text-o' ))->addClass('btn btn-info btn-xs')->setAttribute("target", "_blank"); $group->add(new Form_Button( 'btndownload', - 'Download', + gettext('Download'), '?zone=' . $cpzone . '&act=geterrhtml', 'fa-download' ))->addClass('btn btn-primary btn-xs')->setAttribute("target", "_blank"); $group->add(new Form_Button( 'btndownload', - 'Restore Default Page', + gettext('Restore Default Page'), '?zone=' . $cpzone . '&act=delerrhtml', 'fa-undo' ))->addClass('btn btn-danger btn-xs')->setAttribute("target", "_blank"); @@ -1171,21 +1171,21 @@ if ($pconfig['page']['logouttext']) { $group = new Form_Group('Current Logout Page'); $group->add(new Form_Button( 'btnview', - 'View', + gettext('View'), '?zone=' . $cpzone . '&act=viewlogouthtml', 'fa-file-text-o' ))->addClass('btn btn-info btn-xs')->setAttribute("target", "_blank"); $group->add(new Form_Button( 'btndownload', - 'Download', + gettext('Download'), '?zone=' . $cpzone . '&act=getlogouthtml', 'fa-download' ))->addClass('btn btn-primary btn-xs')->setAttribute("target", "_blank"); $group->add(new Form_Button( 'btndownload', - 'Restore Default Page', + gettext('Restore Default Page'), '?zone=' . $cpzone . '&act=dellogouthtml', 'fa-undo' ))->addClass('btn btn-danger btn-xs')->setAttribute("target", "_blank"); |