1 | <div class="titrePage"> |
---|
2 | <h2>{'Installed Languages'|@translate}</h2> |
---|
3 | </div> |
---|
4 | |
---|
5 | {foreach from=$language_states item=language_state} |
---|
6 | <fieldset> |
---|
7 | <legend> |
---|
8 | {if $language_state == 'active'} |
---|
9 | {'Active Languages'|@translate} |
---|
10 | |
---|
11 | {elseif $language_state == 'inactive'} |
---|
12 | {'Inactive Languages'|@translate} |
---|
13 | |
---|
14 | {/if} |
---|
15 | </legend> |
---|
16 | <div class="languageBoxes"> |
---|
17 | {foreach from=$languages item=language} |
---|
18 | {if $language.state == $language_state} |
---|
19 | <div class="languageBox{if $language.is_default} languageDefault{/if}"> |
---|
20 | <div class="languageName">{$language.name}{if $language.is_default} <em>({'default'|@translate})</em>{/if}</div> |
---|
21 | <div class="languageActions"> |
---|
22 | <div> |
---|
23 | {if $language_state == 'active'} |
---|
24 | {if $language.deactivable} |
---|
25 | <a href="{$language.u_action}&action=deactivate" title="{'Forbid this language to users'|@translate}">{'Deactivate'|@translate}</a> |
---|
26 | {else} |
---|
27 | <span title="{$language.deactivate_tooltip}">{'Deactivate'|@translate}</span> |
---|
28 | {/if} |
---|
29 | |
---|
30 | {if not $language.is_default} |
---|
31 | | <a href="{$language.u_action}&action=set_default" title="{'Set as default language for unregistered and new users'|@translate}">{'Default'|@translate}</a> |
---|
32 | {/if} |
---|
33 | {/if} |
---|
34 | |
---|
35 | {if $language_state == 'inactive'} |
---|
36 | <a href="{$language.u_action}&action=activate" title="{'Make this language available to users'|@translate}">{'Activate'|@translate}</a> |
---|
37 | | <a href="{$language.u_action}&action=delete" onclick="return confirm('{'Are you sure?'|@translate|@escape:javascript}');" title="{'Delete this language'|@translate}">{'Delete'|@translate}</a> |
---|
38 | {/if} |
---|
39 | </div> |
---|
40 | </div> <!-- languageActions --> |
---|
41 | </div> <!-- languageBox --> |
---|
42 | {/if} |
---|
43 | {/foreach} |
---|
44 | </div> <!-- languageBoxes --> |
---|
45 | </fieldset> |
---|
46 | {/foreach} |
---|