summaryrefslogtreecommitdiffstats
path: root/settings/personal.php
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2017-04-27 11:44:57 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-04-28 23:41:37 -0300
commit9480b29413daba34432885642b575065ed5f5d6d (patch)
treeb5387568a029bd1d9cac39fc2cbd3ea5de7b954b /settings/personal.php
parent68ba8572b2d044f5af38a25a38f9217039a4ccb1 (diff)
downloadnextcloud-server-9480b29413daba34432885642b575065ed5f5d6d.tar.gz
nextcloud-server-9480b29413daba34432885642b575065ed5f5d6d.zip
move translatable strings out of the template
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'settings/personal.php')
-rw-r--r--settings/personal.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/settings/personal.php b/settings/personal.php
index d81cdd7c2f3..86ac4f753f4 100644
--- a/settings/personal.php
+++ b/settings/personal.php
@@ -189,6 +189,24 @@ $tmpl->assign('websiteVerification', $userData[\OC\Accounts\AccountManager::PROP
$tmpl->assign('twitterVerification', $userData[\OC\Accounts\AccountManager::PROPERTY_TWITTER]['verified']);
$tmpl->assign('emailVerification', $userData[\OC\Accounts\AccountManager::PROPERTY_EMAIL]['verified']);
+$needVerifyMessage = [\OC\Accounts\AccountManager::PROPERTY_EMAIL, \OC\Accounts\AccountManager::PROPERTY_WEBSITE, \OC\Accounts\AccountManager::PROPERTY_TWITTER];
+
+foreach ($needVerifyMessage as $property) {
+
+ switch ($userData[$property]['verified']) {
+ case \OC\Accounts\AccountManager::VERIFIED:
+ $message = $l->t('Verifying');
+ break;
+ case \OC\Accounts\AccountManager::VERIFICATION_IN_PROGRESS:
+ $message = $l->t('Verifying …');
+ break;
+ default:
+ $message = $l->t('Verify');
+ }
+
+ $tmpl->assign($property . 'Message', $message);
+}
+
$tmpl->assign('avatarChangeSupported', OC_User::canUserChangeAvatar(OC_User::getUser()));
$tmpl->assign('certs', $certificateManager->listCertificates());
$tmpl->assign('showCertificates', $enableCertImport);