<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://modiki.civfanatics.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Merri</id>
	<title>Civilization Modding Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://modiki.civfanatics.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Merri"/>
	<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php/Special:Contributions/Merri"/>
	<updated>2026-04-21T10:41:21Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://modiki.civfanatics.com/index.php?title=Localization_Tutorial_(Civ5)&amp;diff=14185</id>
		<title>Localization Tutorial (Civ5)</title>
		<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=Localization_Tutorial_(Civ5)&amp;diff=14185"/>
		<updated>2013-01-12T03:18:01Z</updated>

		<summary type="html">&lt;p&gt;Merri: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This small tutorial is an attempt to bring some light into how you can actually use the provided string forms, genders and plurality. It is recommended to read [http://wiki.2kgames.com/civ5/index.php/Mods:AddingNewLanguage Adding New Language] and [http://wiki.2kgames.com/civ5/index.php/Mods:LocalizationSyntax Localization Syntax] first as this tutorial mostly focuses on details not available in the official documentation.&lt;br /&gt;
&lt;br /&gt;
Information on this page is based on Civilization V version 1.0.2.21&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Transforms==&lt;br /&gt;
&lt;br /&gt;
===:gender===&lt;br /&gt;
&lt;br /&gt;
Gender transform allows you to select which text alongside the currently active gender is shown depending on what the gender is.&lt;br /&gt;
&lt;br /&gt;
First here we have some sample data to look at:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;Row Tag=&amp;quot;TXT_KEY_SAMPLE&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Text&amp;gt;Form 1|Form 2|Form 3|Form 4&amp;lt;/Text&amp;gt;&lt;br /&gt;
    &amp;lt;Gender&amp;gt;neuter:trait_one|masculine:trait_two|feminine:trait_three|mixed:trait_four&amp;lt;/Gender&amp;gt;&lt;br /&gt;
&amp;lt;/Row&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
neuter, masculine, feminine and mixed are hardcoded gender values and must be used. The second part values after : are called traits and you can call them anything you like. They can be left undefined, so you can do something like this as well:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;Row Tag=&amp;quot;TXT_KEY_TRAIT_GRACIOUS&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Text&amp;gt;Courtois|Courtoise&amp;lt;/Text&amp;gt;&lt;br /&gt;
    &amp;lt;Gender&amp;gt;masculine|feminine&amp;lt;/Gender&amp;gt;&lt;br /&gt;
&amp;lt;/Row&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A practical French sample:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{1:gender *:vowel?l&#039;; masculine?le ; feminine?la ;}{1}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;le garçon&#039;&#039;&#039; (&amp;quot;garçon&amp;quot; is masculine)&lt;br /&gt;
* &#039;&#039;&#039;la fille&#039;&#039;&#039; (&amp;quot;fille&amp;quot; is feminine)&lt;br /&gt;
* &#039;&#039;&#039;l&#039;arbre&#039;&#039;&#039; (&amp;quot;arbre&amp;quot; is masculine)&lt;br /&gt;
* &#039;&#039;&#039;l&#039;église&#039;&#039;&#039; (&amp;quot;église&amp;quot; is feminine)&lt;br /&gt;
&lt;br /&gt;
Or against TXT_KEY_SAMPLE:&lt;br /&gt;
&lt;br /&gt;
* le Form 2&lt;br /&gt;
* la Form 3&lt;br /&gt;
&lt;br /&gt;
Note that at this point the system knows which is the selected gender for {1} and thus the result depends on that. You can find information on how to select a specific gender manually further below in this article.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===:plural===&lt;br /&gt;
&lt;br /&gt;
Allows you to define a plural form.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;Row Tag=&amp;quot;TXT_KEY_HORSE&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Text&amp;gt;hevonen|hevosta|hevoset|hevosista&amp;lt;/Text&amp;gt;&lt;br /&gt;
    &amp;lt;Gender&amp;gt;neuter:nominative|neuter:elative|neuter:nominative|neuter:elative&amp;lt;/Gender&amp;gt;&lt;br /&gt;
    &amp;lt;Plurality&amp;gt;1|1|2|2&amp;lt;/Plurality&amp;gt;&lt;br /&gt;
&amp;lt;/Row&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The sample above is already a slightly complex case as the basic Finnish form for a &amp;quot;horse&amp;quot; is &amp;quot;hevonen&amp;quot; and &amp;quot;horses&amp;quot; would be &amp;quot;hevoset&amp;quot;. However when dealing with numbers Finnish uses elative case when we are telling how many horses we have, which is unlike English.&lt;br /&gt;
&lt;br /&gt;
====Plurality with just the number====&lt;br /&gt;
&lt;br /&gt;
{1} = any number&lt;br /&gt;
{2} = TXT_KEY_HORSE&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{1:plural 1?Yksi {2}; other?{1} {2 ^ &#039;neuter:elative&#039;};}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Results:&lt;br /&gt;
* Yksi hevonen (one horse)&lt;br /&gt;
* 2 hevosta (two horses)&lt;br /&gt;
* 3 hevosta (three horses)&lt;br /&gt;
&lt;br /&gt;
====Plurality with everything====&lt;br /&gt;
&lt;br /&gt;
{1} = any number&lt;br /&gt;
{2} = TXT_KEY_HORSE&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{1:plural 1?Yksi {2}; other?{1} {2 * {1} ^ &#039;neuter:elative&#039;};}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Results:&lt;br /&gt;
* Yksi hevonen (one horse)&lt;br /&gt;
* 2 hevosista (two of the horses)&lt;br /&gt;
* 3 hevosista (three of the horses)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===TODO===&lt;br /&gt;
* :textkey&lt;br /&gt;
* :upper&lt;br /&gt;
* :lower&lt;br /&gt;
* :title&lt;br /&gt;
* :percent&lt;br /&gt;
* :number&lt;br /&gt;
* :roman&lt;br /&gt;
* :spellout&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Forms, gender and plurality==&lt;br /&gt;
&lt;br /&gt;
Sample data:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;Row Tag=&amp;quot;TXT_KEY_SAMPLE&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Text&amp;gt;Form 1|Form 2|Form 3|Form 4&amp;lt;/Text&amp;gt;&lt;br /&gt;
    &amp;lt;Gender&amp;gt;neuter:trait_one|masculine:trait_two|feminine:trait_three|mixed:trait_four&amp;lt;/Gender&amp;gt;&lt;br /&gt;
    &amp;lt;Plurality&amp;gt;1|1|1|2&amp;lt;/Plurality&amp;gt;&lt;br /&gt;
&amp;lt;/Row&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the following examples &#039;&#039;&#039;there must be no lookup @ character&#039;&#039;&#039; with any form, gender or plural selection.&lt;br /&gt;
&lt;br /&gt;
===Selecting a form===&lt;br /&gt;
&lt;br /&gt;
You can select a specific form by using brackets.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;Text&amp;gt;This is my {1_Sample[2]}&amp;lt;/Text&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Result: &amp;quot;This is my Form 2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Selecting a gender===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;Text&amp;gt;This is my {1_Sample ^ &#039;feminine:trait_three&#039;}&amp;lt;/Text&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Result: &amp;quot;This is my Form 3&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Selecting a plural===&lt;br /&gt;
&lt;br /&gt;
2_Num = 2&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;Text&amp;gt;This is my {1_Sample * 2_Num}&amp;lt;/Text&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Result: &amp;quot;This is my Form 4&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Transforms with forms, gender or plural===&lt;br /&gt;
&lt;br /&gt;
You cannot mix a form, gender or plural selector with a transform. &#039;&#039;&#039;Transform always applies to the first form available&#039;&#039;&#039;. If there is a solution to this problem it is unknown.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==List of tags with no meta information==&lt;br /&gt;
&lt;br /&gt;
Unfortunatenaly some of the strings do not provide the meta information required for gender and plurality information. For instance many string that have a single number string ignore the fact someone might want to check it for plurality. So if we have {1_Num} then this just simply won&#039;t work:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{1_Num} {1:plural 1?turn; other?turns;}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With string that do not provide meta information you&#039;ll always get the first case, ie. 1 turn, 2 turn, 3 turn and not the expected 1 turn, 2 turns, 3 turns.&lt;br /&gt;
&lt;br /&gt;
This is a very &#039;&#039;&#039;incomplete&#039;&#039;&#039; list of such strings.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;table class=&amp;quot;wikitable&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;Tag&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Strings&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;Notes&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;TXT_KEY_WORKER_BUILD_PROGRESS&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;{1_Num} {2_WorkerBuildName}&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;No :gender, no :plural&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;TXT_KEY_NEXT_POLICY_TURN_LABEL&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;{1_Num}&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;:number works, no :plural&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;TXT_KEY_CITY_BURNING&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;{1_Num}&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;No plural&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;TXT_KEY_CITY_RESISTANCE&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;{1_Num}&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;No plural&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;...&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;...&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;...&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;/div&gt;</summary>
		<author><name>Merri</name></author>
	</entry>
	<entry>
		<id>https://modiki.civfanatics.com/index.php?title=Localization_Tutorial_(Civ5)&amp;diff=14173</id>
		<title>Localization Tutorial (Civ5)</title>
		<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=Localization_Tutorial_(Civ5)&amp;diff=14173"/>
		<updated>2013-01-06T00:23:32Z</updated>

		<summary type="html">&lt;p&gt;Merri: Plurality with everything&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This small tutorial is an attempt to bring some light into how you can actually use the provided string forms, genders and plurality. It is recommended to read [http://wiki.2kgames.com/civ5/index.php/Mods:AddingNewLanguage Adding New Language] and [http://wiki.2kgames.com/civ5/index.php/Mods:LocalizationSyntax Localization Syntax] first as this tutorial mostly focuses on details not available in the official documentation.&lt;br /&gt;
&lt;br /&gt;
==Transforms==&lt;br /&gt;
&lt;br /&gt;
===:gender===&lt;br /&gt;
&lt;br /&gt;
Gender transform allows you to select which text alongside the currently active gender is shown depending on what the gender is.&lt;br /&gt;
&lt;br /&gt;
First here we have some sample data to look at:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;Row Tag=&amp;quot;TXT_KEY_SAMPLE&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Text&amp;gt;Form 1|Form 2|Form 3|Form 4&amp;lt;/Text&amp;gt;&lt;br /&gt;
    &amp;lt;Gender&amp;gt;neuter:trait_one|masculine:trait_two|feminine:trait_three|mixed:trait_four&amp;lt;/Gender&amp;gt;&lt;br /&gt;
&amp;lt;/Row&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
neuter, masculine, feminine and mixed are hardcoded gender values and must be used. The second part values after : are called traits and you can call them anything you like. They can be left undefined, so you can do something like this as well:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;Row Tag=&amp;quot;TXT_KEY_TRAIT_GRACIOUS&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Text&amp;gt;Courtois|Courtoise&amp;lt;/Text&amp;gt;&lt;br /&gt;
    &amp;lt;Gender&amp;gt;masculine|feminine&amp;lt;/Gender&amp;gt;&lt;br /&gt;
&amp;lt;/Row&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A practical French sample:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{1:gender *:vowel?l&#039;; masculine?le ; feminine?la ;}{1}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;le garçon&#039;&#039;&#039; (&amp;quot;garçon&amp;quot; is masculine)&lt;br /&gt;
* &#039;&#039;&#039;la fille&#039;&#039;&#039; (&amp;quot;fille&amp;quot; is feminine)&lt;br /&gt;
* &#039;&#039;&#039;l&#039;arbre&#039;&#039;&#039; (&amp;quot;arbre&amp;quot; is masculine)&lt;br /&gt;
* &#039;&#039;&#039;l&#039;église&#039;&#039;&#039; (&amp;quot;église&amp;quot; is feminine)&lt;br /&gt;
&lt;br /&gt;
Or against TXT_KEY_SAMPLE:&lt;br /&gt;
&lt;br /&gt;
* le Form 2&lt;br /&gt;
* la Form 3&lt;br /&gt;
&lt;br /&gt;
Note that at this point the system knows which is the selected gender for {1} and thus the result depends on that. You can find information on how to select a specific gender manually further below in this article.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===:plural===&lt;br /&gt;
&lt;br /&gt;
Allows you to define a plural form.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;Row Tag=&amp;quot;TXT_KEY_HORSE&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Text&amp;gt;hevonen|hevosta|hevoset|hevosista&amp;lt;/Text&amp;gt;&lt;br /&gt;
    &amp;lt;Gender&amp;gt;neuter:nominative|neuter:elative|neuter:nominative|neuter:elative&amp;lt;/Gender&amp;gt;&lt;br /&gt;
    &amp;lt;Plurality&amp;gt;1|1|2|2&amp;lt;/Plurality&amp;gt;&lt;br /&gt;
&amp;lt;/Row&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The sample above is already a slightly complex case as the basic Finnish form for a &amp;quot;horse&amp;quot; is &amp;quot;hevonen&amp;quot; and &amp;quot;horses&amp;quot; would be &amp;quot;hevoset&amp;quot;. However when dealing with numbers Finnish uses elative case when we are telling how many horses we have, which is unlike English.&lt;br /&gt;
&lt;br /&gt;
====Plurality with just the number====&lt;br /&gt;
&lt;br /&gt;
{1} = any number&lt;br /&gt;
{2} = TXT_KEY_HORSE&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{1:plural 1?Yksi {2}; other?{1} {2 ^ &#039;neuter:elative&#039;};}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Results:&lt;br /&gt;
* Yksi hevonen (one horse)&lt;br /&gt;
* 2 hevosta (two horses)&lt;br /&gt;
* 3 hevosta (three horses)&lt;br /&gt;
&lt;br /&gt;
====Plurality with everything====&lt;br /&gt;
&lt;br /&gt;
{1} = any number&lt;br /&gt;
{2} = TXT_KEY_HORSE&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{1:plural 1?Yksi {2}; other?{1} {2 * {1} ^ &#039;neuter:elative&#039;};}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Results:&lt;br /&gt;
* Yksi hevonen (one horse)&lt;br /&gt;
* 2 hevosista (two of the horses)&lt;br /&gt;
* 3 hevosista (three of the horses)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===TODO===&lt;br /&gt;
* :textkey&lt;br /&gt;
* :upper&lt;br /&gt;
* :lower&lt;br /&gt;
* :title&lt;br /&gt;
* :percent&lt;br /&gt;
* :number&lt;br /&gt;
* :roman&lt;br /&gt;
* :spellout&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Forms, gender and plurality==&lt;br /&gt;
&lt;br /&gt;
Sample data:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;Row Tag=&amp;quot;TXT_KEY_SAMPLE&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Text&amp;gt;Form 1|Form 2|Form 3|Form 4&amp;lt;/Text&amp;gt;&lt;br /&gt;
    &amp;lt;Gender&amp;gt;neuter:trait_one|masculine:trait_two|feminine:trait_three|mixed:trait_four&amp;lt;/Gender&amp;gt;&lt;br /&gt;
    &amp;lt;Plurality&amp;gt;1|1|1|2&amp;lt;/Plurality&amp;gt;&lt;br /&gt;
&amp;lt;/Row&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the following examples &#039;&#039;&#039;there must be no lookup @ character&#039;&#039;&#039; with any form, gender or plural selection.&lt;br /&gt;
&lt;br /&gt;
===Selecting a form===&lt;br /&gt;
&lt;br /&gt;
You can select a specific form by using brackets.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;Text&amp;gt;This is my {1_Sample[2]}&amp;lt;/Text&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Result: &amp;quot;This is my Form 2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Selecting a gender===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;Text&amp;gt;This is my {1_Sample ^ &#039;feminine:trait_three&#039;}&amp;lt;/Text&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Result: &amp;quot;This is my Form 3&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Selecting a plural===&lt;br /&gt;
&lt;br /&gt;
2_Num = 2&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;Text&amp;gt;This is my {1_Sample * 2_Num}&amp;lt;/Text&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Result: &amp;quot;This is my Form 4&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Transforms with forms, gender or plural===&lt;br /&gt;
&lt;br /&gt;
You cannot mix a form, gender or plural selector with a transform. &#039;&#039;&#039;Transform always applies to the first form available&#039;&#039;&#039;. If there is a solution to this problem it is unknown.&lt;/div&gt;</summary>
		<author><name>Merri</name></author>
	</entry>
	<entry>
		<id>https://modiki.civfanatics.com/index.php?title=Talk:Localization_Tutorial_(Civ5)&amp;diff=14172</id>
		<title>Talk:Localization Tutorial (Civ5)</title>
		<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=Talk:Localization_Tutorial_(Civ5)&amp;diff=14172"/>
		<updated>2013-01-05T22:59:45Z</updated>

		<summary type="html">&lt;p&gt;Merri: Created page with &amp;quot;==Checklist== &amp;lt;pre&amp;gt;{1:plural 1?Yksi {2}; other?{1} {{2 * {1}} ^ &amp;#039;neuter:elative&amp;#039;};}&amp;lt;/pre&amp;gt; To remind myself to check if this really works or not. Not a high priority though as I g...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Checklist==&lt;br /&gt;
&amp;lt;pre&amp;gt;{1:plural 1?Yksi {2}; other?{1} {{2 * {1}} ^ &#039;neuter:elative&#039;};}&amp;lt;/pre&amp;gt;&lt;br /&gt;
To remind myself to check if this really works or not. Not a high priority though as I guess nobody would really need this. --[[User:Merri|Merri]] 22:59, 5 January 2013 (UTC)&lt;/div&gt;</summary>
		<author><name>Merri</name></author>
	</entry>
	<entry>
		<id>https://modiki.civfanatics.com/index.php?title=Localization_Tutorial_(Civ5)&amp;diff=14171</id>
		<title>Localization Tutorial (Civ5)</title>
		<link rel="alternate" type="text/html" href="https://modiki.civfanatics.com/index.php?title=Localization_Tutorial_(Civ5)&amp;diff=14171"/>
		<updated>2013-01-05T22:57:05Z</updated>

		<summary type="html">&lt;p&gt;Merri: I hope there are no errors in this first version. And I also hope I have time/interest later on to improve this article.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This small tutorial is an attempt to bring some light into how you can actually use the provided string forms, genders and plurality. It is recommended to read [http://wiki.2kgames.com/civ5/index.php/Mods:AddingNewLanguage Adding New Language] and [http://wiki.2kgames.com/civ5/index.php/Mods:LocalizationSyntax Localization Syntax] first as this tutorial mostly focuses on details not available in the official documentation.&lt;br /&gt;
&lt;br /&gt;
==Transforms==&lt;br /&gt;
&lt;br /&gt;
===:gender===&lt;br /&gt;
&lt;br /&gt;
Gender transform allows you to select which text alongside the currently active gender is shown depending on what the gender is.&lt;br /&gt;
&lt;br /&gt;
First here we have some sample data to look at:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;Row Tag=&amp;quot;TXT_KEY_SAMPLE&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Text&amp;gt;Form 1|Form 2|Form 3|Form 4&amp;lt;/Text&amp;gt;&lt;br /&gt;
    &amp;lt;Gender&amp;gt;neuter:trait_one|masculine:trait_two|feminine:trait_three|mixed:trait_four&amp;lt;/Gender&amp;gt;&lt;br /&gt;
&amp;lt;/Row&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
neuter, masculine, feminine and mixed are hardcoded gender values and must be used. The second part values after : are called traits and you can call them anything you like. They can be left undefined, so you can do something like this as well:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;Row Tag=&amp;quot;TXT_KEY_TRAIT_GRACIOUS&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Text&amp;gt;Courtois|Courtoise&amp;lt;/Text&amp;gt;&lt;br /&gt;
    &amp;lt;Gender&amp;gt;masculine|feminine&amp;lt;/Gender&amp;gt;&lt;br /&gt;
&amp;lt;/Row&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A practical French sample:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{1:gender *:vowel?l&#039;; masculine?le ; feminine?la ;}{1}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;le garçon&#039;&#039;&#039; (&amp;quot;garçon&amp;quot; is masculine)&lt;br /&gt;
* &#039;&#039;&#039;la fille&#039;&#039;&#039; (&amp;quot;fille&amp;quot; is feminine)&lt;br /&gt;
* &#039;&#039;&#039;l&#039;arbre&#039;&#039;&#039; (&amp;quot;arbre&amp;quot; is masculine)&lt;br /&gt;
* &#039;&#039;&#039;l&#039;église&#039;&#039;&#039; (&amp;quot;église&amp;quot; is feminine)&lt;br /&gt;
&lt;br /&gt;
Or against TXT_KEY_SAMPLE:&lt;br /&gt;
&lt;br /&gt;
* le Form 2&lt;br /&gt;
* la Form 3&lt;br /&gt;
&lt;br /&gt;
Note that at this point the system knows which is the selected gender for {1} and thus the result depends on that. You can find information on how to select a specific gender manually further below in this article.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===:plural===&lt;br /&gt;
&lt;br /&gt;
Allows you to define a plural form.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;Row Tag=&amp;quot;TXT_KEY_HORSE&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Text&amp;gt;hevonen|hevosta|hevoset|hevosista&amp;lt;/Text&amp;gt;&lt;br /&gt;
    &amp;lt;Gender&amp;gt;neuter:nominative|neuter:elative|neuter:nominative|neuter:elative&amp;lt;/Gender&amp;gt;&lt;br /&gt;
    &amp;lt;Plurality&amp;gt;1|1|2|2&amp;lt;/Plurality&amp;gt;&lt;br /&gt;
&amp;lt;/Row&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The sample above is already a slightly complex case as the basic Finnish form for a &amp;quot;horse&amp;quot; is &amp;quot;hevonen&amp;quot; and &amp;quot;horses&amp;quot; would be &amp;quot;hevoset&amp;quot;. However when dealing with numbers Finnish uses elative case when we are telling how many horses we have, which is unlike English.&lt;br /&gt;
&lt;br /&gt;
====Plurality with just the number====&lt;br /&gt;
&lt;br /&gt;
{1} = any number&lt;br /&gt;
{2} = TXT_KEY_HORSE&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{1:plural 1?Yksi {2}; other?{1} {2 ^ &#039;neuter:elative&#039;};}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Results:&lt;br /&gt;
* Yksi hevonen (one horse)&lt;br /&gt;
* 2 hevosta (two horses)&lt;br /&gt;
* 3 hevosta (three horses)&lt;br /&gt;
&lt;br /&gt;
====Plurality with everything====&lt;br /&gt;
&lt;br /&gt;
{1} = any number&lt;br /&gt;
{2} = TXT_KEY_HORSE&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{1:plural 1?Yksi {2}; other?{1} {{2 * {1}} ^ &#039;neuter:elative&#039;};}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Results:&lt;br /&gt;
* Yksi hevonen (one horse)&lt;br /&gt;
* 2 hevosista (two of the horses)&lt;br /&gt;
* 3 hevosista (three of the horses)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===TODO===&lt;br /&gt;
* :textkey&lt;br /&gt;
* :upper&lt;br /&gt;
* :lower&lt;br /&gt;
* :title&lt;br /&gt;
* :percent&lt;br /&gt;
* :number&lt;br /&gt;
* :roman&lt;br /&gt;
* :spellout&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Forms, gender and plurality==&lt;br /&gt;
&lt;br /&gt;
Sample data:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;Row Tag=&amp;quot;TXT_KEY_SAMPLE&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;Text&amp;gt;Form 1|Form 2|Form 3|Form 4&amp;lt;/Text&amp;gt;&lt;br /&gt;
    &amp;lt;Gender&amp;gt;neuter:trait_one|masculine:trait_two|feminine:trait_three|mixed:trait_four&amp;lt;/Gender&amp;gt;&lt;br /&gt;
    &amp;lt;Plurality&amp;gt;1|1|1|2&amp;lt;/Plurality&amp;gt;&lt;br /&gt;
&amp;lt;/Row&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the following examples &#039;&#039;&#039;there must be no lookup @ character&#039;&#039;&#039; with any form, gender or plural selection.&lt;br /&gt;
&lt;br /&gt;
===Selecting a form===&lt;br /&gt;
&lt;br /&gt;
You can select a specific form by using brackets.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;Text&amp;gt;This is my {1_Sample[2]}&amp;lt;/Text&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Result: &amp;quot;This is my Form 2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Selecting a gender===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;Text&amp;gt;This is my {1_Sample ^ &#039;feminine:trait_three&#039;}&amp;lt;/Text&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Result: &amp;quot;This is my Form 3&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Selecting a plural===&lt;br /&gt;
&lt;br /&gt;
2_Num = 2&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;Text&amp;gt;This is my {1_Sample * 2_Num}&amp;lt;/Text&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Result: &amp;quot;This is my Form 4&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Transforms with forms, gender or plural===&lt;br /&gt;
&lt;br /&gt;
You cannot mix a form, gender or plural selector with a transform. &#039;&#039;&#039;Transform always applies to the first form available&#039;&#039;&#039;. If there is a solution to this problem it is unknown.&lt;/div&gt;</summary>
		<author><name>Merri</name></author>
	</entry>
</feed>