diff options
author | Paul Arthur <flowerysong00@yahoo.com> | 2012-03-31 17:01:04 -0400 |
---|---|---|
committer | Paul Arthur <paul.arthur@flowerysong.com> | 2012-04-12 21:13:29 -0400 |
commit | f65076b93d91fe9718cf9bef37638d64290b9f28 (patch) | |
tree | 40fbc65baffab34971d8c7b685ef9c99e0f4014f /lib/class/user.class.php | |
parent | 15457b16f17a141fa76a3b9882892362b601787c (diff) | |
download | ampache-f65076b93d91fe9718cf9bef37638d64290b9f28.tar.gz ampache-f65076b93d91fe9718cf9bef37638d64290b9f28.tar.bz2 ampache-f65076b93d91fe9718cf9bef37638d64290b9f28.zip |
Switch from _() to T_()
Even if we move away from php-gettext in the future, it's easy to
write a quick T_() as a simple wrapper; it's not so easy to rewrite
PHP to allow redeclaration of a function.
Diffstat (limited to 'lib/class/user.class.php')
-rw-r--r-- | lib/class/user.class.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/class/user.class.php b/lib/class/user.class.php index 4b283d62..09000600 100644 --- a/lib/class/user.class.php +++ b/lib/class/user.class.php @@ -408,11 +408,11 @@ class User extends database_object { public function update($data) { if (empty($data['username'])) { - Error::add('username',_('Error Username Required')); + Error::add('username', T_('Error Username Required')); } if ($data['password1'] != $data['password2'] AND !empty($data['password1'])) { - Error::add('password',_("Error Passwords don't match")); + Error::add('password', T_("Error Passwords don't match")); } if (Error::occurred()) { @@ -696,11 +696,11 @@ class User extends database_object { public function format() { /* If they have a last seen date */ - if (!$this->last_seen) { $this->f_last_seen = _('Never'); } + if (!$this->last_seen) { $this->f_last_seen = T_('Never'); } else { $this->f_last_seen = date("m\/d\/Y - H:i",$this->last_seen); } /* If they have a create date */ - if (!$this->create_date) { $this->f_create_date = _('Unknown'); } + if (!$this->create_date) { $this->f_create_date = T_('Unknown'); } else { $this->f_create_date = date("m\/d\/Y - H:i",$this->create_date); } // Base link @@ -722,7 +722,7 @@ class User extends database_object { $this->ip_history = inet_ntop($data['0']['ip']); } else { - $this->ip_history = _('Not Enough Data'); + $this->ip_history = T_('Not Enough Data'); } } // format_user |