Commit 897453aa authored by Luc Didry's avatar Luc Didry
Browse files

Modify how language change choices are generated

parent ae9e2b37
......@@ -1157,10 +1157,6 @@ msgstr ""
msgid "[week] W, [year] YYYY"
msgstr ""
#: themes/default/templates/partial/change_lang.html.ep:3
msgid "en"
msgstr "English"
#: themes/default/templates/js/i18n.js.ep:41
msgid "example-org-logo"
msgstr ""
......@@ -1169,10 +1165,6 @@ msgstr ""
msgid "filter"
msgstr ""
#: themes/default/templates/partial/change_lang.html.ep:4
msgid "fr"
msgstr "Français"
#: themes/default/templates/categories/show.html.ep:63 themes/default/templates/dolos/show.html.ep:123 themes/default/templates/tags/show.html.ep:63
msgid "hour"
msgstr ""
......
......@@ -1157,10 +1157,6 @@ msgstr "Zag, la mascotte de Dolomon"
msgid "[week] W, [year] YYYY"
msgstr "[semaine] W, [année] YYYY"
#: themes/default/templates/partial/change_lang.html.ep:3
msgid "en"
msgstr "English"
#: themes/default/templates/js/i18n.js.ep:41
msgid "example-org-logo"
msgstr "example-org-logo"
......@@ -1169,10 +1165,6 @@ msgstr "example-org-logo"
msgid "filter"
msgstr "filtre"
#: themes/default/templates/partial/change_lang.html.ep:4
msgid "fr"
msgstr "Français"
#: themes/default/templates/categories/show.html.ep:63 themes/default/templates/dolos/show.html.ep:123 themes/default/templates/tags/show.html.ep:63
msgid "hour"
msgstr "heure"
......
......@@ -45,9 +45,9 @@
% }
<h2 class="h4"><%= l('How do I contact the administrator of this instance?') %></h2>
<p>
% my $l = languages;
% if (defined config('contact')->{$l}) {
<%== config('contact')->{$l} %>
% my $la = languages;
% if (defined config('contact')->{$la}) {
<%== config('contact')->{$la} %>
% } else {
<%== config('contact')->{config('contact')->{'default'}} %>
% }
......
% # vim:set sts=4 sw=4 ts=4 ft=html.epl expandtab:
% state $l = {
% en => l('en'),
% fr => l('fr')
% en => 'English',
% fr => 'Français'
% };
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment