From 815a59dd499e43a5cd6ad862b400394fc3e8bffd Mon Sep 17 00:00:00 2001
From: Guillaume Rousse <guillaume.rousse@renater.fr>
Date: Tue, 1 Feb 2022 10:58:33 +0100
Subject: [PATCH] fix variable name

---
 templates/web/edugain/complete_challenge.html.tt2 |  2 +-
 templates/web/edugain/create_accounts.html.tt2    |  2 +-
 templates/web/edugain/index.html.tt2              | 10 +++++-----
 templates/web/renater/complete_challenge.html.tt2 |  2 +-
 templates/web/renater/create_accounts.html.tt2    |  2 +-
 templates/web/renater/index.html.tt2              | 10 +++++-----
 6 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/templates/web/edugain/complete_challenge.html.tt2 b/templates/web/edugain/complete_challenge.html.tt2
index a99367c..e03924b 100644
--- a/templates/web/edugain/complete_challenge.html.tt2
+++ b/templates/web/edugain/complete_challenge.html.tt2
@@ -30,7 +30,7 @@
     [% PROCESS $template scope=account.scope() id=account.id() | trim %]
                 <li>
                     <input type="checkbox" id="[% profile %]" name="profiles" value="[% profile %]" checked/>
-                    <label for="[% profile %]">[% profile %] <span class="fa fa-question-circle" title="[% description.${lh.language_tag()} %]"></span></label>
+                    <label for="[% profile %]">[% profile %] <span class="fa fa-question-circle" title="[% description.${l10n.language_tag()} %]"></span></label>
                 </li>
 [% END %]
             </ul>
diff --git a/templates/web/edugain/create_accounts.html.tt2 b/templates/web/edugain/create_accounts.html.tt2
index d7d8877..45d3333 100644
--- a/templates/web/edugain/create_accounts.html.tt2
+++ b/templates/web/edugain/create_accounts.html.tt2
@@ -22,7 +22,7 @@
     <div class="account small-12 medium-6 large-4 columns">
         <h3>[% c.loc("Account profile: [_1]", account.profile()) %]</h3>
 
-        <div class="description">[% description.${lh.language_tag()} %].</div>
+        <div class="description">[% description.${l10n.language_tag()} %].</div>
 
         <table>
             <tr>
diff --git a/templates/web/edugain/index.html.tt2 b/templates/web/edugain/index.html.tt2
index 4c3c0da..609a17e 100644
--- a/templates/web/edugain/index.html.tt2
+++ b/templates/web/edugain/index.html.tt2
@@ -1,5 +1,5 @@
 <!doctype html>
-<html lang="[% lh.language_tag() %]">
+<html lang="[% l10n.language_tag() %]">
 
     <head>
         <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
@@ -45,17 +45,17 @@
                             <span>Language</span>
                             <ul class="et-submenu">
                                 <li class="et-submenu-option">
-                                    <a [% IF lh.language_tag() == "en" %]class="nocursor"[% ELSE %]href="[% c.url_with().query(lang => 'en') %]"[% END %] data-lang="en" title="English">
+                                    <a [% IF l10n.language_tag() == "en" %]class="nocursor"[% ELSE %]href="[% c.url_with().query(lang => 'en') %]"[% END %] data-lang="en" title="English">
                                         <img src="images/en.png" />
                                         <label>English</label>
-                                        [% IF lh.language_tag() == "en" %]<span class="fa fa-check"></span>[% END %]
+                                        [% IF l10n.language_tag() == "en" %]<span class="fa fa-check"></span>[% END %]
                                     </a>
                                 </li>
                                 <li class="et-submenu-option">
-                                    <a [% IF lh.language_tag() == "fr" %]class="nocursor"[% ELSE %]href="[% c.url_with().query(lang => 'fr') %]"[% END %] data-lang="fr" title="Français">
+                                    <a [% IF l10n.language_tag() == "fr" %]class="nocursor"[% ELSE %]href="[% c.url_with().query(lang => 'fr') %]"[% END %] data-lang="fr" title="Français">
                                         <img src="images/fr.png" />
                                         <label>Français</label>
-                                        [% IF lh.language_tag() == "fr" %]<span class="fa fa-check"></span>[% END %]
+                                        [% IF l10n.language_tag() == "fr" %]<span class="fa fa-check"></span>[% END %]
                                     </a>
                                 </li>
                             </ul>
diff --git a/templates/web/renater/complete_challenge.html.tt2 b/templates/web/renater/complete_challenge.html.tt2
index 9d598e9..f7b5ea3 100644
--- a/templates/web/renater/complete_challenge.html.tt2
+++ b/templates/web/renater/complete_challenge.html.tt2
@@ -30,7 +30,7 @@
     [% PROCESS $template scope=account.scope() id=account.id() | trim %]
                 <li>
                     <input type="checkbox" id="[% profile %]" name="profiles" value="[% profile %]" checked/>
-                    <label for="[% profile %]">[% profile %] <span class="fa fa-question-circle" title="[% description.${lh.language_tag()} %]"></span></label>
+                    <label for="[% profile %]">[% profile %] <span class="fa fa-question-circle" title="[% description.${l10n.language_tag()} %]"></span></label>
                 </li>
 [% END %]
             </ul>
diff --git a/templates/web/renater/create_accounts.html.tt2 b/templates/web/renater/create_accounts.html.tt2
index 4bb6301..141db13 100644
--- a/templates/web/renater/create_accounts.html.tt2
+++ b/templates/web/renater/create_accounts.html.tt2
@@ -24,7 +24,7 @@
     <div class="account small-12 medium-6 large-4 columns">
         <h3>[% c.loc("Account profile: [_1]", account.profile()) %]</h3>
 
-        <div class="description">[% description.${lh.language_tag()} %].</div>
+        <div class="description">[% description.${l10n.language_tag()} %].</div>
 
         <table>
             <tr>
diff --git a/templates/web/renater/index.html.tt2 b/templates/web/renater/index.html.tt2
index d592527..32a1099 100644
--- a/templates/web/renater/index.html.tt2
+++ b/templates/web/renater/index.html.tt2
@@ -1,5 +1,5 @@
 <!doctype html>
-<html lang="[% lh.language_tag() %]">
+<html lang="[% l10n.language_tag() %]">
     <head>
         <meta http-equiv="content-type" content="text/html; charset=utf-8" />
         <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
@@ -62,17 +62,17 @@
                             </a>
                             <ul class="submenu vertical" data-submenu>
                                 <li>
-                                    <a [% IF lh.language_tag() == "en" %]class="nocursor"[% ELSE %]href="[% c.url_with().query(lang => 'en') %]"[% END %] data-lang="en" title="English">
+                                    <a [% IF l10n.language_tag() == "en" %]class="nocursor"[% ELSE %]href="[% c.url_with().query(lang => 'en') %]"[% END %] data-lang="en" title="English">
                                         <img src="images/en.png" />
                                         <label>English</label>
-                                        [% IF lh.language_tag() == "en" %]<span class="fa fa-check"></span>[% END %]
+                                        [% IF l10n.language_tag() == "en" %]<span class="fa fa-check"></span>[% END %]
                                     </a>
                                 </li>
                                 <li>
-                                    <a [% IF lh.language_tag() == "fr" %]class="nocursor"[% ELSE %]href="[% c.url_with().query(lang => 'fr') %]"[% END %] data-lang="fr" title="Français">
+                                    <a [% IF l10n.language_tag() == "fr" %]class="nocursor"[% ELSE %]href="[% c.url_with().query(lang => 'fr') %]"[% END %] data-lang="fr" title="Français">
                                         <img src="images/fr.png" />
                                         <label>Français</label>
-                                        [% IF lh.language_tag() == "fr" %]<span class="fa fa-check"></span>[% END %]
+                                        [% IF l10n.language_tag() == "fr" %]<span class="fa fa-check"></span>[% END %]
                                     </a>
                                 </li>
                             </ul>
-- 
GitLab