{**
* plugins/generic/translator/locale.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.
*
* List of component locales to edit for a particular locale
*
*}
{strip}
{translate|assign:"pageTitleTranslated" key="plugins.generic.translator.locale" locale=$locale}
{include file="common/header.tpl"}
{/strip}
{translate key="plugins.generic.translator.localeDescription"}
{translate key="plugins.generic.translator.localeFiles"}
|
{translate key="plugins.generic.translator.file.filename"} |
{translate key="common.action"} |
|
{assign var=needsAsteriskNote value=0}
{iterate from=localeFiles item=filename}
{assign var=filenameEscaped value=$filename|escape:"url"|escape:"url"}
{if file_exists($filename)}
{assign var=fileExists value=1}
{else}
{assign var=fileExists value=0}
{assign var=needsAsteriskNote value=1}
{/if}
{if $fileExists}
{$filename|escape}
{else}
{$filename|escape} *
{/if}
|
{if $fileExists}
{translate key="common.edit"}
{else}
{url|assign:"redirectUrl" op="editLocaleFile" path=$locale|to_array:$filenameEscaped}
{translate key="common.create"}
{/if}
|
|
{/iterate}
{if $localeFiles->wasEmpty()}
{translate key="common.none"} |
|
{else}
{page_info iterator=$localeFiles} |
{page_links anchor="localeFiles" name="localeFiles" iterator=$localeFiles} |
{/if}
{if $needsAsteriskNote}
{translate key="plugins.generic.translator.file.doesNotExistNote"}
{/if}
{translate key="plugins.generic.translator.miscFiles"}
|
{translate key="plugins.generic.translator.file.filename"} |
{translate key="common.action"} |
|
{assign var=needsAsteriskNote value=0}
{iterate from=miscFiles item=filename}
{assign var=filenameEscaped value=$filename|escape:"url"|escape:"url"}
{if file_exists($filename)}
{assign var=fileExists value=1}
{else}
{assign var=fileExists value=0}
{assign var=needsAsteriskNote value=1}
{/if}
{if $fileExists}
{$filename|escape}
{else}
{$filename|escape} *
{/if}
|
{if $fileExists}
{translate key="common.edit"}
{else}
{url|assign:"redirectUrl" op="editMiscFile" path=$locale|to_array:$filenameEscaped}
{translate key="common.create"}
{/if}
|
|
{/iterate}
{if $miscFiles->wasEmpty()}
{translate key="common.none"} |
|
{else}
{page_info iterator=$miscFiles} |
{page_links anchor="miscFiles" name="miscFiles" iterator=$miscFiles} |
{/if}
{if $needsAsteriskNote}
{translate key="plugins.generic.translator.file.doesNotExistNote"}
{/if}
{translate key="plugins.generic.translator.emails"}
|
{translate key="manager.emails.emailKey"} |
{translate key="plugins.generic.translator.file.filename"} |
{translate key="common.action"} |
|
{iterate from=emails key=emailKey item=email}
{$emailKey|escape} |
{$email.subject|escape} |
{translate key="common.edit"} | {translate key="common.delete"}
|
|
{/iterate}
{if $emails->wasEmpty()}
{translate key="common.none"} |
|
{else}
{page_info iterator=$emails} |
{page_links anchor="emails" name="emails" iterator=$emails} |
{/if}
{include file="common/footer.tpl"}