<commit_before>{* $Id$ *}

{assign var="default_diff_style" value="inlinediff" }

{if $show_translation_module}

	{tikimodule error=$module_params.error title=$tpl_module_title name="translation" flip=$module_params.flip decorations=$module_params.decorations nobox=$module_params.nobox notitle=$module_params.notitle}
		{if $trads|@count eq '1'}<p>{tr}There are no translations of this page.{/tr}<p>{/if}
			{if $prefs.quantify_changes eq 'y'}
				<div>
					{tr}Up-to-date-ness:{/tr} {$mod_translation_quantification}%
				</div>
				{$mod_translation_gauge}
			{/if}
			{if $mod_translation_better_known or $mod_translation_better_other}
				<div>			
					{if $from_edit_page ne 'y'}
						<b>{tr}Incoming{/tr}:</b>
					{else}
						{tr}To <strong>continue translating</strong>, select the language to translate from{/tr}:
					{/if}			
					{if $mod_translation_better_known}
						<ul>
							{foreach item=better from=$mod_translation_better_known}
								<li>
									{if $from_edit_page eq 'y'}
										<a title="{tr}update from it{/tr}" href="tiki-editpage.php?page={if isset($stagingPageName) && $hasStaging == 'y'}{$stagingPageName|escape:'url'}{else}{$page|escape:'url'}{/if}&amp;source_page={$better.page|escape:'url'}&amp;oldver={$better.last_update|escape:'url'}&amp;newver={$better.current_version|escape:'url'}&amp;diff_style={$default_diff_style}">{icon _id=page_translate_from alt="{tr}update from it{/tr}" style="vertical-align:middle"} {$better.lang|langname}</a> ({$better.page|escape})
									{else}
										{if $tiki_p_edit eq 'y'}
											<a href="tiki-editpage.php?page={if isset($stagingPageName) && $hasStaging == 'y'}{$stagingPageName|escape:'url'}{else}{$page|escape:'url'}{/if}&amp;source_page={$better.page|escape:'url'}&amp;oldver={$better.last_update|escape:'url'}&amp;newver={$better.current_version|escape:'url'}&amp;diff_style={$default_diff_style}">{icon _id=page_translate_from alt="{tr}update from it{/tr}" style="vertical-align:middle"}</a>
									{/if}
									<a href="tiki-editpage.php?page={if isset($stagingPageName) && $hasStaging == 'y'}{$stagingPageName|escape:'url'}{else}{$page|escape:'url'}{/if}&amp;source_page={$better.page|escape:'url'}&amp;oldver={$better.last_update|escape:'url'}&amp;newver={$better.current_version|escape:'url'}&amp;diff_style={$default_diff_style}" title="{$better.page|escape}">					
									{if $show_language eq 'y'} 
										{$better.lang|langname}</a> 
									{else}
										{$better.page|escape}</a> ({$better.lang})
									{/if}
									{/if}
								</li>
							{/foreach}
						</ul>
					{elseif $prefs.change_language eq 'y'}{* only show if users can set a preferred language *}
						<div id="mod-translation-better-intro" style="display:block">{tr}None match your{/tr} <a href="tiki-user_preferences.php" title="{tr}Set your preferred languages.{/tr}">{tr}preferred languages{/tr}</a>.</div>
					{/if} {* $mod_translation_better_known *}
					
					{if $mod_translation_better_other}
						{if $prefs.change_language eq 'y'}
							<a href="javascript:void(0)" onclick="intro=document.getElementById('mod-translation-better-intro');if(intro)intro.style.display='none';document.getElementById('mod-translation-better-ul').style.display='block';this.style.display='none'" class="linkmenu">{icon _id=plus_small alt="{tr}More...{/tr}" width="11" height="8" style="vertical-align:middle;border:0"} {tr}More...{/tr}</a>
						{/if}
						<ul id="mod-translation-better-ul"{if $prefs.change_language eq 'y'} style="display:none"{/if}>
							{foreach item=better from=$mod_translation_better_other}
								<li>
									{if $from_edit_page eq 'y'}
										<a title="{tr}update from it{/tr}" href="tiki-editpage.php?page={if isset($stagingPageName) && $hasStaging == 'y'}{$stagingPageName|escape:'url'}{else}{$page|escape:'url'}{/if}&amp;source_page={$better.page|escape:'url'}&amp;oldver={$better.last_update|escape:'url'}&amp;newver={$better.current_version|escape:'url'}&amp;{$default_diff_style}=htmldiff">{icon _id=page_translate_from alt="{tr}update from it{/tr}" style="vertical-align:middle"} {$better.lang|langname}</a> ({$better.page|escape})
									{else}
										{if $tiki_p_edit eq 'y'}
											<a href="tiki-editpage.php?page={if isset($stagingPageName) && $hasStaging == 'y'}{$stagingPageName|escape:'url'}{else}{$page|escape:'url'}{/if}&amp;source_page={$better.page|escape:'url'}&amp;oldver={$better.last_update|escape:'url'}&amp;newver={$better.current_version|escape:'url'}&amp;{$default_diff_style}=htmldiff">{icon _id=page_translate_from alt="{tr}update from it{/tr}" style="vertical-align:middle"}</a>
										{/if}
										<a href="tiki-index.php?page={$better.page|escape:'url'}">{icon _id=page alt="{tr}view{/tr}" style="vertical-align:middle"}</a>
										<a href="tiki-index.php?page={$better.page|escape:'url'}" title="{$better.page|escape}">
										{if $show_language eq 'y'}
											{$better.lang|langname}</a> 
										{else}
											{$better.page|escape}</a> ({$better.lang})
										{/if}
									{/if}
								</li>
							{/foreach}
						</ul>
					{/if}
				</div><br />
			{/if}
			
			{if $mod_translation_worst_known or $mod_translation_worst_other}
				<div>			
					<b>{tr}Outgoing{/tr}:</b>
					{if $mod_translation_worst_known}
					<ul>
						{foreach item=worst from=$mod_translation_worst_known}
						<li>
							{if $tiki_p_edit eq 'y'}
								<a href="tiki-editpage.php?page={$worst.page|escape:'url'}&amp;source_page={$page|escape:'url'}&amp;oldver={$worst.last_update|escape:'url'}&amp;newver={$pageVersion|escape:'url'}&amp;diff_style={$default_diff_style}">{icon _id=page_translate_to alt="{tr}update it{/tr}" style="vertical-align:middle"}</a>
							{/if}
							<a href="tiki-editpage.php?page={$worst.page|escape:'url'}&amp;source_page={$page|escape:'url'}&amp;oldver={$worst.last_update|escape:'url'}&amp;newver={$pageVersion|escape:'url'}&amp;diff_style={$default_diff_style}" title="{$worst.page|escape}">
							{if $show_language eq 'y'}
							{$worst.lang|langname}</a> 
							{else}<commit_msg>[FIX] Set diff_style consistently (typo?)<commit_after>{* $Id$ *}

{assign var="default_diff_style" value="inlinediff" }

{if $show_translation_module}

	{tikimodule error=$module_params.error title=$tpl_module_title name="translation" flip=$module_params.flip decorations=$module_params.decorations nobox=$module_params.nobox notitle=$module_params.notitle}
		{if $trads|@count eq '1'}<p>{tr}There are no translations of this page.{/tr}<p>{/if}
			{if $prefs.quantify_changes eq 'y'}
				<div>
					{tr}Up-to-date-ness:{/tr} {$mod_translation_quantification}%
				</div>
				{$mod_translation_gauge}
			{/if}
			{if $mod_translation_better_known or $mod_translation_better_other}
				<div>			
					{if $from_edit_page ne 'y'}
						<b>{tr}Incoming{/tr}:</b>
					{else}
						{tr}To <strong>continue translating</strong>, select the language to translate from{/tr}:
					{/if}			
					{if $mod_translation_better_known}
						<ul>
							{foreach item=better from=$mod_translation_better_known}
								<li>
									{if $from_edit_page eq 'y'}
										<a title="{tr}update from it{/tr}" href="tiki-editpage.php?page={if isset($stagingPageName) && $hasStaging == 'y'}{$stagingPageName|escape:'url'}{else}{$page|escape:'url'}{/if}&amp;source_page={$better.page|escape:'url'}&amp;oldver={$better.last_update|escape:'url'}&amp;newver={$better.current_version|escape:'url'}&amp;diff_style={$default_diff_style}">{icon _id=page_translate_from alt="{tr}update from it{/tr}" style="vertical-align:middle"} {$better.lang|langname}</a> ({$better.page|escape})
									{else}
										{if $tiki_p_edit eq 'y'}
											<a href="tiki-editpage.php?page={if isset($stagingPageName) && $hasStaging == 'y'}{$stagingPageName|escape:'url'}{else}{$page|escape:'url'}{/if}&amp;source_page={$better.page|escape:'url'}&amp;oldver={$better.last_update|escape:'url'}&amp;newver={$better.current_version|escape:'url'}&amp;diff_style={$default_diff_style}">{icon _id=page_translate_from alt="{tr}update from it{/tr}" style="vertical-align:middle"}</a>
									{/if}
									<a href="tiki-editpage.php?page={if isset($stagingPageName) && $hasStaging == 'y'}{$stagingPageName|escape:'url'}{else}{$page|escape:'url'}{/if}&amp;source_page={$better.page|escape:'url'}&amp;oldver={$better.last_update|escape:'url'}&amp;newver={$better.current_version|escape:'url'}&amp;diff_style={$default_diff_style}" title="{$better.page|escape}">					
									{if $show_language eq 'y'} 
										{$better.lang|langname}</a> 
									{else}
										{$better.page|escape}</a> ({$better.lang})
									{/if}
									{/if}
								</li>
							{/foreach}
						</ul>
					{elseif $prefs.change_language eq 'y'}{* only show if users can set a preferred language *}
						<div id="mod-translation-better-intro" style="display:block">{tr}None match your{/tr} <a href="tiki-user_preferences.php" title="{tr}Set your preferred languages.{/tr}">{tr}preferred languages{/tr}</a>.</div>
					{/if} {* $mod_translation_better_known *}
					
					{if $mod_translation_better_other}
						{if $prefs.change_language eq 'y'}
							<a href="javascript:void(0)" onclick="intro=document.getElementById('mod-translation-better-intro');if(intro)intro.style.display='none';document.getElementById('mod-translation-better-ul').style.display='block';this.style.display='none'" class="linkmenu">{icon _id=plus_small alt="{tr}More...{/tr}" width="11" height="8" style="vertical-align:middle;border:0"} {tr}More...{/tr}</a>
						{/if}
						<ul id="mod-translation-better-ul"{if $prefs.change_language eq 'y'} style="display:none"{/if}>
							{foreach item=better from=$mod_translation_better_other}
								<li>
									{if $from_edit_page eq 'y'}
										<a title="{tr}update from it{/tr}" href="tiki-editpage.php?page={if isset($stagingPageName) && $hasStaging == 'y'}{$stagingPageName|escape:'url'}{else}{$page|escape:'url'}{/if}&amp;source_page={$better.page|escape:'url'}&amp;oldver={$better.last_update|escape:'url'}&amp;newver={$better.current_version|escape:'url'}&amp;diff_style={$default_diff_style}">{icon _id=page_translate_from alt="{tr}update from it{/tr}" style="vertical-align:middle"} {$better.lang|langname}</a> ({$better.page|escape})
									{else}
										{if $tiki_p_edit eq 'y'}
											<a href="tiki-editpage.php?page={if isset($stagingPageName) && $hasStaging == 'y'}{$stagingPageName|escape:'url'}{else}{$page|escape:'url'}{/if}&amp;source_page={$better.page|escape:'url'}&amp;oldver={$better.last_update|escape:'url'}&amp;newver={$better.current_version|escape:'url'}&amp;diff_style={$default_diff_style}">{icon _id=page_translate_from alt="{tr}update from it{/tr}" style="vertical-align:middle"}</a>
										{/if}
										<a href="tiki-index.php?page={$better.page|escape:'url'}">{icon _id=page alt="{tr}view{/tr}" style="vertical-align:middle"}</a>
										<a href="tiki-index.php?page={$better.page|escape:'url'}" title="{$better.page|escape}">
										{if $show_language eq 'y'}
											{$better.lang|langname}</a> 
										{else}
											{$better.page|escape}</a> ({$better.lang})
										{/if}
									{/if}
								</li>
							{/foreach}
						</ul>
					{/if}
				</div><br />
			{/if}
			
			{if $mod_translation_worst_known or $mod_translation_worst_other}
				<div>			
					<b>{tr}Outgoing{/tr}:</b>
					{if $mod_translation_worst_known}
					<ul>
						{foreach item=worst from=$mod_translation_worst_known}
						<li>
							{if $tiki_p_edit eq 'y'}
								<a href="tiki-editpage.php?page={$worst.page|escape:'url'}&amp;source_page={$page|escape:'url'}&amp;oldver={$worst.last_update|escape:'url'}&amp;newver={$pageVersion|escape:'url'}&amp;diff_style={$default_diff_style}">{icon _id=page_translate_to alt="{tr}update it{/tr}" style="vertical-align:middle"}</a>
							{/if}
							<a href="tiki-editpage.php?page={$worst.page|escape:'url'}&amp;source_page={$page|escape:'url'}&amp;oldver={$worst.last_update|escape:'url'}&amp;newver={$pageVersion|escape:'url'}&amp;diff_style={$default_diff_style}" title="{$worst.page|escape}">
							{if $show_language eq 'y'}
							{$worst.lang|langname}</a> 
							{else}
{'fraction_non_alphanumeric': 0.20178162798300098, 'fraction_numerical': 0.0009807126511932004, 'mean_word_length': 4.9605455431076475, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 103, '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': '3614370', 'n_tokens_mistral': 5446, 'n_tokens_neox': 4355, 'n_words': 529}