{** * plugins/generic/customLocale/localeFile.tpl * * Copyright (c) 2013-2015 Simon Fraser University Library * Copyright (c) 2003-2015 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Customize a specific locale file. * *} {strip} {translate|assign:"pageTitleTranslated" key="plugins.generic.customLocale.locale" locale=$locale} {include file="common/header.tpl"} {/strip} {assign var=filenameEscaped value=$filename|escape:"url"|escape:"url"}
{foreach from=referenceLocaleContents key=key item=value}{/foreach}
{translate key="plugins.generic.customLocale.localeKey"}      {translate key="plugins.generic.customLocale.localeKey.description"}

{translate key="plugins.generic.customLocale.fileDescription"}

{translate key="plugins.generic.customLocale.file.edit" filename=$filename}

{iterate from=referenceLocaleContents key=key item=referenceValue} {assign var=filenameEscaped value=$filename|escape:"url"|escape:"url"} {/iterate} {if $referenceLocaleContents->wasEmpty()} {else} {/if}
 
{translate key="plugins.generic.customLocale.localeKey"} {translate key="plugins.generic.customLocale.localeKeyValue"}
 
{$key|escape} {if $localeContents != null}{assign var=value value=$localeContents.$key}{else}{assign var=value value=''}{/if} {if ($value|explode:"\n"|@count > 1) || (strlen($value) > 80) || ($referenceValue|explode:"\n"|@count > 1) || (strlen($referenceValue) > 80)} {translate key="plugins.generic.customLocale.file.reference"}
{translate key="plugins.generic.customLocale.file.custom"}
{else} {translate key="plugins.generic.customLocale.file.reference"}

{translate key="plugins.generic.customLocale.file.custom"}
{/if}
 
{translate key="common.none"}
 
{page_info iterator=$referenceLocaleContents} {page_links all_extra="onclick=\"document.getElementById('locale').redirectUrl.value=this.href;this.href='javascript:document.getElementById(\'locale\').submit()';return true;\"" anchor="localeContents" name="referenceLocaleContents" iterator=$referenceLocaleContents}
{if $referenceLocaleContents->getPage() < $referenceLocaleContents->getPageCount()} getPage()+1 escape="false"}';return true;" class="button defaultButton" value="{translate key="common.saveAndContinue"}" /> {else} getPage() escape="false"}';return true;" class="button defaultButton" value="{translate key="common.save"}" /> {/if}
{include file="common/footer.tpl"}