From 1eacdc8a8733849da8152eb4ffe54886ed4890d1 Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Ramos Date: Mon, 26 Apr 2010 16:10:53 -0300 Subject: Implement gettext() --- usr/local/www/system_advanced_admin.php | 77 +++++++++++++++++---------------- 1 file changed, 39 insertions(+), 38 deletions(-) (limited to 'usr/local/www/system_advanced_admin.php') 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 .= "
One moment...redirecting to {$url} in 20 seconds."; + #$savemsg .= sprintf("
" . gettext("One moment...redirecting to %s in 20 seconds."),{$url}); + $savemsg .= "
" . gettext("One moment...redirecting to {$url} in 20 seconds."); conf_mount_rw(); setup_serial_port(); @@ -212,18 +213,18 @@ function prot_change() {
- NOTE:  + - The options on this page are intended for use by advanced users only. +

- + - + - + - + @@ -283,47 +284,47 @@ function prot_change() { $lockout_interface = "WAN"; ?> /> - Disable webConfigurator anti-lockout rule +
- When this is unchecked, access to the webConfigurator on the + Hint: the "Set interface(s) IP address" - option in the console menu resets this setting as well. + (ensure you have a firewall rule in place that allows you in, or you will"); ?> + . - + - + - + @@ -331,15 +332,15 @@ function prot_change() { - + - + @@ -347,15 +348,15 @@ function prot_change() { - + - + @@ -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"); } -- cgit v1.1
webConfigurator
Protocol
- No Certificates have been defined. You must - Create or Import - a Certificate before SSL can be enabled. + + +
SSL Certificate
TCP port
- Enter a custom port number for the webConfigurator +
 
Secure Shell
Secure Shell Server /> - Enable Secure Shell +
Authentication Method /> - Disable Password login for Secure Shell (rsa key only) +
- When enabled, authorized keys need to be configured for each + user - that has been granted secure shell access. +
SSH port
- Note: Leave this blank for the default of 22 +
Serial Communcations
Serial Terminal /> - This will enable the first serial port with 9600/8/N/1 +
- Note: This will disable the internal video card/keyboard +
Console Options
Console menu /> - Password protect the console menu +
- Changes to this option will take effect after a reboot. +