From 81949e66bbfc8a8277c278f6391c42226741e7d5 Mon Sep 17 00:00:00 2001 From: Daniel Berthereau Date: Mon, 27 Aug 2018 00:00:00 +0200 Subject: [PATCH] Used the view plugin "translate" as function in views. --- application/view/omeka/admin/user/show.phtml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/application/view/omeka/admin/user/show.phtml b/application/view/omeka/admin/user/show.phtml index 970bd525cc..16df534f4d 100644 --- a/application/view/omeka/admin/user/show.phtml +++ b/application/view/omeka/admin/user/show.phtml @@ -38,11 +38,11 @@ $this->htmlElement('body')->appendAttribute('class', 'users show');
-

translate('Sites'); ?>

+

sites(); ?>
- translate('None')); ?> +
@@ -53,7 +53,7 @@ $this->htmlElement('body')->appendAttribute('class', 'users show'); hyperlink('', $site->siteUrl(), [ 'target' => '_blank', 'class' => 'o-icon-external public', - 'title' => $this->translate('View public site'), + 'title' => $translate('View public site'), ]); ?> link($site->title()); ?> @@ -64,11 +64,11 @@ $this->htmlElement('body')->appendAttribute('class', 'users show');
-

translate('Site permissions'); ?>

+

sitePermissions(); ?>
- translate('None')); ?> +
@@ -78,7 +78,7 @@ $this->htmlElement('body')->appendAttribute('class', 'users show'); site(); ?> link($site->title(), 'users'), - $escape($this->translate($sitePermission->role()))); ?> + $escape($translate($sitePermission->role()))); ?>