{extends file="admin-layout.tpl"} {block name="no-return-functions"} {$admin_current_location = 'configuration'} {/block} {block name="page-title"}{intl l='Thelia Languages'}{/block} {block name="check-resource"}admin.configuration.language{/block} {block name="check-access"}view{/block} {block name="main-content"}
{hook name="languages.top" location="languages_top" } {if $error_message}
{$error_message}
{/if}

{intl l="Languages management"} {loop type="auth" name="can_create" role="ADMIN" resource="admin.configuration.language" access="CREATE"} {/loop}
{intl l="ID"} | {intl l="Language name"} | {intl l="ISO 639 Code"} | {intl l="Locale"} | {intl l="Visible in front"} | {intl l="Active"} | {intl l="Default"} | {intl l="Actions"}
--- | --- | --- | --- | --- | --- | --- | ---
{loop type="lang" name="lang.list" backend_context="1" active="*"}
{$ID} |  | {$TITLE} | {$CODE} | {$LOCALE} |  |  |  | {loop type="auth" name="can_change" role="ADMIN" resource="admin.configuration.language" access="UPDATE"} {/loop} {if !$IS_DEFAULT} {loop type="auth" name="can_change" role="ADMIN" resource="admin.configuration.language" access="DELETE"} {/loop} {/if}
{/loop}

{intl l="Parameters"}
{form name="thelia.lang.defaultBehavior"} {form_hidden_fields} {form_field field="behavior"}
{intl l="If a translation is missing or incomplete :"}
{/form_field} {/form}
{intl l="Using a domain or subdomain for each language"}
{form name="thelia.lang.url"} {form_hidden_fields}

{form_tagged_fields tag='url'} {if $attr_list.url_id}
{$attr_list.url_title} |
{/if} {/form_tagged_fields}
| {if $one_domain_per_lang == 0} {intl l="activate"} {else} {intl l="deactivate"} {/if}

{/form}
{hook name="languages.bottom" location="languages_bottom" }
{form name="thelia.lang.create"} {* Capture the dialog body, to pass it to the generic dialog *} {capture "creation_dialog"} {form_hidden_fields} {form_field field='title'}
{$label} :
{/form_field} {form_field field='code'}
{$label} : {intl l='Check the list of ISO 639-1 codes'}
{/form_field} {form_field field='locale'}
{$label} :
{/form_field} {form_field field='date_time_format'}
{$label} : {intl l='The syntax used is identical to the PHP date() function'}
{/form_field} {form_field field='date_format'}
{$label} : {intl l='The syntax used is identical to the PHP date() function'}
{/form_field} {form_field field='time_format'}
{$label} : {intl l='The syntax used is identical to the PHP date() function'}
{/form_field} {form_field field='decimal_separator'}
{$label} : {intl l='Sets the separator for the decimal point'}
{/form_field} {form_field field='thousands_separator'}
{$label} : {intl l='Sets the thousands separator.'}
{/form_field} {form_field field='decimals'}
{$label} : {intl l='Decimal places'}
{/form_field} {hook name="language.create-form" location="language_create_form" } {/capture} {include file = "includes/generic-create-dialog.html" dialog_id = "creation_dialog" dialog_title = {intl l="Create a new language"} dialog_body = {$smarty.capture.creation_dialog nofilter} dialog_ok_label = {intl l="Create this language"} form_action = {url path='/admin/configuration/languages/add'} form_enctype = {form_enctype} form_error_message = $form_error_message } {/form} {* Delete confirmation dialog *} {capture "delete_dialog"} {hook name="languages.delete-form" location="languages_delete_form" } {/capture} {include file = "includes/generic-confirm-dialog.html" dialog_id = "delete_dialog" dialog_title = {intl l="Delete language"} dialog_message = {intl l="Do you really want to delete this language ?"} form_action = {token_url path='/admin/configuration/languages/delete'} form_content = {$smarty.capture.delete_dialog nofilter} form_error_message = $error_delete_message }

## {intl l="Error"}

{intl l="Impossible to change default languages. Please contact your administrator or try later"}
{/block} {block name="javascript-initialization"} {javascripts file='assets/js/bootstrap-switch/bootstrap-switch.js'}
{/javascripts} {javascripts file='assets/js/bootstrap-select/bootstrap-select.js'}
{/javascripts}
{/block} {block name="javascript-last-call"} {hook name="languages.js" location="languages-js" } {/block}