{extends file="admin-layout.tpl"} {block name="page-title"}{intl l='Translations'}{/block} {block name="check-resource"}admin.configuration.variable{/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}
{* -- STRINGS TO TRANSLATE --------------------------------------------- *} {$currfile = false} {$close_last_panel = false} {$idx = 0} {foreach $all_strings as $info} {$not_translated = empty($info.translation)} {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} {* Text is not displayed, put it in a hidden field *} {/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"} {/block}