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

Merge pull request #1084 from ghalse/enhancement/discopower-transalations

Handle untranslated tabs more gracefully in discopower-module
parents 8b3fa6f2 55d2aa3e
No related branches found
No related tags found
No related merge requests found
......@@ -281,6 +281,9 @@ class PowerIdPDisco extends \SimpleSAML\XHTML\IdPDisco
$t->data['rememberchecked'] = $this->config->getBoolean('idpdisco.rememberchecked', false);
$t->data['jquery'] = ['core' => true, 'ui' => true];
foreach(array_keys($idpList) as $tab) {
if ($t->getTag('{discopower:tabs:' . $tab . '}') === null) {
$t->includeInlineTranslation('{discopower:tabs:'. $tab. '}', $tab);
}
$t->data['tabNames'][$tab] = \SimpleSAML\Locale\Translate::noop('{discopower:tabs:' . $tab . '}');
}
$t->show();
......
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