Commit 80c2b6a7 authored by Luc Didry's avatar Luc Didry

[i18n] Correctly handle regionalized languages + use default theme bootstrap files

parent 9799bf8f
Pipeline #45576 passed with stage
in 19 seconds
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
......@@ -9,13 +9,15 @@
% oc => 'Occitan',
% ru => 'Русский',
% };
% my $lang = $self->languages;
% $lang =~ s/-(.*)/_\U$1/;
<li class="dropdown pull-right">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
<span class="icon-language" aria-hidden="true" title="<%= l('Language') %>"></span> <%= l('Language') %> <span class="caret"></span>
</a>
<ul class="dropdown-menu" role="menu">
% for my $i (@{$self->available_langs}) {
<li<%== ($i eq $self->languages) ? ' class="active"' : '' %>>
<li<%== ($i eq $lang) ? ' class="active"' : '' %>>
<a href="<%= url_for('lang', l => $i) %>" class="set-lang"><%= $l->{$i} %></a>
</li>
% }
......
Markdown is supported
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