From bbf825ab9bdbb572177ab443a7df8487311f064d Mon Sep 17 00:00:00 2001 From: Vinicius Coque Date: Wed, 28 Apr 2010 09:32:54 -0300 Subject: Implementing gettext() --- usr/local/www/system_groupmanager.php | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'usr') diff --git a/usr/local/www/system_groupmanager.php b/usr/local/www/system_groupmanager.php index 74ead6d..dba70ca 100644 --- a/usr/local/www/system_groupmanager.php +++ b/usr/local/www/system_groupmanager.php @@ -46,7 +46,7 @@ require("guiconfig.inc"); -$pgtitle = array("System", "Group manager"); +$pgtitle = array(gettext("System"), gettext("Group manager")); if (!is_array($config['system']['group'])) $config['system']['group'] = array(); @@ -112,18 +112,18 @@ if ($_POST) { /* input validation */ $reqdfields = explode(" ", "groupname"); - $reqdfieldsn = explode(",", "Group Name"); + $reqdfieldsn = explode(",", gettext("Group Name")); do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); if (preg_match("/[^a-zA-Z0-9\.\-_ ]/", $_POST['groupname'])) - $input_errors[] = "The group name contains invalid characters."; + $input_errors[] = gettext("The group name contains invalid characters."); if (!$input_errors && !(isset($id) && $a_group[$id])) { /* make sure there are no dupes */ foreach ($a_group as $group) { if ($group['name'] == $_POST['groupname']) { - $input_errors[] = "Another entry with the same group name already exists."; + $input_errors[] = gettext("Another entry with the same group name already exists."); break; } } @@ -252,17 +252,17 @@ function presubmit() { - Group name + > - Description +
- Group description, for your own information only + @@ -274,7 +274,7 @@ function presubmit() { - - - + + + -- cgit v1.1
- Not Members
+

- Members
+

Group nameDescriptionMember Count
- User + <?=gettext(" title="" border="0" height="16" width="16" /> @@ -423,7 +423,7 @@ function presubmit() { - + " width="17" height="17" border="0">   @@ -440,7 +440,7 @@ function presubmit() {
- + " width="17" height="17" border="0">