{extends file="admin-layout.tpl"} {block name="no-return-functions"} {$admin_current_location = 'configuration'} {/block} {block name="page-title"}{intl l='Translations'}{/block} {block name="check-resource"}admin.configuration.translations{/block} {block name="check-access"}update{/block} {block name="main-content"}
{intl l="Translation"}
{include file = "includes/inner-form-toolbar.html" close_url = {url path='/admin/configuration'} }
{if $item_to_translate == 'mo'}
{else if $item_to_translate == 'fo'}
{else if $item_to_translate == 'bo'}
{else if $item_to_translate == 'ma'}
{else if $item_to_translate == 'pf'}
{/if} {if $item_to_translate == 'mo' && $item_name != ''}
{/if}
{if $is_writable|default:false === false}
{intl l='The directory local/I18n does not exist or is not writable. Please fix this issue before.' }
{/if}

{intl l='This page allows you to translate each resources of your website : Thelia, modules, templates.
'} {intl l='Keep attention that in translating you can override the resource translations.
'} {intl l='This is not a problem as long as you do not update this resources (Thelia, module, template).
'} {intl l='If your aim is just to translate text for your website, please use the user mode.
'} {intl l='There is 2 kind of translations :'}

  • {intl l='Redefine the text only for this resource.'}
  • {intl l='Redefine the text globally. Every text will be translated with this translation, except if there is a translation for this resource.'}

{intl l='Please select your editing mode :'}

  • {intl l='User : to redefine the translations for your website'}
  • {intl l='Developer : to change the translations of the resource'}
{if $edit_language_locale != 'en_US'}
{/if}
{* -- STRINGS TO TRANSLATE --------------------------------------------- *} {$currfile = false} {$close_last_panel = false} {$idx = 0} {foreach $all_strings|default:[] as $info} {$not_translated = empty($info.translation) && empty($info.custom_fallback) && empty($info.global_fallback)} {if $view_missing_traductions_only != 1 || $not_translated } {* Create a liste of files names *} {if count($info.files) > 1} {$label = {intl l='In pages:'}} {capture name="banner" assign=file_names}
    {foreach $info.files as $file}
  • {$file}
  • {/foreach}
{/capture} {else} {$label = {intl l='In page'}} {$file_names = $info.files.0} {/if} {* Display current file liste, if required *} {if $file_names != $currfile} {if $currfile !== false} {* Close current panel *}
{$close_last_panel = false} {/if} {$currfile = $file_names}
{loop name="lang_list" type="lang" id=$edit_language_id} {$TITLE} {/loop} {$label} {$file_names nofilter}
{$close_last_panel = true} {/if} {else} {/if} {$idx = $idx + 1} {/foreach} {if isset($all_strings) } {if empty($all_strings) }
{intl l='Did not found any text to translate. It\'s probably normal. If not, please be sure to use Smarty\'s "intl" function in templates, or the Translator::trans() method in PHP files.'}
{else if $view_missing_traductions_only == 1 && $currfile == false }
{intl l='Congratulations, all text is now translated !'}
{/if} {if $close_last_panel} {* close the last panel *}
{$info.text} {if $info.dollar}
{intl l='Warning'} {intl l='Il seems that this string contains a Smarty variable ($). If \'s the case, it cannot be transleted properly.'}
{/if}
{/if} {/if} {if $max_input_vars_warning}
{intl l='Cannot translate all fields. According to your PHP configuration, forms cannot contains more than %current_max_input_vars input fields, but at least %required_max_input_vars are required. Please change the value of max_input_vars in your PHP configuration of change the translation file by hand.' current_max_input_vars={$current_max_input_vars} required_max_input_vars={$required_max_input_vars} }
{/if}
{/block} {block name="javascript-initialization"} {javascripts file='assets/js/cookie.js'} {/javascripts} {/block} {block name="javascript-last-call"} {hook name="translations.js" location="translations-js" } {/block}