summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkondou <kondou@ts.unde.re>2013-09-02 17:07:38 +0200
committerkondou <kondou@ts.unde.re>2013-09-02 17:07:38 +0200
commite7e3f1b81a5026116ef0c9cd95a00fdd7ff6f5a2 (patch)
treefce3f0677d4009bd483150f38190846197912c88
parent14cc1cd4b8d9e121e4f21851bf281bd4b565fb22 (diff)
downloadnextcloud-server-e7e3f1b81a5026116ef0c9cd95a00fdd7ff6f5a2.tar.gz
nextcloud-server-e7e3f1b81a5026116ef0c9cd95a00fdd7ff6f5a2.zip
Fix some of @jancborchardt's complaints in oc_avatars
-rw-r--r--core/avatar/controller.php6
-rw-r--r--lib/avatar.php2
-rw-r--r--settings/js/personal.js2
-rw-r--r--settings/templates/personal.php8
4 files changed, 9 insertions, 9 deletions
diff --git a/core/avatar/controller.php b/core/avatar/controller.php
index 045d768dc14..5264327b641 100644
--- a/core/avatar/controller.php
+++ b/core/avatar/controller.php
@@ -34,7 +34,7 @@ class OC_Core_Avatar_Controller {
\OC_Response::setETagHeader(crc32($image->data()));
$image->show();
} elseif ($image === false) {
- \OC_JSON::success(array('user' => \OC_User::getDisplayName($user), 'size' => $size));
+ \OC_JSON::success(array('user' => $user, 'size' => $size));
}
}
@@ -104,7 +104,7 @@ class OC_Core_Avatar_Controller {
$tmpavatar = \OC_Cache::get('tmpavatar');
if (is_null($tmpavatar)) {
$l = new \OC_L10n('core');
- \OC_JSON::error(array("data" => array("message" => $l->t("No temporary avatar available, try again")) ));
+ \OC_JSON::error(array("data" => array("message" => $l->t("No temporary profile picture available, try again")) ));
return;
}
@@ -128,7 +128,7 @@ class OC_Core_Avatar_Controller {
$tmpavatar = \OC_Cache::get('tmpavatar');
if (is_null($tmpavatar)) {
$l = new \OC_L10n('core');
- \OC_JSON::error(array("data" => array("message" => $l->t("No temporary avatar available, try again")) ));
+ \OC_JSON::error(array("data" => array("message" => $l->t("No temporary profile picture available, try again")) ));
return;
}
diff --git a/lib/avatar.php b/lib/avatar.php
index 5ecce050d24..9b2a7fe07cf 100644
--- a/lib/avatar.php
+++ b/lib/avatar.php
@@ -46,7 +46,7 @@ class OC_Avatar {
public function set ($user, $data) {
if (\OC_Appconfig::getValue('files_encryption', 'enabled') === "yes") {
$l = \OC_L10N::get('lib');
- throw new \Exception($l->t("Custom avatars don't work with encryption yet"));
+ throw new \Exception($l->t("Custom profile pictures don't work with encryption yet"));
}
$view = new \OC\Files\View('/'.$user);
diff --git a/settings/js/personal.js b/settings/js/personal.js
index 9823b2804bf..d9b6836568e 100644
--- a/settings/js/personal.js
+++ b/settings/js/personal.js
@@ -212,7 +212,7 @@ $(document).ready(function(){
$('#uploadavatar').fileupload(uploadparms);
$('#selectavatar').click(function(){
- OC.dialogs.filepicker(t('settings', "Select an avatar"), selectAvatar, false, "image");
+ OC.dialogs.filepicker(t('settings', "Select a profile picture"), selectAvatar, false, "image");
});
$('#removeavatar').click(function(){
diff --git a/settings/templates/personal.php b/settings/templates/personal.php
index d4a0e3b9480..fcef0f8a578 100644
--- a/settings/templates/personal.php
+++ b/settings/templates/personal.php
@@ -83,14 +83,14 @@ if($_['passwordChangeSupported']) {
<?php if (\OC_Config::getValue('enable_avatars', true) === true): ?>
<form id="avatar" method="post" action="<?php p(\OC_Helper::linkToRoute('core_avatar_post')); ?>">
<fieldset class="personalblock">
- <legend><strong><?php p($l->t('Profile Image')); ?></strong></legend>
+ <legend><strong><?php p($l->t('Profile picture')); ?></strong></legend>
<div class="avatardiv"></div><br>
- <em><?php p($l->t('Has to be square and either PNG or JPG')); ?></em><br>
<div class="warning hidden"></div>
<div class="inlineblock button" id="uploadavatarbutton"><?php p($l->t('Upload new')); ?></div>
<input type="file" class="hidden" name="files[]" id="uploadavatar">
- <div class="inlineblock button" id="selectavatar"><?php p($l->t('Select new from files')); ?></div>
- <div class="inlineblock button" id="removeavatar"><?php p($l->t('Remove image')); ?></div>
+ <div class="inlineblock button" id="selectavatar"><?php p($l->t('Select new from Files')); ?></div>
+ <div class="inlineblock button" id="removeavatar"><?php p($l->t('Remove image')); ?></div><br>
+ <?php p($l->t('Either png or jpg. Ideally square but you will be able to crop it.')); ?>
</fieldset>
</form>
<?php endif; ?>