{* DO NOT EDIT THIS FILE! Use an override template instead. *}
{*?template charset=latin1?*}
{include uri='design:setup/setup_header.tpl' setup=$setup}

<form method="post" action="{$script}">

{let has_variations=false()}

{section loop=$available_languages}
{section-exclude match=$:item.country_variation}
{set has_variations=true()}
{/section}

{section show=eq($regional_info.language_type,1)}
 <p>
  {"It's time to select the language this site should support."|i18n("design/standard/setup/init")}
  {section show=$has_variations}
   {"Select your language and click the"|i18n("design/standard/setup/init")} <i>{"Summary"|i18n("design/standard/setup/init")}</i> {"button, or the"|i18n("design/standard/setup/init")} <i>{"Language Details"|i18n("design/standard/setup/init")}</i> {"button to select language variations."|i18n("design/standard/setup/init")}
  {section-else}
   {"Select your language and click the"|i18n("design/standard/setup/init")} <i>{"Summary"|i18n("design/standard/setup/init")}</i> {"button."|i18n("design/standard/setup/init")}
  {/section}
 </p>
{section-else}
 <p>
  {"It's time to select the languages this site should support. Select your primary language and check any additional languages."|i18n("design/standard/setup/init")}
  {section show=$has_variations}
   {"Once you're done click the"|i18n("design/standard/setup/init")} <i>{"Summary"|i18n("design/standard/setup/init")}</i> {"button, or the"|i18n("design/standard/setup/init")} <i>{"Language Details"|i18n("design/standard/setup/init")}</i> {"button to select language variations."|i18n("design/standard/setup/init")}
  {section-else}
   {"Once you're done click the"|i18n("design/standard/setup/init")} <i>{"Summary"|i18n("design/standard/setup/init")}</i> {"button."|i18n("design/standard/setup/init")}
  {/section}
 </p>
 {section show=eq($regional_info.language_type,3)}
  <p>{"The languages you choose will help determine the charset to use on the site."|i18n("design/standard/setup/init")}</p>
 {/section}
{/section}

<div class="input_highlight">
<table cellspacing="0" cellpadding="0" border="0">
<tr><th>{"Language name"|i18n("design/standard/setup/init")}</th><th colspan="2">{"Selection"|i18n("design/standard/setup/init")}</th></tr>
{section name=Language loop=$available_languages}
{section-exclude match=$:item.country_variation}
<tr>
  <td class="normal">
    {$:item.language_name}
  </td>
{section show=eq($regional_info.language_type,1)}
  <td align="right" class="normal">
{section-else}
  <td align="right" colspan="2" class="normal">
{/section}
    <input type="radio" name="eZSetupPrimaryLanguage" value="{$:item.locale_full_code}" {section show=eq($regional_info.primary_language,$:item.locale_full_code)}checked="checked"{/section} />
  </td>
{section show=ne($regional_info.language_type,1)}
  <td align="right" class="normal">
    <input type="checkbox" name="eZSetupLanguages[]" value="{$:item.locale_full_code}" {switch match=$:item.locale_full_code}{case in=$regional_info.languages}checked="checked"{/case}{case/}{/switch} />
  </td>
{/section}
</tr>
{/section}
</table>
</div>

  <div class="buttonblock">
    <input type="hidden" name="ChangeStepAction" value="" />
{* {section show=ne($regional_info.language_type,1)} *}
    <input class="defaultbutton" type="submit" name="StepButton_7" value="{'Summary'|i18n('design/standard/setup/init')} >>" />
{section show=$has_variations}
    <input type="hidden" name="eZSetupChooseVariations" value="" />
    <input class="button" type="submit" name="StepButton_6" value="{'Language Details'|i18n('design/standard/setup/init')} >" />
{/section}
{* {/section} *}
  </div>
  {include uri='design:setup/persistence.tpl'}
</form>
{/let}
