]> git.mjollnir.org Git - s9y.git/commitdiff
Use localized groupnames
authorgarvinhicking <garvinhicking>
Fri, 22 Jul 2005 08:56:24 +0000 (08:56 +0000)
committergarvinhicking <garvinhicking>
Fri, 22 Jul 2005 08:56:24 +0000 (08:56 +0000)
include/admin/groups.inc.php

index 4b88110c00e2472f46d6f282442363ae1b4b3ef5..be1951a89311335744d8bcb7fde686bdd67307f3 100644 (file)
@@ -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 "<tr>\n";
-            echo "<td>$indent" . htmlspecialchars($perm) . "</td>\n";
+            echo "<td>$indent" . htmlspecialchars($permname) . "</td>\n";
             echo '<td>' . $indentB . ' ' . (!empty($selected) ? YES : NO) . '</td>' . "\n";
             echo "</tr>\n";
         } else {
             echo "<tr>\n";
-            echo "<td>$indent<label for=\"" . htmlspecialchars($perm) . "\">" . htmlspecialchars($perm) . "</label></td>\n";
+            echo "<td>$indent<label for=\"" . htmlspecialchars($perm) . "\">" . htmlspecialchars($permname) . "</label></td>\n";
             echo '<td>' . $indentB . '<input id="' . htmlspecialchars($perm) . '" type="checkbox" name="serendipity[' . htmlspecialchars($perm) . ']" value="true" ' . $selected . ' /></td>' . "\n";
             echo "</tr>\n";
         }