interactive_translation_box.tpl 2.27 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<div class="intertrans text-center" id="intertrans-indicator">
	<div class="checkbox">
		<label for="intertrans-active">
			<input type="checkbox" id="intertrans-active"> {tr}Interactive Translation{/tr}
		</label>
		<a href="#" class="btn btn-link tips" title="{tr}Help{/tr}:{tr}Once checked, click on any string to translate it.{/tr}">
			{icon name="help"}
		</a>
		{if isset($smarty.session.interactive_translation_mode) && $smarty.session.interactive_translation_mode eq "on"}
			<a href="tiki-interactive_trans.php?interactive_translation_mode=off" class="btn btn-link tips" title=":{tr}Turn off interactive translation{/tr}">
				{icon name="off"}
			</a>
		{/if}
	</div>
15
</div>
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
<div class="modal fade intertrans" id="intertrans-modal" tabindex="-1" role="dialog" aria-labelledby="intertransModalLabel">
	<form method="post" action="tiki-interactive_trans.php" role="form" class="form">
		<div class="modal-dialog" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<h4 class="modal-title" id="intertransModalLabel">
						{tr}Interactive Translation{/tr}
					</h4>
				</div>
				<div class="modal-body form-group" id="intertrans-table">
					<table class="table table-condensed table-hover">
						<thead>
							<tr>
								<th>
									{tr}Original{/tr}
								</th>
								<th>
									{tr}Translation{/tr}
								</th>
							</tr>
						</thead>
						<tbody>
						</tbody>
					</table>
					<div class="text-center" id="intertrans-empty" style="display: none">
						{remarksbox type="note" title="{tr}Information{/tr}" close="n"}
							{tr}Couldn't find any translatable string.{/tr}
						{/remarksbox}
					</div>
				</div>
				<div class="modal-footer">
					<button id="intertrans-close" type="button" class="btn btn-default">
						{tr}Close{/tr}
					</button>
					<input id="intertrans-submit" type="submit" class="btn btn-primary" value="{tr}Save translations{/tr}">
					<input id="intertrans-cancel" class="btn btn-default" type="reset" value="{tr}Cancel{/tr}">
					<input id="intertrans-close" class="btn btn-default" type="reset" value="{tr}Close{/tr}" style="display: none;">
					<span id="intertrans-help" class="help-block">
						{tr}Changes will be applied on next page load only.{/tr}
					</span>
				</div>
			</div>
58
		</div>
59 60
	</form>
</div>