summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_event.php
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2010-02-14 19:26:34 -0800
committerAndy Staudacher <andy.st@gmail.com>2010-02-14 19:26:34 -0800
commit409121942590e12692eaf4e6e9e8b71bfe5ed60c (patch)
treeb7dc7ce68fa89008a583b01b4e4f79445d2e8788 /modules/gallery/helpers/gallery_event.php
parent667d65aea460ea601858c54976495d294d93f017 (diff)
Fix for ticket #491: Make user and group names translatable.
Also fixed a UI bug: No longer showing the edit user buttons to admins in the profile view (to be consistent with the requirements in the controller).
Diffstat (limited to 'modules/gallery/helpers/gallery_event.php')
-rw-r--r--modules/gallery/helpers/gallery_event.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/gallery/helpers/gallery_event.php b/modules/gallery/helpers/gallery_event.php
index faf1c0c6..3f77bc42 100644
--- a/modules/gallery/helpers/gallery_event.php
+++ b/modules/gallery/helpers/gallery_event.php
@@ -423,6 +423,9 @@ class gallery_event_Core {
if ($field == "locale") {
$value = locales::display_name($value);
}
+ if ($field == "full_name") {
+ $value = t($value);
+ }
$v->user_profile_data[(string) $label] = $value;
}
}