<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://mwiki.gichd.org/IM/index.php?action=history&amp;feed=atom&amp;title=Translation_Duplicate_fix</id>
	<title>Translation Duplicate fix - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://mwiki.gichd.org/IM/index.php?action=history&amp;feed=atom&amp;title=Translation_Duplicate_fix"/>
	<link rel="alternate" type="text/html" href="http://mwiki.gichd.org/IM/index.php?title=Translation_Duplicate_fix&amp;action=history"/>
	<updated>2026-04-22T04:14:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>http://mwiki.gichd.org/IM/index.php?title=Translation_Duplicate_fix&amp;diff=21214&amp;oldid=prev</id>
		<title>Alnaucler: Created page with &quot;This query lists the duplicate translations created after the upgrade scripts or by the countries themselves. Note that the functions &#039;&#039;lower&#039;&#039; will be used so duplicates like...&quot;</title>
		<link rel="alternate" type="text/html" href="http://mwiki.gichd.org/IM/index.php?title=Translation_Duplicate_fix&amp;diff=21214&amp;oldid=prev"/>
		<updated>2016-04-30T12:47:11Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This query lists the duplicate translations created after the upgrade scripts or by the countries themselves. Note that the functions &amp;#039;&amp;#039;lower&amp;#039;&amp;#039; will be used so duplicates like...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This query lists the duplicate translations created after the upgrade scripts or by the countries themselves. Note that the functions &amp;#039;&amp;#039;lower&amp;#039;&amp;#039; will be used so duplicates like Evidence Point and Evidence point will be found and &amp;#039;&amp;#039;trim&amp;#039;&amp;#039; will find &amp;quot; Active&amp;quot; and &amp;quot;Active&amp;quot;. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SELECT &lt;br /&gt;
lower(trim(&amp;quot;translation&amp;quot;.keyvalue)), &lt;br /&gt;
&amp;quot;public&amp;quot;.&amp;quot;translation&amp;quot;.&amp;quot;language&amp;quot;, &lt;br /&gt;
Count(&amp;quot;public&amp;quot;.&amp;quot;translation&amp;quot;.translation_guid), &lt;br /&gt;
&amp;quot;public&amp;quot;.&amp;quot;translation&amp;quot;.field_guid &lt;br /&gt;
FROM &lt;br /&gt;
&amp;quot;public&amp;quot;.&amp;quot;translation&amp;quot; &lt;br /&gt;
where language = &amp;#039;en&amp;#039;&lt;br /&gt;
GROUP BY &lt;br /&gt;
lower(trim(&amp;quot;translation&amp;quot;.keyvalue)), &lt;br /&gt;
&amp;quot;public&amp;quot;.&amp;quot;translation&amp;quot;.&amp;quot;language&amp;quot;, &lt;br /&gt;
&amp;quot;public&amp;quot;.&amp;quot;translation&amp;quot;.field_guid &lt;br /&gt;
HAVING &lt;br /&gt;
Count(&amp;quot;public&amp;quot;.&amp;quot;translation&amp;quot;.translation_guid) &amp;gt; 1 &lt;br /&gt;
order by 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The upgrade scripts add new values to the table translation e.g. &amp;#039;&amp;#039;CHA&amp;#039;&amp;#039;. Since all countries may have different duplicates there is no fit-all solution and therefore the duplicates translations are best fixed manually in Navicat and DIM. &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
# You need do the steps below until you have no duplicates (&amp;#039;&amp;#039;&amp;#039;mandatory&amp;#039;&amp;#039;&amp;#039;)&lt;br /&gt;
# Open table &amp;#039;&amp;#039;translation&amp;#039;&amp;#039; with Navicat and sort on &amp;#039;&amp;#039;keyvalue&amp;#039;&amp;#039;&lt;br /&gt;
# Compare with table &amp;#039;&amp;#039;imsmaenum&amp;#039;&amp;#039; e.g. should it be Evidence Point or Evidence point? Delete the row that should not exist.&lt;br /&gt;
# In same cases it should be field specific translation and that could be easiest to do via DIM.&lt;br /&gt;
# Repeat 3 - 4 until all are done and run the query again as double-check of no duplicates remain. &lt;br /&gt;
&lt;br /&gt;
{{NavBox Upgrade}}&lt;br /&gt;
[[Category:NoPublic]]&lt;br /&gt;
[[Category:SQL Queries]]&lt;br /&gt;
[[Category:NAA]]&lt;/div&gt;</summary>
		<author><name>Alnaucler</name></author>
	</entry>
</feed>