<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.limesurvey.org/index.php?action=history&amp;feed=atom&amp;title=Custom_translation%2Fen</id>
	<title>Custom translation/en - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.limesurvey.org/index.php?action=history&amp;feed=atom&amp;title=Custom_translation%2Fen"/>
	<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Custom_translation/en&amp;action=history"/>
	<updated>2026-08-17T03:44:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Custom_translation/en&amp;diff=381163&amp;oldid=prev</id>
		<title>FuzzyBot: Updating to match new version of source page</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Custom_translation/en&amp;diff=381163&amp;oldid=prev"/>
		<updated>2026-04-21T19:41:03Z</updated>

		<summary type="html">&lt;p&gt;Updating to match new version of source page&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:41, 21 April 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l41&quot;&gt;Line 41:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 41:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Check the ID (if it&amp;#039;s the 1st : ID is 1) and use it for next instruction&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Check the ID (if it&amp;#039;s the 1st : ID is 1) and use it for next instruction&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Create the related translation : &amp;lt;code&amp;gt;INSERT INTO lime_message (id, language, translation) VALUES (&amp;#039;1&amp;#039;, &amp;#039;fr&amp;#039;, &amp;#039;Valider&amp;#039;); &amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Create the related translation : &amp;lt;code&amp;gt;INSERT INTO lime_message (id, language, translation) VALUES (&amp;#039;1&amp;#039;, &amp;#039;fr&amp;#039;, &amp;#039;Valider&amp;#039;); &amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;==Please Note==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The &amp;lt;code&amp;gt;category&amp;lt;/code&amp;gt; field in &amp;lt;code&amp;gt;lime_source_message&amp;lt;/code&amp;gt; must be an empty string (`&#039;&#039;`), not &amp;lt;code&amp;gt;NULL&amp;lt;/code&amp;gt;. If the category does not match exactly, &amp;lt;code&amp;gt;gT()&amp;lt;/code&amp;gt; will not find the source message, and your translation will not be applied. This is especially important when adding translations for theme-specific strings.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key c1manual-lsmw_:diff:1.41:old-377497:rev-381163:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>FuzzyBot</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Custom_translation/en&amp;diff=377497&amp;oldid=prev</id>
		<title>FuzzyBot: Updating to match new version of source page</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Custom_translation/en&amp;diff=377497&amp;oldid=prev"/>
		<updated>2024-05-23T08:22:16Z</updated>

		<summary type="html">&lt;p&gt;Updating to match new version of source page&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;languages /&amp;gt; &lt;br /&gt;
=Introduction=&lt;br /&gt;
&lt;br /&gt;
Since LimeSurvey 5.4.0 you can have your own translation for all strings in all included languages with direct access to your database.&lt;br /&gt;
&lt;br /&gt;
This system can be used if an existing translation is not compatible with your business needs.&lt;br /&gt;
&lt;br /&gt;
It should be reserved for specific cases, since text modifications in the heart of LimeSurvey will again require a modification of your database. &lt;br /&gt;
&lt;br /&gt;
Furthermore, you can use this method for translating Survey Theme specific strings.&lt;br /&gt;
&lt;br /&gt;
=How database translations works=&lt;br /&gt;
&lt;br /&gt;
For database translations, LimeSurvey uses a method inspired by [https://www.yiiframework.com/doc/api/1.1/CDbMessageSource CDbMessageSource] from the Yii framework.&lt;br /&gt;
&lt;br /&gt;
# find the string in SourceMessage table lime_source_message-&amp;gt;message, get the id : lime_source_message-&amp;gt;id&lt;br /&gt;
# if exists, find the related translation in Message table lime_message-&amp;gt;translation for current language lime_message-&amp;gt;language with current id lime_message-&amp;gt;id&lt;br /&gt;
&lt;br /&gt;
LimeSurvey creates the array with translations from po file (see [[Translating LimeSurvey]] for information how to update this file), and afterwards merges it with all translations from the database. &lt;br /&gt;
&lt;br /&gt;
Then the translations from the database are always returned if they exist.&lt;br /&gt;
&lt;br /&gt;
=Sample for “Submit” button in English and French=&lt;br /&gt;
&lt;br /&gt;
You want to show _Validate_ and not _Submit_ for the submit button in all of your surveys (with a specific theme). If you just update the theme and replace gT(&amp;#039;Submit&amp;#039;) by gT(&amp;#039;Validate&amp;#039;) : it always shows _Validate_ in all languages.&lt;br /&gt;
&lt;br /&gt;
==For all surveys with all themes==&lt;br /&gt;
&lt;br /&gt;
# Create the source message &amp;lt;code&amp;gt;INSERT INTO lime_source_message (id, category, message) VALUES (NULL, NULL, &amp;#039;Submit&amp;#039;);&amp;lt;/code&amp;gt;&lt;br /&gt;
# Check the ID (if it&amp;#039;s the 1st : ID is 1) and use it for next instruction&lt;br /&gt;
# Create the related translation : &amp;lt;code&amp;gt;INSERT INTO lime_message (id, language, translation) VALUES (&amp;#039;1&amp;#039;, &amp;#039;en&amp;#039;, &amp;#039;Validate&amp;#039;), (&amp;#039;1&amp;#039;, &amp;#039;fr&amp;#039;, &amp;#039;Valider&amp;#039;); &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Using your own theme (recommended solution)==&lt;br /&gt;
&lt;br /&gt;
This method uses a solution with your own template, it updates the default string for all other languages as well.&lt;br /&gt;
&lt;br /&gt;
# In [[Theme editor]] select the Navigation part&lt;br /&gt;
# Search for &amp;lt;code&amp;gt;{{ gT(&amp;quot;Submit&amp;quot;) }}&amp;lt;/code&amp;gt; (in navigator.twig)&lt;br /&gt;
# Replace by &amp;lt;code&amp;gt;{{ gT(&amp;quot;Validate&amp;quot;) }}&amp;lt;/code&amp;gt;&lt;br /&gt;
# Create the source message &amp;lt;code&amp;gt;INSERT INTO lime_source_message (id, category, message) VALUES (NULL, NULL, &amp;#039;Validate&amp;#039;);&amp;lt;/code&amp;gt;&lt;br /&gt;
# Check the ID (if it&amp;#039;s the 1st : ID is 1) and use it for next instruction&lt;br /&gt;
# Create the related translation : &amp;lt;code&amp;gt;INSERT INTO lime_message (id, language, translation) VALUES (&amp;#039;1&amp;#039;, &amp;#039;fr&amp;#039;, &amp;#039;Valider&amp;#039;); &amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>FuzzyBot</name></author>
	</entry>
</feed>