Skip to content

Commit 64ae9be

Browse files
committed
Update userid template
1 parent eb76a9f commit 64ae9be

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

dictionaries/userid_error.definition.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"en": "Sorry, we were not able to log you in"
44
},
55
"friendly_description": {
6-
"en": "<strong>What is the problem?</strong> %IDP% does not return a persistent identifier to help us uniquely identify you."
6+
"en": "<strong>What is the problem?</strong> %IDPNAME% does not return a persistent identifier to help us uniquely identify you."
77
},
88
"resolution_description": {
99
"en": "<strong>What can you do?</strong> At the moment, the only way to log in is to <a href=\"%RETRY_URL%\">use a different account</a>. For future use, you may ask your institution administrator to release the required information, by sending them a print screen of this error, or asking them to contact our support at <a href=\"mailto:support@example.org\">support@example.org</a>."

themes/ssp/userid/error.tpl.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@
99

1010
$this->includeAtTemplateBase('includes/header.php');
1111
$retryUrl = $this->data['parameters']['%BASEDIR%'] . 'saml2/idp/initSLO.php?RelayState=' . urlencode($this->data['parameters']['%RESTARTURL%']);
12+
$translationParams = [
13+
'%IDPNAME%' => $this->data['parameters']['%IDPNAME%'],
14+
];
1215
?>
1316
<div class="row">
1417
<div class="col-sm-12">
1518
<?php
1619
$friendly_title = '<h2>' . (strpos($this->t('{themevanilla:userid_error:friendly_title}'), 'not translated') === FALSE ? $this->t('{themevanilla:userid_error:friendly_title}') : '') . '</h2>';
1720
echo $friendly_title;
1821
?>
19-
<p><?php echo $this->t('{themevanilla:userid_error:friendly_description}', $this->data['parameters']); ?></p>
22+
<p><?php echo $this->t('{themevanilla:userid_error:friendly_description}', $translationParams); ?></p>
2023
<p><?php echo $this->t('{themevanilla:userid_error:resolution_description}', array('%RETRY_URL%' => $retryUrl)); ?></p>
2124
</div>
2225
</div>

0 commit comments

Comments
 (0)