{** * plugins/generic/translator/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. * * Edit a specific locale file. * *} {strip} {translate|assign:"pageTitleTranslated" key="plugins.generic.translator.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}
{if $error} {translate key="form.errorsOccurred"}: {/if}
{translate key="plugins.generic.translator.localeKey"}      {translate key="plugins.generic.translator.localeKey.description"}

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

{iterate from=localeContents key=key item=value} {assign var=filenameEscaped value=$filename|escape:"url"|escape:"url"} {* extra row for the key *} {* empty first column where the key used to be *} {/iterate} {if $localeContents->wasEmpty()} {else} {/if}
 
{translate key="plugins.generic.translator.localeKey"} {translate key="plugins.generic.translator.localeKeyValue"} {translate key="common.action"}
 
{$key|escape}
  {assign var=referenceValue value=$referenceLocaleContents.$key} {if ($value|explode:"\n"|@count > 1) || (strlen($value) > 80) || ($referenceValue|explode:"\n"|@count > 1) || (strlen($referenceValue) > 80)} {translate key="plugins.generic.translator.file.reference"}
{translate key="plugins.generic.translator.file.translation"}
{else} {translate key="plugins.generic.translator.file.reference"}

{translate key="plugins.generic.translator.file.translation"}
{/if}
{translate key="common.delete"}
 
{translate key="common.none"}
 
{page_info iterator=$localeContents} {page_links all_extra="onclick=\"document.getElementById('locale').redirectUrl.value=this.href;this.href='javascript:document.getElementById('locale').submit()';return true;\"" anchor="localeContents" name="localeContents" iterator=$localeContents}
{if $localeContents->getPage() < $localeContents->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"}