diff --git a/modules/consentAdmin/templates/consentadmin.php b/modules/consentAdmin/templates/consentadmin.php index 015c44e2807ba71736fbcbcb7d59ee9b6b3a051a..7baec47f916e59a6586ec8d7fcfdcda4f2beb4d2 100644 --- a/modules/consentAdmin/templates/consentadmin.php +++ b/modules/consentAdmin/templates/consentadmin.php @@ -1,9 +1,5 @@ <?php $this->includeAtTemplateBase('includes/header.php'); ?> <!-- default theme --> -<?php -$this->getTranslator()->includeLanguageFile('attributes.php'); // attribute listings translated by this dictionary - -?> <script> function setConsentText(consentStatus, show_spid) { diff --git a/modules/consentAdmin/www/consentAdmin.php b/modules/consentAdmin/www/consentAdmin.php index 3982853ffe22abcb438c37dd9157816454b7b202..cf79cbfbbf9b33cefbed05074e04a4d791e27fb2 100644 --- a/modules/consentAdmin/www/consentAdmin.php +++ b/modules/consentAdmin/www/consentAdmin.php @@ -187,6 +187,7 @@ if ($action !== null && $sp_entityid !== null) { } // init template to enable translation of status messages $template = new SimpleSAML_XHTML_Template($config, 'consentAdmin:consentadminajax.php', 'consentAdmin:consentadmin'); + $template->getTranslator()->includeLanguageFile('attributes.php'); // attribute listings translated by this dictionary $template->data['res'] = $res; $template->show(); exit;