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).
This commit is contained in:
Andy Staudacher
2010-02-14 19:26:34 -08:00
parent 667d65aea4
commit 4091219425
7 changed files with 16 additions and 12 deletions

View File

@@ -113,7 +113,7 @@ class User_Model extends ORM implements User_Definition {
* @return string
*/
public function display_name() {
return empty($this->full_name) ? $this->name : $this->full_name;
return empty($this->full_name) ? $this->name : t($this->full_name);
}
/**