Skip to content
Snippets Groups Projects
Commit 531808ef authored by Guy Halse's avatar Guy Halse
Browse files

Remove hardcoded English string from discopower module

parent 77fb6bc3
No related branches found
No related tags found
Loading
...@@ -37,5 +37,8 @@ ...@@ -37,5 +37,8 @@
}, },
"ukacessfederation": { "ukacessfederation": {
"en": "UK Access Federation" "en": "UK Access Federation"
},
"incremental_search": {
"en": "Incremental search..."
} }
} }
...@@ -73,8 +73,8 @@ if (!empty($this->data['faventry'])) { ...@@ -73,8 +73,8 @@ if (!empty($this->data['faventry'])) {
} }
?> ?>
<div id="tabdiv"> <div id="tabdiv">
<ul class="tabset_tabs"> <ul class="tabset_tabs">
<?php <?php
$tabs = array_keys($this->data['idplist']); $tabs = array_keys($this->data['idplist']);
$i = 1; $i = 1;
...@@ -91,7 +91,7 @@ if (!empty($this->data['faventry'])) { ...@@ -91,7 +91,7 @@ if (!empty($this->data['faventry'])) {
} }
} }
?> ?>
</ul> </ul>
<?php <?php
...@@ -104,7 +104,7 @@ foreach ($this->data['idplist'] as $tab => $slist) { ...@@ -104,7 +104,7 @@ foreach ($this->data['idplist'] as $tab => $slist) {
} }
if (!empty($slist)) { if (!empty($slist)) {
echo '<div class="inlinesearch">'; echo '<div class="inlinesearch">';
echo '<p>Incremental search...</p>'; echo '<p>'.htmlspecialchars($this->t('{discopower:tabs:incremental_search}')).'</p>';
echo '<form id="idpselectform" action="?" method="get">'; echo '<form id="idpselectform" action="?" method="get">';
echo '<input class="inlinesearch" type="text" value="" name="query_'.$tab.'" id="query_'.$tab.'" /></form>'; echo '<input class="inlinesearch" type="text" value="" name="query_'.$tab.'" id="query_'.$tab.'" /></form>';
echo '</div>'; echo '</div>';
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
<input type="hidden" name="return" value="{{ return|escape('html') }}" /> <input type="hidden" name="return" value="{{ return|escape('html') }}" />
<input type="hidden" name="returnIDParam" value="{{ returnIDParam|escape('html') }}" /> <input type="hidden" name="returnIDParam" value="{{ returnIDParam|escape('html') }}" />
<input type="hidden" name="idpentityid" value="{{ faventry.entityid|escape('html') }}" /> <input type="hidden" name="idpentityid" value="{{ faventry.entityid|escape('html') }}" />
<input type="submit" name="formsubmit" id="favouritesubmit" value="{{ '{disco:login_at}'|trans }} {{ faventry.translated|escape('html') }}" /> <input type="submit" name="formsubmit" id="favouritesubmit" value="{{ '{disco:login_at}'|trans }} {{ faventry.translated|escape('html') }}" />
</form> </form>
</div> </div>
{% endif %} {% endif %}
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
{% if idps is not empty %} {% if idps is not empty %}
<div id="{{ tab }}" class="tabset_content{% if loop.first %} current{% endif %}"> <div id="{{ tab }}" class="tabset_content{% if loop.first %} current{% endif %}">
<div class="inlinesearch"> <div class="inlinesearch">
<p>Incremental search...</p> <p>{{ '{discopower:tabs:incremental_search}'|trans }}</p>
<form id="idpselectform" method="get"> <form id="idpselectform" method="get">
<input class="inlinesearch" type="text" value="" name="query_{{ tab }}" id="query_{{ tab }}" /> <input class="inlinesearch" type="text" value="" name="query_{{ tab }}" id="query_{{ tab }}" />
</form> </form>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment