Skip to content

Commit

Permalink
convert "selectidp-links" template to twig
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed May 31, 2024
1 parent 32b168e commit 15781df
Show file tree
Hide file tree
Showing 9 changed files with 255 additions and 172 deletions.
5 changes: 3 additions & 2 deletions features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function afterStep(AfterStepScope $scope)
$this->showPageDetails();
}
}

protected function showPageDetails()
{
echo '[' . $this->session->getStatusCode() . '] ';
Expand All @@ -60,7 +60,7 @@ public function iGoToTheHubsDiscoveryPage()
{
$this->visit(self::HUB_DISCO_URL);
}

/**
* @Then I should see our material theme
*/
Expand Down Expand Up @@ -133,6 +133,7 @@ public function iShouldSeeAPage($title)
*/
public function iClickOnTheTile($idpName)
{
$this->showPageDetails();
$page = $this->session->getPage();
$idpTileTitle = sprintf('Login with your %s identity account', $idpName);
$idpTile = $page->find(
Expand Down
18 changes: 18 additions & 0 deletions modules/material/locales/en/LC_MESSAGES/material.po
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,21 @@ msgstr "Change"

msgid "{footer:copyright}"
msgstr "Unauthorized use of this site is prohibited and may be subjected to civil and criminal prosecution."

msgid "{selectidp-links:title}"
msgstr "Choose an identity account"

msgid "{selectidp-links:header}"
msgstr "Choose an identity account"

msgid "{selectidp-links:header-for-sp}"
msgstr "Choose an identity account to continue to {spName}"

msgid "{selectidp-links:enabled}"
msgstr "Login with your {idpName} identity account"

msgid "{selectidp-links:disabled}"
msgstr "{idpName} coming soon"

msgid "{selectidp-links:help}"
msgstr "Help"
18 changes: 18 additions & 0 deletions modules/material/locales/es/LC_MESSAGES/material.po
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,21 @@ msgstr "Cambiar"

msgid "{footer:copyright}"
msgstr "El uso no autorizado de este sitio está prohibido y puede ser sometido a procesamiento civil y penal."

msgid "{selectidp-links:title}"
msgstr "Elige una cuenta de identidad"

msgid "{selectidp-links:header}"
msgstr "Elige una cuenta de identidad"

msgid "{selectidp-links:header-for-sp}"
msgstr "Elija una cuenta de identidad para continuar en {spName}"

msgid "{selectidp-links:enabled}"
msgstr "Inicie sesión con su cuenta de identidad {idpName}"

msgid "{selectidp-links:disabled}"
msgstr "{IdpName} próximamente"

msgid "{selectidp-links:help}"
msgstr "Ayuda"
18 changes: 18 additions & 0 deletions modules/material/locales/fr/LC_MESSAGES/material.po
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,21 @@ msgstr "Changer"

msgid "{footer:copyright}"
msgstr "L'utilisation non autorisée de ce site est interdite et peut faire l'objet de poursuites civiles et pénales."

msgid "{selectidp-links:title}"
msgstr "Choisissez un compte d'identité"

msgid "{selectidp-links:header}"
msgstr "Choisissez un compte d'identité"

msgid "{selectidp-links:header-for-sp}"
msgstr "Choisissez un compte d'identité pour continuer vers {spName}"

msgid "{selectidp-links:enabled}"
msgstr "Connectez-vous avec votre compte d'identité {idpName}"

msgid "{selectidp-links:disabled}"
msgstr "{IdpName} à venir"

msgid "{selectidp-links:help}"
msgstr "Aidez-moi"
18 changes: 18 additions & 0 deletions modules/material/locales/ko/LC_MESSAGES/material.po
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,21 @@ msgstr "바꾸다"

msgid "{footer:copyright}"
msgstr "이 사이트의 무단 사용은 금지되어 있으며 민사 및 형사 고발의 대상이 될 수 있습니다."

msgid "{selectidp-links:title}"
msgstr "ID 계정 선택"

msgid "{selectidp-links:header}"
msgstr "ID 계정 선택"

msgid "{selectidp-links:header-for-sp}"
msgstr "{spName}을 계속 진행하려면 신원 계정을 선택하십시오."

msgid "{selectidp-links:enabled}"
msgstr "{idpName} 신원 계정으로 로그인하십시오."

msgid "{selectidp-links:disabled}"
msgstr "{idpName} 곧 제공됨"

msgid "{selectidp-links:help}"
msgstr "도움"
6 changes: 6 additions & 0 deletions modules/material/themes/material/default/announcement.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% if not empty announcement %}
<div class="mdl-typography--subhead mdl-typography--text-center alert margin" layout-children="column">
{{ announcement }}
</div>
{% endif %}

168 changes: 0 additions & 168 deletions modules/material/themes/material/default/selectidp-links.php

This file was deleted.

Loading

0 comments on commit 15781df

Please sign in to comment.