blob: 5b1b7423e7b4f8660593a030a7222b5d1d65d58c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{* don't show if this is the page creation *}
{if $gContent->mContentId}
<div class="form-group">
{formlabel label="Translations" for="to_id"}
{forminput}
<input type="hidden" name="i18n[translation_id]" value="{$translationId}" />
<input type="hidden" name="i18n[from_id]" value="{$smarty.request.i18n.from_id|default:$gContent->mContentId}" />
<select name="i18n[to_id]" id="to_id">
{foreach from=$translationsList key=langCode item=lang}
<option value="{$lang.content_id|default:$langCode}">{$lang.native_name}: {$lang.title|escape|default:"• {tr}Create New{/tr} •"}</option>
{/foreach}
</select>
<br />
<input type="submit" class="btn btn-default" name="i18n[translate]" value="{tr}Translate{/tr}" />
<label><input type="checkbox" name="i18n[google]" /> {tr}Attempt Google translation{/tr}</label>
{formhelp note="To translate this page into a different language, select that language above and click <strong>Translate</strong>. To use Google's translation service, enable the checkbox first (depending on the size of this page's text, Google's translation might take a while). "}
{/forminput}
</div>
{/if}
|