<commit_before>{include file="header.tpl"}
<center><h1>{tr}Interactive translator{/tr}</h1>
{if $error eq 'y'}
<h2>{$msg}</h2>
{else}
<b><i>{$analysed_word}</i></b></center>
{if $update eq 'y'}
<center>{tr}has been updated{/tr}<br /> </center>
<input type='submit' value ='Close this window' onclick='window.opener.location.reload();self.close();'>&nbsp;&nbsp;<input type='submit' value ='Go Back' onclick='javascript:history.go(-1);'>";
<br />*{tr}Closing the window will reload your main browser{/tr}
{else}
<center><input type='submit' value ='Close this window' onclick='self.close();'></center>
<table class='normal'>
{assign var=first value=""}
{cycle values="odd,even" print=false}
{section name=ix loop=$entries}
	{if  $first ne $entries[ix].lang }
	{assign var=first value=$entries[ix].lang}
	<tr><td colspan='2'>&nbsp;</td></tr>
	<tr><td colspan=2 class='heading'><b>{tr}Language{/tr}:<i> {$entries[ix].lang}</i></b></td></tr>
	{/if}
	<form><tr class="{cycle advance=true}"><td width='40%'>
   	<input type=hidden name='lang' value='{$entries[ix].lang}'>
	<input type=hidden name='src' value='{$entries[ix].urlsource}'>{$entries[ix].source}</td><td>
	<input type=text name='dst' value='{$entries[ix].trans}' style='width:190px;' >&nbsp;&nbsp;
	<input type=submit name='submit' value='Submit'>
   	</td></tr></form>
{/section}
</table>
{/if}{*End of not-update*}
{/if}{*End of not-error*}<commit_msg>[MOD] xhtml: template rewritten + tr strings<commit_after>{include file="header.tpl"}
		<div class="center itranslator" style="clear: both">

			<h1>{tr}Interactive translator{/tr}</h1>

{if $error eq 'y'}
			<h2>{$msg}</h2>
{else}
			<strong><em>{$analysed_word}</em></strong>

	{if $update eq 'y'}
			{tr}has been updated{/tr}
			<p>
				<a class="linkbut" href="#" onclick='window.opener.location.reload(); self.close(); return false'>{tr}Close this window{/tr}</a>
				<a class="linkbut" href="#" onclick='history.go(-1);'>{tr}Go Back{/tr}</a>
			</p>
			<p><small>*{tr}Clicking 'Close this window' will reload the main window from where it was opened{/tr}</small></p>
	{else}
			<p><a class="linkbut" href="#" onclick='self.close();'>{tr}Close this window{/tr}</a></p>
			
			<form><table class='normal'>
		{assign var=first value=""}
		{cycle values="odd,even" print=false}
		{section name=ix loop=$entries}
			{if  $first ne $entries[ix].lang }
				{assign var=first value=$entries[ix].lang}
				<tr><td colspan='2'>&nbsp;</td></tr>
				<tr><td colspan=2 class='heading'><b>{tr}Language{/tr}:<i> {$entries[ix].lang}</i></b></td></tr>
			{/if}
				<tr class="{cycle advance=true}"><td width='40%'>
				   	<input type="hidden" name='lang' value='{$entries[ix].lang}'>
					<input type="hidden" name='src' value='{$entries[ix].urlsource}'>{$entries[ix].source}
				</td><td>
					<input type="text" name='dst' value='{$entries[ix].trans}' style='width:190px;' />
					<input type="submit" name='submit' value='{tr}Submit{/tr}' />
			   	</td></tr>
		{/section}
			</table></form>
	{/if}{*End of not-update*}
{/if}{*End of not-error*}

		</div>
	</body>
</html>
{'fraction_non_alphanumeric': 0.2504879635653871, 'fraction_numerical': 0.007807417046193884, 'mean_word_length': 5.528662420382165, 'pattern_counts': {'":': 0, '<': 100, '<?xml version=': 0, '>': 100, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6629602', 'n_tokens_mistral': 1226, 'n_tokens_neox': 1133, 'n_words': 227}