Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions dictionaries/selectidp.definition.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
"fr": "Choisissez un compte",
"ko": "계정 선택"
},
"future": {
"en": "Planned for a future release.",
"es": "Planeado para una versión futura.",
"fr": "Prévu pour une version future.",
"ko": "향후 릴리스 예정입니다."
"enabled": {
"en": "Login with your {idpName} account",
"es": "Inicie sesión con su cuenta de {idpName}",
"fr": "Connectez-vous avec votre compte {idpName}",
"ko": "{idpName} 계정으로 로그인하십시오."
},
"logo": {
"en": "{idpName} logo",
"es": "Logotipo de {idpName}",
"fr": "Logo {idpName}",
"ko": "{idpName} 로고"
"disabled": {
"en": "{idpName} coming soon",
"es": "{IdpName} próximamente",
"fr": "{IdpName} à venir",
"ko": "{idpName} 곧 제공됨"
}
}
8 changes: 5 additions & 3 deletions themes/material/default/selectidp-links.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ function setSelectedIdp(id) {
foreach ($enabledIdps as $idp) {
$name = htmlspecialchars($this->t($idp['name']));
$idpId = htmlspecialchars($idp['entityid']);
$hoverText = $this->t('{material:selectidp:enabled}', ['{idpName}' => $name]);
?>
<div class="mdl-card mdl-shadow--8dp row-aware"
title="<?= $this->t('{material:selectidp:logo}', ['{idpName}' => $name]) ?>">
<div class="mdl-card mdl-shadow--8dp row-aware" title="<?= $hoverText ?>">
<div class="mdl-card__media white-bg fixed-height">
<button class="mdl-button fill-parent" value="<?= $name ?>"
onclick="setSelectedIdp('<?= $idpId ?>')">
Expand All @@ -73,9 +73,11 @@ function setSelectedIdp(id) {

<?php
foreach ($disabledIdps as $idp) {
$name = htmlspecialchars($this->t($idp['name']));
$hoverText = $this->t('{material:selectidp:disabled}', ['{idpName}' => $name]);
?>
<div class="mdl-card mdl-shadow--2dp disabled row-aware"
title="<?= $this->t('{material:selectidp:future}') ?>">
title="<?= $hoverText ?>">
<div class="mdl-card__media white-bg fixed-height" layout-children="row"
child-spacing="center">
<img class="scale-to-parent"
Expand Down