diff options
Diffstat (limited to 'plugins/Gravatar')
-rw-r--r-- | plugins/Gravatar/GravatarPlugin.php | 21 | ||||
-rw-r--r-- | plugins/Gravatar/README | 2 | ||||
-rw-r--r-- | plugins/Gravatar/locale/Gravatar.pot | 6 |
3 files changed, 14 insertions, 15 deletions
diff --git a/plugins/Gravatar/GravatarPlugin.php b/plugins/Gravatar/GravatarPlugin.php index 8a9721ea9..dd8ff7217 100644 --- a/plugins/Gravatar/GravatarPlugin.php +++ b/plugins/Gravatar/GravatarPlugin.php @@ -34,17 +34,17 @@ class GravatarPlugin extends Plugin { return true; } - + function onStartAvatarFormData($action) { $user = common_current_user(); $hasGravatar = $this->hasGravatar($user->id); - + if($hasGravatar) { return false; } } - + function onEndAvatarFormData($action) { $user = common_current_user(); @@ -91,7 +91,7 @@ class GravatarPlugin extends Plugin _m('To use a Gravatar first enter in an email address.')); } } - + function onStartAvatarSaveForm($action) { if ($action->arg('add')) { @@ -131,19 +131,18 @@ class GravatarPlugin extends Plugin } return false; } - function gravatar_save() { $cur = common_current_user(); - + if(empty($cur->email)) { - return array('message' => _m('You do not have a email set in your profile.'), + return array('message' => _m('You do not have an email address set in your profile.'), 'success' => false); } //Get rid of previous Avatar $this->gravatar_remove(); - + foreach (array(AVATAR_PROFILE_SIZE, AVATAR_STREAM_SIZE, AVATAR_MINI_SIZE) as $size) { $gravatar = new Avatar(); $gravatar->profile_id = $cur->id; @@ -156,7 +155,7 @@ class GravatarPlugin extends Plugin $gravatar->created = DB_DataObject_Cast::dateTime(); # current time if (!$gravatar->insert()) { - return array('message' => _m('Failed to save Gravatar to the DB.'), + return array('message' => _m('Failed to save Gravatar to the database.'), 'success' => false); } } @@ -181,7 +180,7 @@ class GravatarPlugin extends Plugin return array('message' => _m('Gravatar removed.'), 'success' => true); } - + function gravatar_url($email, $size) { $url = "http://www.gravatar.com/avatar.php?gravatar_id=". @@ -202,4 +201,4 @@ class GravatarPlugin extends Plugin return true; } -}
\ No newline at end of file +} diff --git a/plugins/Gravatar/README b/plugins/Gravatar/README index 9337e24a0..263904808 100644 --- a/plugins/Gravatar/README +++ b/plugins/Gravatar/README @@ -10,4 +10,4 @@ addPlugin('Gravatar', array()); ToDo: Site default all on for gravatar by default Migration Script -Localize
\ No newline at end of file +Localize diff --git a/plugins/Gravatar/locale/Gravatar.pot b/plugins/Gravatar/locale/Gravatar.pot index 9a71b8166..fda09b797 100644 --- a/plugins/Gravatar/locale/Gravatar.pot +++ b/plugins/Gravatar/locale/Gravatar.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2010-09-14 22:56+0000\n" +"POT-Creation-Date: 2010-09-18 22:06+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -45,11 +45,11 @@ msgid "To use a Gravatar first enter in an email address." msgstr "" #: GravatarPlugin.php:141 -msgid "You do not have a email set in your profile." +msgid "You do not have an email address set in your profile." msgstr "" #: GravatarPlugin.php:159 -msgid "Failed to save Gravatar to the DB." +msgid "Failed to save Gravatar to the database." msgstr "" #: GravatarPlugin.php:163 |