aboutsummaryrefslogtreecommitdiffstats
path: root/admin/group_list.php
diff options
context:
space:
mode:
authornikrou <nikrou@piwigo.org>2010-03-02 14:54:22 +0000
committernikrou <nikrou@piwigo.org>2010-03-02 14:54:22 +0000
commit2e890e9597da29346a1fbe0db45f48e4a2be86e7 (patch)
treef189c8320f38340bc3d7a94d799e05e0587d95cb /admin/group_list.php
parent35694a636ef34dba5384e1a530b837208b9e55f9 (diff)
Feature 1451 : localization with gettext
Use php-gettext (developpement version rev43, because of php5.3) as fallback Use native language (english) instead of key for translation Keep directory en_UK for english customization Need some refactoring for plurals Todo : managing plugins in the same way git-svn-id: http://piwigo.org/svn/trunk@5021 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/group_list.php')
-rw-r--r--admin/group_list.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/admin/group_list.php b/admin/group_list.php
index eff20031d..3ecfa6b0d 100644
--- a/admin/group_list.php
+++ b/admin/group_list.php
@@ -72,7 +72,7 @@ DELETE
array_push(
$page['infos'],
- sprintf(l10n('group "%s" deleted'), $groupname)
+ sprintf(l10n('group \"%s\" deleted'), $groupname)
);
}
@@ -84,7 +84,7 @@ if (isset($_POST['submit_add']) and !is_adviser())
{
if (empty($_POST['groupname']))
{
- array_push($page['errors'], l10n('group_add_error1'));
+ array_push($page['errors'], l10n('The name of a group must not contain \" or \' or be empty.'));
}
if (count($page['errors']) == 0)
{
@@ -97,7 +97,7 @@ SELECT COUNT(*)
list($count) = pwg_db_fetch_row(pwg_query($query));
if ($count != 0)
{
- array_push($page['errors'], l10n('group_add_error2'));
+ array_push($page['errors'], l10n('This name is already used by another group.'));
}
}
if (count($page['errors']) == 0)
@@ -113,7 +113,7 @@ INSERT INTO '.GROUPS_TABLE.'
array_push(
$page['infos'],
- sprintf(l10n('group "%s" added'), $_POST['groupname'])
+ sprintf(l10n('group \"%s\" added'), $_POST['groupname'])
);
}
}
@@ -141,7 +141,7 @@ UPDATE '.GROUPS_TABLE.'
array_push(
$page['infos'],
- sprintf(l10n('group "%s" updated'), $groupname)
+ sprintf(l10n('group \"%s\" updated'), $groupname)
);
}
@@ -188,7 +188,7 @@ SELECT COUNT(*)
'groups',
array(
'NAME' => $row['name'],
- 'IS_DEFAULT' => (get_boolean($row['is_default']) ? ' ['.l10n('is_default_group').']' : ''),
+ 'IS_DEFAULT' => (get_boolean($row['is_default']) ? ' ['.l10n('default').']' : ''),
'MEMBERS' => l10n_dec('%d member', '%d members', $counter),
'U_MEMBERS' => $members_url.$row['id'],
'U_DELETE' => $del_url.$row['id'],