Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit 844f9a6

Browse files
committed
Added support for Czech language
* Created dictionary perun with all texts in Czech and English * Added Czech translate for attributes * All of pages now use dictionary instead static text
1 parent 96fa759 commit 844f9a6

File tree

6 files changed

+63
-18
lines changed

6 files changed

+63
-18
lines changed
Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,30 @@
11
{
2-
"consent_privacypolicy" : {
3-
"en": "Privacy policy"
4-
},
52
"forwardedscopedaffiliation": {
6-
"en": "Home organization affiliation"
3+
"en": "Home organization affiliation",
4+
"cs": "Vztah k domovské(ým) organizaci(cím)"
75
},
86
"edupersonscopedaffiliation": {
9-
"en": "Community affiliation"
7+
"en": "Community affiliation",
8+
"cs": "Vztah k AAI"
109
},
1110
"loa":{
12-
"en": "Level of Assurance"
11+
"en": "Level of Assurance",
12+
"cs": "Úroveň jistoty"
1313
},
1414
"edupersonuniqueid":{
15-
"en": "Person’s unique Id"
15+
"en": "Person’s unique Id",
16+
"cs": "Unikátní identifikátor osoby"
1617
},
1718
"edupersonprincipalname":{
18-
"en": "Person’s principal name"
19+
"en": "Person’s principal name",
20+
"cs": "Identifikátor osoby v organizaci"
1921
},
2022
"forwardedpersonprincipalnames":{
21-
"en": "Person’s principal names from home organization(s)"
23+
"en": "Person’s principal names from home organization(s)",
24+
"cs": "Identifikátor(y) osoby z domovské(ých) organizace(cí)"
25+
},
26+
"displayname": {
27+
"en": "displayName",
28+
"cs": "Jméno uživatele"
2229
}
2330
}

dictionaries/perun.dictionary.json

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"choose-group-tpl_header": {
3+
"en": "Select group which fits you most",
4+
"cs": "Vyberte si odpovídající skupinu"
5+
},
6+
"choose-group-tpl_text": {
7+
"en": "It will give you access to the requested service.",
8+
"cs": "Získáte tak přístup k požadované službě."
9+
},
10+
"disco-tpl_previous-selection": {
11+
"en": "your previous selection",
12+
"cs": "vaše předchozí volba"
13+
},
14+
"disco-tpl_institutional-account": {
15+
"en": "your institutional account",
16+
"cs": "váš univerzitní účet"
17+
},
18+
"dico-tpl_or": {
19+
"en": "or",
20+
"cs": "nebo"
21+
},
22+
"fource-aup-tpl_aup": {
23+
"en": "Acceptable Usage Policy",
24+
"cs": "Podmíny užití"
25+
},
26+
"fource-aup-tpl_agree": {
27+
"en": "I agree with the Acceptable Usage Policy",
28+
"cs": "Souhlasím s podmínkami užití"
29+
},
30+
"warning-test-sp-tpl_text": {
31+
"en": "You are about to access service, which is in testing environment.",
32+
"cs": "Přistupujete ke službě, která je v testovacím režimu. "
33+
},
34+
"continue": {
35+
"en": "Continue",
36+
"cs": "Pokračovat"
37+
}
38+
}

templates/choose-group-tpl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
$vo = $this->data['vo'];
1212
$groups = $this->data['groups'];
1313

14-
$this->data['header'] = 'Select group which fits you most';
14+
$this->data['header'] = $this->t('{perun:perun:choose-group-tpl_header}');
1515

1616
$this->includeAtTemplateBase('includes/header.php');
1717

18-
echo 'It will give you access to the requested service.';
18+
echo $this->t('{perun:perun:choose-group-tpl_text}');
1919

2020
echo '<div class="list-group">';
2121
foreach ($groups as $group) {

templates/disco-tpl.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313

1414
if (!empty($this->getPreferredIdp())) {
1515

16-
echo'<h4>your previous selection</h4>' .
16+
echo'<h4>' . $this->t('{perun:perun:disco-tpl_previous-selection}') . '</h4>' .
1717
'<div class="metalist list-group">' .
1818
buildEntry($this, $this->getPreferredIdp(), true) .
1919
'</div>' .
20-
'<p style="text-align: center"> - or - </p>';
20+
'<p style="text-align: center"> - ' . $this->t('{perun:perun:disco-tpl_or}') . ' - </p>';
2121
}
2222

2323

24-
echo '<h4>your institutional account</h4>';
24+
echo '<h4>' . $this->t('{perun:perun:disco-tpl_institutional-account}') . '</h4>';
2525

2626

2727
foreach ($this->getTaggedIdps() AS $tag => $idplist) {

templates/force-aup-tpl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
<input type="hidden" name="StateId" value="<?php echo $_REQUEST['StateId'] ?>" >
2323

2424
<div class="form-group">
25-
<input type="submit" value="I agree with the Acceptable Usage Policy" class="btn btn-lg btn-primary btn-block">
25+
<input type="submit" value="<?php echo $this->t('{perun:perun:fource-aup-tpl_agree}'); ?>" class="btn btn-lg btn-primary btn-block">
2626
</div>
2727
<p>
28-
See the <a href="<?php echo $aupUrl; ?>" target="_blank">Acceptable Usage Policy <i class="glyphicon glyphicon-new-window"></i></a>.
28+
See the <a href="<?php echo $aupUrl; ?>" target="_blank"> <?php echo $this->t('{perun:perun:fource-aup-tpl_aup}'); ?> <i class="glyphicon glyphicon-new-window"></i></a>.
2929
</p>
3030
</form>
3131

templates/warning-test-sp-tpl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
<form method="post" action="<?php echo SimpleSAML_Module::getModuleURL('perun/warning_test_sp_continue.php'); ?>" >
1818

1919
<input type="hidden" name="StateId" value="<?php echo $_REQUEST['StateId'] ?>" >
20-
<h3>You are about to access service, which is in testing environment.</h3>
20+
<h3> <?php echo $this->t('{perun:perun:warning-test-sp-tpl_text}')?> </h3>
2121
</hr>
2222
</br>
2323

2424
<div class="form-group">
25-
<input type="submit" value="Continue" class="btn btn-lg btn-primary btn-block">
25+
<input type="submit" value="<?php echo $this->t('{perun:perun:continue}')?>" class="btn btn-lg btn-primary btn-block">
2626
</div>
2727
</form>
2828

0 commit comments

Comments
 (0)