summaryrefslogtreecommitdiff
path: root/modules/locale
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-09 15:15:55 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-10-09 15:15:55 +0000
commitd59ba41f65a26cdd31ae9da5b847be008cd365dd (patch)
treed430e5cfc24c758d856a44687b0676fcb084a6c6 /modules/locale
parentc9c35d2d58e7edede8548b42481a364c86ce642d (diff)
downloadbrdo-d59ba41f65a26cdd31ae9da5b847be008cd365dd.tar.gz
brdo-d59ba41f65a26cdd31ae9da5b847be008cd365dd.tar.bz2
#313213 by maartenvg, Gábor Hojtsy: Add a 'title' attribute for permissions to allow for localization of permission names
Diffstat (limited to 'modules/locale')
-rw-r--r--modules/locale/locale.module10
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/locale/locale.module b/modules/locale/locale.module
index b48bb239f..128197247 100644
--- a/modules/locale/locale.module
+++ b/modules/locale/locale.module
@@ -190,8 +190,14 @@ function locale_inc_callback() {
*/
function locale_perm() {
return array(
- 'administer languages' => t('Manage the languages in which the website content and interface text may be displayed.'),
- 'translate interface' => t('Translate the text of the website interface.'),
+ 'administer languages' => array(
+ 'title' => t('Administer languages'),
+ 'description' => t('Manage the languages in which the website content and interface text may be displayed.'),
+ ),
+ 'translate interface' => array(
+ 'title' => t('Translate the interface'),
+ 'description' => t('Translate the text of the website interface.'),
+ ),
);
}