From 81eba94c316cd5c8167ca1357dfac22ab872e523 Mon Sep 17 00:00:00 2001 From: Guillaume Rousse <guillaume.rousse@renater.fr> Date: Fri, 7 Dec 2018 17:12:58 +0100 Subject: [PATCH] localize group label and link message --- templates/web/edugain/select_sp.tt2.html | 4 ++-- templates/web/renater/select_sp.tt2.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/web/edugain/select_sp.tt2.html b/templates/web/edugain/select_sp.tt2.html index 49a16a3..ef07dff 100644 --- a/templates/web/edugain/select_sp.tt2.html +++ b/templates/web/edugain/select_sp.tt2.html @@ -17,7 +17,7 @@ [% FOREACH group IN groups() %] <fieldset> - <legend>[% group.label %]</legend> + <legend>[% lh.localize(group.label) %]</legend> [% SWITCH group.type %] [% CASE 'list' %] <select id="[% group.id %]" name="[% group.id %]"> @@ -27,7 +27,7 @@ [% END %] </select> [% CASE 'link' %] - <a class="button" href="[% group.url %]">[% group.label %]</a> + <a class="button" href="[% group.url %]">[% lh.localize(group.message) %]</a> [% END %] </fieldset> [% END %] diff --git a/templates/web/renater/select_sp.tt2.html b/templates/web/renater/select_sp.tt2.html index b1226ed..2ea753a 100644 --- a/templates/web/renater/select_sp.tt2.html +++ b/templates/web/renater/select_sp.tt2.html @@ -17,7 +17,7 @@ [% FOREACH group IN groups %] <fieldset> - <legend>[% group.label %]</legend> + <legend>[% lh.maketext(group.label) %]</legend> [% SWITCH group.type %] [% CASE 'list' %] <select id="[% group.id %]" name="[% group.id %]"> @@ -27,7 +27,7 @@ [% END %] </select> [% CASE 'link' %] - <a class="button" href="[% group.url %]">[% group.message %]</a> + <a class="button" href="[% group.url %]">[% lh.maketext(group.message) %]</a> [% END %] </fieldset> [% END %] -- GitLab