Skip to content
Snippets Groups Projects
Commit 674028a7 authored by Hanne Moa's avatar Hanne Moa
Browse files

Add translations to the correct template

parent 235b6d85
No related branches found
No related tags found
No related merge requests found
...@@ -187,7 +187,6 @@ if ($action !== null && $sp_entityid !== null) { ...@@ -187,7 +187,6 @@ if ($action !== null && $sp_entityid !== null) {
} }
// init template to enable translation of status messages // init template to enable translation of status messages
$template = new SimpleSAML_XHTML_Template($config, 'consentAdmin:consentadminajax.php', 'consentAdmin:consentadmin'); $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->data['res'] = $res;
$template->show(); $template->show();
exit; exit;
...@@ -207,6 +206,7 @@ $template_sp_content = array(); ...@@ -207,6 +206,7 @@ $template_sp_content = array();
// Init template // Init template
$template = new SimpleSAML_XHTML_Template($config, 'consentAdmin:consentadmin.php', 'consentAdmin:consentadmin'); $template = new SimpleSAML_XHTML_Template($config, 'consentAdmin:consentadmin.php', 'consentAdmin:consentadmin');
$translator = $template->getTranslator(); $translator = $template->getTranslator();
$translator->includeLanguageFile('attributes.php'); // attribute listings translated by this dictionary
$sp_empty_name = $translator->getTag('sp_empty_name'); $sp_empty_name = $translator->getTag('sp_empty_name');
$sp_empty_description = $translator->getTag('sp_empty_description'); $sp_empty_description = $translator->getTag('sp_empty_description');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment