From: garvinhicking Date: Fri, 22 Jul 2005 08:56:24 +0000 (+0000) Subject: Use localized groupnames X-Git-Tag: 0.9~300 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6e2c3b888b4e8d45e25f2722bbe05a7f3934718a;p=s9y.git Use localized groupnames --- diff --git a/include/admin/groups.inc.php b/include/admin/groups.inc.php index 4b88110..be1951a 100644 --- a/include/admin/groups.inc.php +++ b/include/admin/groups.inc.php @@ -153,14 +153,20 @@ foreach($allusers AS $user) { $section = $perm; } + if (defined('PERMISSION_' . strtoupper($perm))) { + $permname = constant('PERMISSION_' . strtoupper($perm)); + } else { + $permname = $perm; + } + if (!serendipity_checkPermission($perm)) { echo "\n"; - echo "$indent" . htmlspecialchars($perm) . "\n"; + echo "$indent" . htmlspecialchars($permname) . "\n"; echo '' . $indentB . ' ' . (!empty($selected) ? YES : NO) . '' . "\n"; echo "\n"; } else { echo "\n"; - echo "$indent\n"; + echo "$indent\n"; echo '' . $indentB . '' . "\n"; echo "\n"; }