blob: 192cfcc61b59b75c772cf207529da64daa3caee6 (
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
35
36
37
38
39
40
41
42
43
44
45
46
|
<div class="titrePage">
<h2>{'Installed Languages'|@translate}</h2>
</div>
{foreach from=$language_states item=language_state}
<fieldset>
<legend>
{if $language_state == 'active'}
{'Active Languages'|@translate}
{elseif $language_state == 'inactive'}
{'Inactive Languages'|@translate}
{/if}
</legend>
<div class="languageBoxes">
{foreach from=$languages item=language}
{if $language.state == $language_state}
<div class="languageBox{if $language.is_default} languageDefault{/if}">
<div class="languageName">{$language.name}{if $language.is_default} <em>({'default'|@translate})</em>{/if}</div>
<div class="languageActions">
<div>
{if $language_state == 'active'}
{if $language.deactivable}
<a href="{$language.u_action}&action=deactivate" class="tiptip" title="{'Forbid this language to users'|@translate}">{'Deactivate'|@translate}</a>
{else}
<span title="{$language.deactivate_tooltip}">{'Deactivate'|@translate}</span>
{/if}
{if not $language.is_default}
| <a href="{$language.u_action}&action=set_default" class="tiptip" title="{'Set as default language for unregistered and new users'|@translate}">{'Default'|@translate}</a>
{/if}
{/if}
{if $language_state == 'inactive'}
<a href="{$language.u_action}&action=activate" class="tiptip" title="{'Make this language available to users'|@translate}">{'Activate'|@translate}</a>
| <a href="{$language.u_action}&action=delete" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');" class="tiptip" title="{'Delete this language'|@translate}">{'Delete'|@translate}</a>
{/if}
</div>
</div> <!-- languageActions -->
</div> <!-- languageBox -->
{/if}
{/foreach}
</div> <!-- languageBoxes -->
</fieldset>
{/foreach}
|