diff --git a/modules/discopower/lib/PowerIdPDisco.php b/modules/discopower/lib/PowerIdPDisco.php index a5b237551282abb08916cb34f50a26c68f6f993c..7a1d8b59271d340bea862c8b9a1975fc4005edc5 100644 --- a/modules/discopower/lib/PowerIdPDisco.php +++ b/modules/discopower/lib/PowerIdPDisco.php @@ -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; diff --git a/modules/discopower/templates/disco.tpl.php b/modules/discopower/templates/disco.tpl.php index d8059babd9f86c70eba2e0efed187c2a75a5d4c8..2e9afd6819e689b4f427d35d1c9efcbb93c9217c 100644 --- a/modules/discopower/templates/disco.tpl.php +++ b/modules/discopower/templates/disco.tpl.php @@ -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> '; } }