From 9c12da6a94578002aef016d7196a78acf2623eb7 Mon Sep 17 00:00:00 2001 From: kondou Date: Sat, 17 Aug 2013 11:01:47 +0200 Subject: [PATCH] Several improvements - Don't use gravatars default avatars - Use "profile image" instead of "avatar" - Use

instead of tables - Ease updateAvatar() - Actually return something in \OCP\Avatar --- avatar.php | 4 +++ lib/avatar.php | 15 ++++++--- lib/public/avatar.php | 4 +-- settings/js/personal.js | 2 +- settings/templates/admin.php | 56 ++++++++++++++------------------- settings/templates/personal.php | 14 ++++----- settings/templates/users.php | 2 +- 7 files changed, 49 insertions(+), 48 deletions(-) diff --git a/avatar.php b/avatar.php index 1134dc2e71..17417a470e 100644 --- a/avatar.php +++ b/avatar.php @@ -1,5 +1,9 @@

- t('Avatars')); ?> - - - - - - - - - - -
- - > -
- t('Use gravatar for avatars')); ?>
- t('This sends data to gravatar')); ?> - -
t('Gravatar needs an internet connection!')); ?> - -
- > -
- t('Use local avatars, which each user has to upload themselves')); ?> -
- > -
- t('Do not provide avatars')); ?> -
+ t('Profile images')); ?> +

+ + > +
+ t('Use gravatar for profile images')); ?>
+ t('This sends data to gravatar and may slow down loading')); ?> + +
t('Gravatar needs an internet connection!')); ?> + +

+

+ > +
+ t('Use local avatars, which each user has to upload themselves')); ?> +

+

+ > +
+ t('Do not provide avatars')); ?> +

diff --git a/settings/templates/personal.php b/settings/templates/personal.php index 93aaa5ac1e..e047ff9dcc 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -86,18 +86,18 @@ if($_['passwordChangeSupported']) {
- t('Avatar')); ?> + t('Profile Image')); ?>
- t('Your avatar has to be a square and either a PNG or JPG image')); ?>
-
t('Upload a new avatar')); ?>
+ t('Your profile image has to be a square and either a PNG or JPG image')); ?>
+
t('Upload a new image')); ?>
-
t('Select a new avatar from your files')); ?>
-
t('Remove my avatar')); ?>
+
t('Select a new image from your files')); ?>
+
t('Remove my image')); ?>
- t('Your avatar is provided by gravatar, which is based on your Email.')); ?> + t('Your profile image is provided by gravatar, which is based on your Email.')); ?> - t('Your avatar is provided by a custom service, ask your administrator, on how to change your avatar.')); ?> + t('Your profile image is provided by a custom service, ask your administrator, on how to change your image.')); ?>
diff --git a/settings/templates/users.php b/settings/templates/users.php index 32840233d1..78bdbcd8c4 100644 --- a/settings/templates/users.php +++ b/settings/templates/users.php @@ -82,7 +82,7 @@ $_['subadmingroups'] = array_flip($items); - t('Avatar')); ?> + t('Username'))?> t( 'Display Name' )); ?>