This repository has been archived by the owner on Sep 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from BaranekD/v1.0
Whole module now uses a dictionary
- Loading branch information
Showing
5 changed files
with
51 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,41 @@ | ||
{ | ||
"error_report_email_message": { | ||
"en": "Please provide your mail so that we can contact you for further information or let you know the issue was fixed." | ||
}, | ||
"error_number": { | ||
"en": "Error number: " | ||
}, | ||
"more": { | ||
"en": "more " | ||
}, | ||
"error_id": { | ||
"en": "Error ID" | ||
}, | ||
"note": { | ||
"en": "Note:" | ||
}, | ||
"browser_not_support_javascript": { | ||
"en": " Since your browser does not support JavaScript, you must press the button below once to proceed." | ||
}, | ||
"submit": { | ||
"en": "Submit" | ||
}, | ||
"previous_selection": { | ||
"en": "your previous selection" | ||
}, | ||
"cannot_find_institution": { | ||
"en": "Still can't find your institution? Contact us at " | ||
}, | ||
"cannot_find_institution_extended": { | ||
"en": "Can't find your institution? Select it in extended list and help us " | ||
}, | ||
"add_institution": { | ||
"en": "add your institution" | ||
}, | ||
"or": { | ||
"en": "or" | ||
}, | ||
"post": { | ||
"en": "POST data" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,13 +25,13 @@ | |
|
||
if (!empty($this->getPreferredIdp())) { | ||
|
||
echo '<p class="descriptionp">your previous selection</p>'; | ||
echo '<p class="descriptionp">' . $this->t('{elixir:elixir:previous_selection}') . '?></p>'; | ||
echo '<div class="metalist list-group">'; | ||
echo showEntry($this, $this->getPreferredIdp(), true); | ||
echo '</div>'; | ||
|
||
|
||
echo getOr(); | ||
echo getOr($this); | ||
} | ||
|
||
|
||
|
@@ -51,7 +51,7 @@ | |
|
||
|
||
|
||
echo getOr(); | ||
echo getOr($this); | ||
|
||
|
||
|
||
|
@@ -80,9 +80,9 @@ | |
|
||
echo '<div class="no-idp-found alert alert-info">'; | ||
if ($this->isOriginalSpNonFilteringIdPs()) { | ||
echo 'Still can\'t find your institution? Contact us at <a href="mailto:[email protected]?subject=Request%20for%20adding%20new%20IdP">[email protected]</a>'; | ||
echo $this->t('{elixit:elixir:cannot_find_institution}') . '<a href="mailto:[email protected]?subject=Request%20for%20adding%20new%20IdP">[email protected]</a>'; | ||
} else { | ||
echo 'Can\'t find your institution? Select it in extended list and help us <a class="btn btn-primary" href="https://perun.elixir-czech.cz/add-institution/">add your institution</a>'; | ||
echo $this->t('{elixir:elixir:cannot_find_institution_extended}') . '<a class="btn btn-primary" href="https://perun.elixir-czech.cz/add-institution/">' . $this->t('{elixir:elixir:add_institution}') . '</a>'; | ||
} | ||
echo '</div>'; | ||
|
||
|
@@ -174,9 +174,9 @@ function showIcon($metadata) { | |
} | ||
|
||
|
||
function getOr() { | ||
function getOr($t) { | ||
$or = '<div class="hrline">'; | ||
$or .= ' <span>or</span>'; | ||
$or .= ' <span>' . $t->t('{elixir:elixir:or}') . '</span>'; | ||
$or .= '</div>'; | ||
return $or; | ||
} | ||
|