Bug 12150 - Use more javascript string formatting in intranet for translated strings.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / intranet-bottom.inc
1         </div>
2
3 [% IF ( languages_loop ) %]
4     [% UNLESS ( one_language_enabled ) %]
5         <div id="changelanguage" class="navbar navbar-fixed-bottom">
6             <div class="navbar-inner">
7         <ul id="i18nMenu" class="nav">
8         [% FOREACH languages_loo IN languages_loop %]
9
10             [% IF ( languages_loo.group_enabled ) %]
11             [% IF ( languages_loo.plural ) %]
12             <li class="dropdown"><a class="dropdown-toggle dropup" data-toggle="dropdown" id="show[% languages_loo.rfc4646_subtag %]" href="#">[% IF ( languages_loo.native_description ) %][% languages_loo.native_description %][% ELSE %][% languages_loo.rfc4646_subtag %][% END %]  <span class="caret"></span></a>
13             <ul id="sub[% languages_loo.rfc4646_subtag %]" class="dropdown-menu">
14             [% FOREACH sublanguages_loo IN languages_loo.sublanguages_loop %]
15                 [% IF ( sublanguages_loo.enabled ) %]
16                 [% IF ( sublanguages_loo.sublanguage_current ) %]
17                     <li> <a href="#">[% sublanguages_loo.native_description %] [% sublanguages_loo.script_description %] [% sublanguages_loo.region_description %] [% sublanguages_loo.variant_description %] ([% sublanguages_loo.rfc4646_subtag %])</a></li>
18                 [% ELSE %]
19                 <li><a href="/cgi-bin/koha/changelanguage.pl?language=[% sublanguages_loo.rfc4646_subtag %]"> [% sublanguages_loo.native_description %] [% sublanguages_loo.script_description %] [% sublanguages_loo.region_description %] [% sublanguages_loo.variant_description %] ([% sublanguages_loo.rfc4646_subtag %])</a></li>
20                 [% END %]
21                 [% END %]
22
23             [% END %]
24             </ul></li>
25
26             [% ELSE %]
27                 [% IF ( languages_loo.group_enabled ) %]
28                 [% IF ( languages_loo.current ) %]
29                     <li class="navbar-text">
30                         [% IF ( languages_loo.native_description ) %]
31                             [% languages_loo.native_description %]
32                 [% ELSE %]
33                             [% languages_loo.rfc4646_subtag %]
34                         [% END %]
35                     </li>
36                 [% ELSE %]
37                     <li><a href="/cgi-bin/koha/changelanguage.pl?language=[% languages_loo.rfc4646_subtag %]">
38                         [% IF ( languages_loo.native_description ) %]
39                             [% languages_loo.native_description %]
40                         [% ELSE %]
41                             [% languages_loo.rfc4646_subtag %]
42                         [% END %]
43                     </a></li>
44                 [% END %]
45                 [% END %]
46             [% END %]
47             [% END %]
48
49         [% END %]
50         </ul>
51         </div>
52         </div>
53     [% END %]
54 [% END %]
55     </body>
56 </html>