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

Remove concat: translated tab-title

For #455. Note that if translation tags were domain-free strings, the
mapping from tab to tabtitle would be redundant. It would still be
necessary to mark the strings as noop however.
parent 580be5fe
No related branches found
No related tags found
No related merge requests found
......@@ -248,6 +248,21 @@ class sspmod_discopower_PowerIdPDisco extends SimpleSAML_XHTML_IdPDisco
$preferredIdP = $this->getRecommendedIdP();
$t = new SimpleSAML_XHTML_Template($this->config, 'discopower:disco.tpl.php', 'disco');
$discoPowerTabs = array(
'denmark' => $t->noop('{discopower:tabs:denmark}'),
'edugain' => $t->noop('{discopower:tabs:edugain}'),
'finland' => $t->noop('{discopower:tabs:finland}'),
'greece' => $t->noop('{discopower:tabs:greece}'),
'iceland' => $t->noop('{discopower:tabs:iceland}'),
'incommon' => $t->noop('{discopower:tabs:incommon}'),
'kalmar' => $t->noop('{discopower:tabs:kalmar}'),
'misc' => $t->noop('{discopower:tabs:misc}'),
'norway' => $t->noop('{discopower:tabs:norway}'),
'sweden' => $t->noop('{discopower:tabs:sweden}'),
'switzerland' => $t->noop('{discopower:tabs:switzerland}'),
'ukacessfederation' => $t->noop('{discopower:tabs:ukacessfederation}'),
);
$t->data['tabNames'] = $discoPowerTabs;
$t->data['idplist'] = $idpList;
$t->data['preferredidp'] = $preferredIdP;
$t->data['return'] = $this->returnURL;
......
......@@ -136,7 +136,7 @@ if (!empty($faventry)) {
$tabs = array_keys( $this->data['idplist']);
foreach ($tabs AS $tab) {
if(!empty($this->data['idplist'][$tab])) {
echo '<li><a href="#' . $tab . '"><span>' . $this->t('{discopower:tabs:' . $tab . '}') . '</span></a></li> ';
echo '<li><a href="#' . $tab . '"><span>' . $this->t($this->data['tabNames'][$tab]) . '</span></a></li> ';
}
}
......
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