]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #2230 group acl names are not i18n friendly
authorcash <cash.costello@gmail.com>
Mon, 2 Jan 2012 00:35:23 +0000 (19:35 -0500)
committercash <cash.costello@gmail.com>
Mon, 2 Jan 2012 00:35:23 +0000 (19:35 -0500)
mod/groups/languages/en.php
mod/groups/start.php

index 3623c95fcb5eb28e69ee972dc9d22325d59b33b1..a4a9e2b2b080999acb10be6be5c9e01541c169f1 100644 (file)
@@ -62,6 +62,7 @@ $english = array(
        'groups:search:title' => "Search for groups tagged with '%s'",
        'groups:search:none' => "No matching groups were found",
        'groups:search_in_group' => "Search in this group",
+       'groups:acl' => "Group: %s",
 
        'groups:activity' => "Group activity",
        'groups:enableactivity' => 'Enable group activity',
index 09362cbbcdc363279edbd34beca9ff0fc0c6aed6..86a1da2793dcc794c0ccf83a57699367984345ad 100644 (file)
@@ -663,7 +663,7 @@ function group_access_options($group) {
                ACCESS_PRIVATE => 'private',
                ACCESS_LOGGED_IN => 'logged in users',
                ACCESS_PUBLIC => 'public',
-               $group->group_acl => 'Group: ' . $group->name,
+               $group->group_acl => elgg_echo('groups:acl', array($group->name)),
        );
        return $access_array;
 }