You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

53 lines
2.6 KiB

{* $Id: *}
{extends 'layout_view.tpl'}
{block name="title"}
{title}{$title|escape}{/title}
{/block}
{block name="content"}
<form action="{service controller=language action=write_to_language_php}" method="post" class="form">
{if isset($expmsg)}
{remarksbox type="note" title="{tr}Note:{/tr}"}
{$expmsg}
{/remarksbox}
{/if}
{if (empty($db_languages))}
{remarksbox type="note" title="{tr}Information{/tr}" close="n"}
{tr}No translations in the database available to export{/tr}
{/remarksbox}
{else}
{if $tiki_p_admin eq 'y' and $langIsWritable}
<div class="mb-3 row">
<label class="form-label">
{tr}Translations in the database:{/tr} <span class="badge bg-secondary">{$db_translation_count}</span>
</label>
{if $prefs.lang_control_contribution eq 'y'}
<div class="form-check">
<input type="checkbox" class="form-check-input" name="all" id="all">
<label class="form-check-label" for="all">{tr}Merge all translations, whether or not they are marked as general (for contribution){/tr}</label>
</div>
{/if}
</div>
<div class="mb-3 row">
<label class="form-label">
{tr}File:{/tr} {$langFile}
</label>
</div>
{remarksbox type="warning" title="{tr}Warning{/tr}" close="n"}
{tr}The translations in the database will be merged with the other translations in language.php. After writing translations to language.php the translations are removed from the database.{/tr}
{/remarksbox}
{/if}
{if !$langIsWritable}
{remarksbox type="note" title="{tr}Note:{/tr}"}
{tr}To be able to write your translations back to language.php make sure that the web server has write permission in the lang/ directory.{/tr}
{/remarksbox}
{/if}
<div class="submit text-center">
{if $langIsWritable}
<input type="hidden" name="confirm" value="1">
<input type="hidden" name="language" value={$language}>
<input type="submit" class="btn btn-primary" name="exportToLanguage" value="{tr}Write to language.php{/tr}">
{/if}
</div>
{/if}
</form>
{/block}