diff options
author | Mike Cochrane <mikec@mikenz.geek.nz> | 2008-07-08 05:45:31 -0400 |
---|---|---|
committer | Mike Cochrane <mikec@mikenz.geek.nz> | 2008-07-08 05:45:31 -0400 |
commit | 87b494f1ebbe7640d194ef322af12fdf378295df (patch) | |
tree | f4b616fd8306bb92d3063d4e86dd1b87607163f4 /actions/avatar.php | |
parent | a25f5010e682a0fc950e2ef2476af7b631ada5bf (diff) |
Convert _t() to _() for gettext.
darcs-hash:20080708094531-533db-83399a46e6ec4c0fcc6249b0235961f969d1ae73.gz
Diffstat (limited to 'actions/avatar.php')
-rw-r--r-- | actions/avatar.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/actions/avatar.php b/actions/avatar.php index ac28d8170..1029abd1e 100644 --- a/actions/avatar.php +++ b/actions/avatar.php @@ -24,7 +24,7 @@ require_once(INSTALLDIR.'/lib/settingsaction.php'); class AvatarAction extends SettingsAction { function get_instructions() { - return _t('Upload a new "avatar" (user image) here. ' . + return _('Upload a new "avatar" (user image) here. ' . 'You can\'t edit the picture after you upload it, so ' . 'make sure it\'s more or less square. ' . 'It must be under the site license, also. ' . @@ -34,7 +34,7 @@ class AvatarAction extends SettingsAction { function show_form($msg=NULL, $success=false) { - $this->form_header(_t('Avatar'), $msg, $success); + $this->form_header(_('Avatar'), $msg, $success); $user = common_current_user(); $profile = $user->getProfile(); @@ -70,7 +70,7 @@ class AvatarAction extends SettingsAction { common_element('input', array('name' => 'avatarfile', 'type' => 'file', 'id' => 'avatarfile')); - common_submit('submit', _t('Upload')); + common_submit('submit', _('Upload')); common_element_end('form'); common_show_footer(); } @@ -82,14 +82,14 @@ class AvatarAction extends SettingsAction { break; case UPLOAD_ERR_INI_SIZE: case UPLOAD_ERR_FORM_SIZE: - $this->show_form(_t('That file is too big.')); + $this->show_form(_('That file is too big.')); return; case UPLOAD_ERR_PARTIAL: @unlink($_FILES['avatarfile']['tmp_name']); - $this->show_form(_t('Partial upload.')); + $this->show_form(_('Partial upload.')); return; default: - $this->show_form(_t('System error uploading file.')); + $this->show_form(_('System error uploading file.')); return; } @@ -97,7 +97,7 @@ class AvatarAction extends SettingsAction { if (!$info) { @unlink($_FILES['avatarfile']['tmp_name']); - $this->show_form(_t('Not an image or corrupt file.')); + $this->show_form(_('Not an image or corrupt file.')); return; } @@ -107,7 +107,7 @@ class AvatarAction extends SettingsAction { case IMAGETYPE_PNG: break; default: - $this->show_form(_t('Unsupported image file format.')); + $this->show_form(_('Unsupported image file format.')); return; } @@ -115,9 +115,9 @@ class AvatarAction extends SettingsAction { $profile = $user->getProfile(); if ($profile->setOriginal($_FILES['avatarfile']['tmp_name'])) { - $this->show_form(_t('Avatar updated.'), true); + $this->show_form(_('Avatar updated.'), true); } else { - $this->show_form(_t('Failed updating avatar.')); + $this->show_form(_('Failed updating avatar.')); } @unlink($_FILES['avatarfile']['tmp_name']); |