From 235b6d85ded210cc8f7f9489f9ee436569e779ab Mon Sep 17 00:00:00 2001 From: Hanne Moa Date: Fri, 28 Oct 2016 11:06:18 +0200 Subject: [PATCH] Namespace translation tags Note the tags 'spname' and spdescription' that cannot be namespaced because their translations are loaded dynamically. For #455 and #465 --- .../consentAdmin/templates/consentadmin.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/consentAdmin/templates/consentadmin.php b/modules/consentAdmin/templates/consentadmin.php index a16c0fa9f1..af77298a93 100644 --- a/modules/consentAdmin/templates/consentadmin.php +++ b/modules/consentAdmin/templates/consentadmin.php @@ -51,22 +51,22 @@ function setConsentText(consentStatus, show_spid) { -

t('consentadmin_header') ?>

+

t('{consentAdmin:consentadmin:consentadmin_header}') ?>

- t('consentadmin_description1') ?>

+ t('{consentAdmin:consentadmin:consentadmin_description1}') ?>

- - + + data['spList']; $show_spid = 0; - $show_text = $this->t('show'); - $hide_text = $this->t('hide'); - $attributes_text = $this->t('attributes_text'); + $show_text = $this->t('{consentAdmin:consentadmin:show}'); + $hide_text = $this->t('{consentAdmin:consentadmin:hide}'); + $attributes_text = $this->t('{consentAdmin:consentadmin:attributes_text}'); foreach ($spList AS $spName => $spValues) { $this->getTranslator()->includeInlineTranslation('spname', $spValues['name']); $this->getTranslator()->includeInlineTranslation('spdescription', $spValues['description']); @@ -89,7 +89,7 @@ function setConsentText(consentStatus, show_spid) { TRSTART; $attributes = $spValues['attributes_by_sp']; if ($this->data['showDescription']) { - echo '

' . $this->t('consentadmin_purpose') . ' ' . $spDescription . '

'; + echo '

' . $this->t('{consentAdmin:consentadmin:consentadmin_purpose}') . ' ' . $spDescription . '

'; } echo "\n
t('service_provider_header') ?>t('status_header') ?>t('{consentAdmin:consentadmin:service_provider_header}') ?>t('{consentAdmin:consentadmin:status_header}') ?>

- t('consentadmin_description2') ?>

+ t('{consentAdmin:consentadmin:consentadmin_description2}') ?>

Logout