Skip to content
Snippets Groups Projects
Unverified Commit 38396077 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst Committed by GitHub
Browse files

Merge pull request #801 from ghalse/patch/metarefreshtranslation

Fix missing translation for metarefresh
parents 4633e7e2 2ca7fd6e
No related branches found
No related tags found
No related merge requests found
{
"frontpage_link": {
"en": "Metarefresh: fetch metadata"
},
"metarefresh_header": {
"en": "Metarefresh fetch"
},
"no_output": {
"en": "No output from metarefresh."
}
}
{
"frontpage_link": {
},
"metarefresh_header": {
},
"no_output": {
}
}
......@@ -10,7 +10,7 @@ function metarefresh_hook_frontpage(&$links) {
$links['federation'][] = array(
'href' => SimpleSAML\Module::getModuleURL('metarefresh/fetch.php'),
'text' => array('en' => 'Metarefresh: fetch metadata'),
'text' => '{metarefresh:metarefresh:frontpage_link}',
);
}
<?php
$this->data['header'] = $this->t('{aggregator:aggregator:aggregator_header}');
$this->data['header'] = $this->t('{metarefresh:metarefresh:metarefresh_header}');
$this->includeAtTemplateBase('includes/header.php');
echo('<h1>Metarefresh fetch</h1>');
echo('<h1>'.$this->data['header'].'</h1>');
if (!empty($this->data['logentries'])) {
echo '<pre style="border: 1px solid #aaa; padding: .5em; overflow: scroll">';
foreach($this->data['logentries'] AS $l) {
echo $l . "\n";
echo $l . "\n";
}
echo '</pre>';
} else {
echo 'No output from metarefresh.';
echo $this->t('{metarefresh:metarefresh:no_output}');
}
......
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