aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template/languages_installed.tpl
blob: 493d1eddac16714e64ff0a5f0ac828541cd209c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<div class="titrePage">
  <h2>{'Installed Languages'|@translate}</h2>
</div>

<table class="table2 languages">
<thead>
  <tr class="throw">
    <td>{'Language'|@translate}</td>
    <td>{'Actions'|@translate}</td>
  </tr>
</thead>

{foreach from=$languages item=language name=languages_loop}
  <tr class="{if $smarty.foreach.languages_loop.index is odd}row1{else}row2{/if}">
    <td class="{$language.STATE}">
      {$language.NAME}
      {if $language.IS_DEFAULT}<i>({'Default'|@translate})</i>{/if}
    </td>
    <td style="text-align: center;">
    {if !$language.IS_DEFAULT}
      {if $language.STATE == 'active' or $language.STATE == 'missing'}
        <a href="{$language.U_ACTION}&amp;action=deactivate">{'Deactivate'|@translate}</a> |
        <a href="{$language.U_ACTION}&amp;action=set_default">{'Default'|@translate}</a>
      {else}
        <a href="{$language.U_ACTION}&amp;action=activate">{'Activate'|@translate}</a> |
        <a href="{$language.U_ACTION}&amp;action=delete" onclick="return confirm('{'Are you sure?'|@translate|@escape:'javascript'}');">{'Delete'|@translate}</a>
      {/if}
    {else}
      ---
    {/if}
    </td>
  </tr>
{/foreach}
</table>