From 0e94685b3afa5ebec229976889d1e9030b3189d7 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 29 Apr 2010 14:32:30 -0300 Subject: Fix gettext issues --- usr/local/www/system_firmware.php | 6 +++--- usr/local/www/system_gateway_groups.php | 3 +-- usr/local/www/system_gateway_groups_edit.php | 11 +++++------ usr/local/www/system_gateways.php | 10 ++++++---- usr/local/www/system_gateways_edit.php | 15 +++++++-------- usr/local/www/system_groupmanager.php | 8 ++++---- usr/local/www/system_routes_edit.php | 5 ++--- usr/local/www/system_usermanager.php | 8 ++++---- usr/local/www/system_usermanager_settings.php | 3 ++- .../www/system_usermanager_settings_ldapacpicker.php | 2 +- 10 files changed, 35 insertions(+), 36 deletions(-) diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php index 8acd25e..58c1caa 100755 --- a/usr/local/www/system_firmware.php +++ b/usr/local/www/system_firmware.php @@ -297,9 +297,9 @@ if(stristr($_FILES['ulfile']['name'],"nanobsd"))   :
-
+ diff --git a/usr/local/www/system_gateway_groups.php b/usr/local/www/system_gateway_groups.php index a9bb475..3cd39c8 100755 --- a/usr/local/www/system_gateway_groups.php +++ b/usr/local/www/system_gateway_groups.php @@ -90,8 +90,7 @@ include("head.inc");

-"));?>
+"));?>
diff --git a/usr/local/www/system_gateway_groups_edit.php b/usr/local/www/system_gateway_groups_edit.php index 6fc035f..7807ccf 100755 --- a/usr/local/www/system_gateway_groups_edit.php +++ b/usr/local/www/system_gateway_groups_edit.php @@ -96,7 +96,7 @@ if ($_POST) { continue; if ($gateway_group['name'] == $_POST['name']) { - $input_errors[] = sprintf(gettext("A gateway group with this name \"%s\" already exists."), $_POST['name']); + $input_errors[] = sprintf(gettext('A gateway group with this name "%s" already exists.'), $_POST['name']); break; } } @@ -185,9 +185,9 @@ include("head.inc"); ?>

- +

@@ -212,8 +212,7 @@ include("head.inc"); +
diff --git a/usr/local/www/system_gateways.php b/usr/local/www/system_gateways.php index 28a3fe5..d50665a 100755 --- a/usr/local/www/system_gateways.php +++ b/usr/local/www/system_gateways.php @@ -105,8 +105,7 @@ include("head.inc");

-" . gettext("You must apply the changes in order for them to take -effect."));?>
+" . gettext("You must apply the changes in order for them to take effect."));?>

-
 
@@ -191,8 +190,11 @@ effect."));?>
+ diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php index a51b1c4..ed8e4a7 100755 --- a/usr/local/www/system_gateways_edit.php +++ b/usr/local/www/system_gateways_edit.php @@ -126,19 +126,19 @@ if ($_POST) { } if($_POST['name'] <> "") { if (($gateway['name'] <> "") && ($_POST['name'] == $gateway['name']) && ($gateway['attribute'] != "system")) { - $input_errors[] = sprintf(gettext("The gateway name \"%s\" already exists."), $_POST['name']); + $input_errors[] = sprintf(gettext('The gateway name "%s" already exists.'), $_POST['name']); break; } } if(is_ipaddr($_POST['gateway'])) { if (($gateway['gateway'] <> "") && ($_POST['gateway'] == $gateway['gateway']) && ($gateway['attribute'] != "system")) { - $input_errors[] = sprintf(gettext("The gateway IP address \"%s\" already exists."), $_POST['gateway']); + $input_errors[] = sprintf(gettext('The gateway IP address "%s" already exists.'), $_POST['gateway']); break; } } if(is_ipaddr($_POST['monitor'])) { if (($gateway['monitor'] <> "") && ($_POST['monitor'] == $gateway['monitor']) && ($gateway['attribute'] != "system")) { - $input_errors[] = sprintf(gettext("The monitor IP address \"%s\" is already in use. You must choose a different monitor IP."), $_POST['monitor']); + $input_errors[] = sprintf(gettext('The monitor IP address "%s" is already in use. You must choose a different monitor IP.'), $_POST['monitor']); break; } } @@ -301,9 +301,9 @@ function enable_change(obj) { ?>
- . + .
@@ -311,8 +311,7 @@ function enable_change(obj) { +
. diff --git a/usr/local/www/system_groupmanager.php b/usr/local/www/system_groupmanager.php index 7a3b98c..e3cd72b 100644 --- a/usr/local/www/system_groupmanager.php +++ b/usr/local/www/system_groupmanager.php @@ -447,10 +447,10 @@ function presubmit() { diff --git a/usr/local/www/system_routes_edit.php b/usr/local/www/system_routes_edit.php index 3fce917..c4d027e 100755 --- a/usr/local/www/system_routes_edit.php +++ b/usr/local/www/system_routes_edit.php @@ -200,7 +200,7 @@ include("head.inc"); - + @@ -242,8 +242,7 @@ include("head.inc"); +
. diff --git a/usr/local/www/system_usermanager.php b/usr/local/www/system_usermanager.php index cc8039d..f8cd440 100644 --- a/usr/local/www/system_usermanager.php +++ b/usr/local/www/system_usermanager.php @@ -806,10 +806,10 @@ function sshkeyClicked(obj) { diff --git a/usr/local/www/system_usermanager_settings.php b/usr/local/www/system_usermanager_settings.php index 289d7fe..274a359 100755 --- a/usr/local/www/system_usermanager_settings.php +++ b/usr/local/www/system_usermanager_settings.php @@ -125,7 +125,8 @@ if(!$pconfig['backend']) diff --git a/usr/local/www/system_usermanager_settings_ldapacpicker.php b/usr/local/www/system_usermanager_settings_ldapacpicker.php index 05476ac..5e76fce 100644 --- a/usr/local/www/system_usermanager_settings_ldapacpicker.php +++ b/usr/local/www/system_usermanager_settings_ldapacpicker.php @@ -93,7 +93,7 @@ function post_choices() { -

+

: -- cgit v1.1
- ')"> + ')"> + + +
-
.
 

- +

 
:>:>
: -
.
 

- +


- Enter 0 to never expire sessions. NOTE: This is a security risk!");?>
+
+