Better language dropdown

This commit is contained in:
Luc Didry 2018-10-28 23:03:33 +01:00
parent a8efd4af1a
commit 412083c78f
No known key found for this signature in database
GPG Key ID: EA868E12D0257E3C
2 changed files with 11 additions and 9 deletions

View File

@ -45,7 +45,7 @@ msgstr ""
msgid "Abort" msgid "Abort"
msgstr "" msgstr ""
#: themes/default/templates/layouts/default.html.ep:48 themes/default/templates/layouts/default.html.ep:76 #: themes/default/templates/layouts/default.html.ep:49 themes/default/templates/layouts/default.html.ep:78
msgid "About" msgid "About"
msgstr "" msgstr ""
@ -270,7 +270,7 @@ msgstr ""
msgid "Javascript is disabled. You won't be able to use Lufi." msgid "Javascript is disabled. You won't be able to use Lufi."
msgstr "" msgstr ""
#: themes/default/templates/layouts/default.html.ep:40 themes/default/templates/layouts/default.html.ep:68 #: themes/default/templates/layouts/default.html.ep:40 themes/default/templates/layouts/default.html.ep:42 themes/default/templates/layouts/default.html.ep:69 themes/default/templates/layouts/default.html.ep:71
msgid "Language" msgid "Language"
msgstr "" msgstr ""
@ -278,7 +278,7 @@ msgstr ""
msgid "Login" msgid "Login"
msgstr "" msgstr ""
#: themes/default/templates/layouts/default.html.ep:53 themes/default/templates/layouts/default.html.ep:78 #: themes/default/templates/layouts/default.html.ep:54 themes/default/templates/layouts/default.html.ep:80
msgid "Logout" msgid "Logout"
msgstr "" msgstr ""
@ -290,7 +290,7 @@ msgstr ""
msgid "Mail" msgid "Mail"
msgstr "" msgstr ""
#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:34 themes/default/templates/layouts/default.html.ep:62 #: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:34 themes/default/templates/layouts/default.html.ep:63
msgid "My files" msgid "My files"
msgstr "" msgstr ""
@ -332,7 +332,7 @@ msgstr ""
msgid "Purge expired files from localStorage" msgid "Purge expired files from localStorage"
msgstr "" msgstr ""
#: themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:59 #: themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:60
msgid "Report file" msgid "Report file"
msgstr "" msgstr ""
@ -361,7 +361,7 @@ msgstr ""
msgid "Share your files in total privacy on %1" msgid "Share your files in total privacy on %1"
msgstr "" msgstr ""
#: themes/default/templates/layouts/default.html.ep:36 themes/default/templates/layouts/default.html.ep:64 themes/default/templates/login.html.ep:27 themes/default/templates/logout.html.ep:17 #: themes/default/templates/layouts/default.html.ep:36 themes/default/templates/layouts/default.html.ep:65 themes/default/templates/login.html.ep:27 themes/default/templates/logout.html.ep:17
msgid "Signin" msgid "Signin"
msgstr "" msgstr ""
@ -449,7 +449,7 @@ msgstr ""
msgid "Unable to get counter for %1. You are not authenticated." msgid "Unable to get counter for %1. You are not authenticated."
msgstr "" msgstr ""
#: themes/default/templates/layouts/default.html.ep:33 themes/default/templates/layouts/default.html.ep:61 #: themes/default/templates/layouts/default.html.ep:33 themes/default/templates/layouts/default.html.ep:62
msgid "Upload files" msgid "Upload files"
msgstr "" msgstr ""

View File

@ -39,8 +39,9 @@
<div class="input-field select-lang"> <div class="input-field select-lang">
<label class="hiddendiv"><%= l('Language') %></label> <label class="hiddendiv"><%= l('Language') %></label>
<select> <select>
<option value="" disabled selected><%= l('Language') %></option>
% for my $i (@{$self->available_langs}) { % for my $i (@{$self->available_langs}) {
<option value="<%= $i %>"<%= ($i eq $lang) ? ' selected' : '' %>><%= iso639_native_name($i) %></option> <option value="<%= $i %>"><%= iso639_native_name($i) %></option>
% } % }
</select> </select>
</div> </div>
@ -67,8 +68,9 @@
<div class="input-field select-lang-mobile"> <div class="input-field select-lang-mobile">
<label class="hiddendiv"><%= l('Language') %></label> <label class="hiddendiv"><%= l('Language') %></label>
<select> <select>
<option value="" disabled selected><%= l('Language') %></option>
% for my $i (@{$self->available_langs}) { % for my $i (@{$self->available_langs}) {
<option value="<%= $i %>"<%= ($i eq $lang) ? ' selected' : '' %>><%= iso639_native_name($i) %></option> <option value="<%= $i %>"><%= iso639_native_name($i) %></option>
% } % }
</select> </select>
</div> </div>