diff options
Diffstat (limited to 'usr/local/www/system_advanced_admin.php')
-rw-r--r-- | usr/local/www/system_advanced_admin.php | 77 |
1 files changed, 39 insertions, 38 deletions
diff --git a/usr/local/www/system_advanced_admin.php b/usr/local/www/system_advanced_admin.php index 954b625..3800a9e 100644 --- a/usr/local/www/system_advanced_admin.php +++ b/usr/local/www/system_advanced_admin.php @@ -76,11 +76,11 @@ if ($_POST) { /* input validation */ if ($_POST['webguiport']) if(!is_port($_POST['webguiport'])) - $input_errors[] = "You must specify a valid webConfigurator port number"; + $input_errors[] = gettext("You must specify a valid webConfigurator port number"); if ($_POST['sshport']) if(!is_port($_POST['sshport'])) - $input_errors[] = "You must specify a valid port number"; + $input_errors[] = gettext("You must specify a valid port number"); if($_POST['sshdkeyonly'] == "yes") $config['system']['ssh']['sshdkeyonly'] = "enabled"; @@ -157,7 +157,8 @@ if ($_POST) { $savemsg = get_std_save_message($retval); if ($restart_webgui) - $savemsg .= "<br />One moment...redirecting to {$url} in 20 seconds."; + #$savemsg .= sprintf("<br />" . gettext("One moment...redirecting to %s in 20 seconds."),{$url}); + $savemsg .= "<br />" . gettext("One moment...redirecting to {$url} in 20 seconds."); conf_mount_rw(); setup_serial_port(); @@ -212,18 +213,18 @@ function prot_change() { <div class="tabcont"> <span class="vexpl"> <span class="red"> - <strong>NOTE: </strong> + <strong><?=gettext("NOTE"); ?>: </strong> </span> - The options on this page are intended for use by advanced users only. + <?=gettext("The options on this page are intended for use by advanced users only."); ?> <br/> </span> <br/> <table width="100%" border="0" cellpadding="6" cellspacing="0"> <tr> - <td colspan="2" valign="top" class="listtopic">webConfigurator</td> + <td colspan="2" valign="top" class="listtopic"><?=gettext("webConfigurator"); ?></td> </tr> <tr> - <td width="22%" valign="top" class="vncell">Protocol</td> + <td width="22%" valign="top" class="vncell"><?=gettext("Protocol"); ?></td> <td width="78%" class="vtable"> <?php if ($pconfig['webguiproto'] == "http") @@ -240,14 +241,14 @@ function prot_change() { HTTPS <?php if (!$certs_available): ?> <br/> - No Certificates have been defined. You must - <a href="system_certmanager.php">Create or Import</a> - a Certificate before SSL can be enabled. + <?=gettext("No Certificates have been defined. You must"); ?> + <a href="system_certmanager.php"><?=gettext("Create or Import"); ?></a> + <?=gettext("a Certificate before SSL can be enabled."); ?> <?php endif; ?> </td> </tr> <tr id="ssl_opts"> - <td width="22%" valign="top" class="vncell">SSL Certificate</td> + <td width="22%" valign="top" class="vncell"><?=gettext("SSL Certificate"); ?></td> <td width="78%" class="vtable"> <select name="ssl-certref" id="ssl-certref" class="formselect"> <?php @@ -262,14 +263,14 @@ function prot_change() { </td> </tr> <tr> - <td valign="top" class="vncell">TCP port</td> + <td valign="top" class="vncell"><?=gettext("TCP port"); ?></td> <td class="vtable"> <input name="webguiport" type="text" class="formfld unknown" id="webguiport" "size="5" value="<?=htmlspecialchars($config['system']['webgui']['port']);?>"> <br> <span class="vexpl"> - Enter a custom port number for the webConfigurator + <?=gettext("Enter a custom port number for the webConfigurator above if you want to override the default (80 for HTTP, 443 - for HTTPS). Changes will take effect immediately after save. + for HTTPS). Changes will take effect immediately after save."); ?> </span> </td> </tr> @@ -283,47 +284,47 @@ function prot_change() { $lockout_interface = "WAN"; ?> <input name="noantilockout" type="checkbox" id="noantilockout" value="yes" <?php if ($pconfig['noantilockout']) echo "checked"; ?> /> - <strong>Disable webConfigurator anti-lockout rule</strong> + <strong><?=gettext("Disable webConfigurator anti-lockout rule"); ?></strong> <br/> - When this is unchecked, access to the webConfigurator on the <?=$lockout_interface;?> + <?=gettext("When this is unchecked, access to the webConfigurator on the $lockout_interface interface is always permitted, regardless of the user-defined firewall rule set. Check this box to disable this automatically added rule, so access to the webConfigurator is controlled by the user-defined firewall rules - (ensure you have a firewall rule in place that allows you in, or you will - lock yourself out!). <em> Hint: the "Set interface(s) IP address" - option in the console menu resets this setting as well. </em> + (ensure you have a firewall rule in place that allows you in, or you will"); ?> + <?=gettext("lock yourself out!)"); ?>. <em> <?=gettext("Hint: the "Set interface(s) IP address" + option in the console menu resets this setting as well."); ?> </em> </td> </tr> <tr> <td colspan="2" class="list" height="12"> </td> </tr> <tr> - <td colspan="2" valign="top" class="listtopic">Secure Shell</td> + <td colspan="2" valign="top" class="listtopic"><?=gettext("Secure Shell"); ?></td> </tr> <tr> <td width="22%" valign="top" class="vncell">Secure Shell Server</td> <td width="78%" class="vtable"> <input name="enablesshd" type="checkbox" id="enablesshd" value="yes" <?php if (isset($pconfig['enablesshd'])) echo "checked"; ?> /> - <strong>Enable Secure Shell</strong> + <strong><?=gettext("Enable Secure Shell"); ?></strong> </td> </tr> <tr> - <td width="22%" valign="top" class="vncell">Authentication Method</td> + <td width="22%" valign="top" class="vncell"><?=gettext("Authentication Method"); ?></td> <td width="78%" class="vtable"> <input name="sshdkeyonly" type="checkbox" id="sshdkeyonly" value="yes" <?php if ($pconfig['sshdkeyonly']) echo "checked"; ?> /> - <strong>Disable Password login for Secure Shell (rsa key only)</strong> + <strong><?=gettext("Disable Password login for Secure Shell (rsa key only)"); ?></strong> <br/> - When enabled, authorized keys need to be configured for each + <?=gettext("When enabled, authorized keys need to be configured for each"); ?> <a href="system_usermanager.php">user</a> - that has been granted secure shell access. + <?=gettext("that has been granted secure shell access."); ?> </td> </tr> <tr> - <td width="22%" valign="top" class="vncell">SSH port</td> + <td width="22%" valign="top" class="vncell"><?=gettext("SSH port"); ?></td> <td width="78%" class="vtable"> <input name="sshport" type="text" id="sshport" value="<?php echo $pconfig['sshport']; ?>" /> <br/> - <span class="vexpl">Note: Leave this blank for the default of 22</span> + <span class="vexpl"><?=gettext("Note: Leave this blank for the default of 22"); ?></span> </td> </tr> <tr> @@ -331,15 +332,15 @@ function prot_change() { </tr> <?php if($g['platform'] == "pfSense" || $g['platform'] == "cdrom"): ?> <tr> - <td colspan="2" valign="top" class="listtopic">Serial Communcations</td> + <td colspan="2" valign="top" class="listtopic"><?=gettext("Serial Communcations"); ?></td> </tr> <tr> - <td width="22%" valign="top" class="vncell">Serial Terminal</td> + <td width="22%" valign="top" class="vncell"><?=gettext("Serial Terminal"); ?></td> <td width="78%" class="vtable"> <input name="enableserial" type="checkbox" id="enableserial" value="yes" <?php if (isset($pconfig['enableserial'])) echo "checked"; ?> /> - <strong>This will enable the first serial port with 9600/8/N/1</strong> + <strong><?=gettext("This will enable the first serial port with 9600/8/N/1"); ?></strong> <br> - <span class="vexpl">Note: This will disable the internal video card/keyboard</span> + <span class="vexpl"><?=gettext("Note: This will disable the internal video card/keyboard"); ?></span> </td> </tr> <tr> @@ -347,15 +348,15 @@ function prot_change() { </tr> <?php endif; ?> <tr> - <td colspan="2" valign="top" class="listtopic">Console Options</td> + <td colspan="2" valign="top" class="listtopic"><?=gettext("Console Options"); ?></td> </tr> <tr> - <td width="22%" valign="top" class="vncell">Console menu</td> + <td width="22%" valign="top" class="vncell"><?=gettext("Console menu"); ?></td> <td width="78%" class="vtable"> <input name="disableconsolemenu" type="checkbox" id="disableconsolemenu" value="yes" <?php if ($pconfig['disableconsolemenu']) echo "checked"; ?> /> - <strong>Password protect the console menu</strong> + <strong><?=gettext("Password protect the console menu"); ?></strong> <br/> - <span class="vexpl">Changes to this option will take effect after a reboot.</span> + <span class="vexpl"><?=gettext("Changes to this option will take effect after a reboot."); ?></span> </td> </tr> <tr> @@ -392,17 +393,17 @@ function prot_change() { if ($restart_sshd) { mwexec("/usr/bin/killall sshd"); - log_error("secure shell configuration has changed. Stopping sshd."); + log_error(gettext("secure shell configuration has changed. Stopping sshd.")); if ($config['system']['enablesshd']) { - log_error("secure shell configuration has changed. Restarting sshd."); + log_error(gettext("secure shell configuration has changed. Restarting sshd.")); touch("{$g['tmp_path']}/start_sshd"); } } if ($restart_webgui) { ob_flush(); flush(); - log_error("webConfigurator configuration has changed. Restarting webConfigurator."); + log_error(gettext("webConfigurator configuration has changed. Restarting webConfigurator.")); touch("{$g['tmp_path']}/restart_webgui"); } |