Difference between revisions of "LanguageCode2Language"

From Sega Retro

(Created page with "{{#switch:{{{1|}}} | cn={{rolloverText|中文|Chinese}} | cz={{rolloverText|Čeština|Czech}} | de={{rolloverText|Deutsch|German}} | dk={{rolloverText|Dansk|Danish}} | en=Engl...")
 
Line 1: Line 1:
{{#switch:{{{1|}}}
+
{{#vardefine:transonly|{{{transonly|}}}}}{{#switch:{{lc:{{{1|}}}}}
| cn={{rolloverText|中文|Chinese}}
+
| cn={{#vardefine:name|中文}}{{#vardefine:trans|Chinese}}
| cz={{rolloverText|Čeština|Czech}}
+
| cz={{#vardefine:name|Čeština}}{{#vardefine:trans|Czech}}
| de={{rolloverText|Deutsch|German}}
+
| de={{#vardefine:name|Deutsch}}{{#vardefine:trans|German}}
| dk={{rolloverText|Dansk|Danish}}
+
| dk={{#vardefine:name|Dansk}}{{#vardefine:trans|Danish}}
| en=English
+
| en={{#vardefine:name|English}}{{#vardefine:trans|English}}{{#vardefine:transonly|true}}
| es={{rolloverText|Español|Spanish}}
+
| es={{#vardefine:name|Español}}{{#vardefine:trans|Spanish}}
| fi={{rolloverText|Suomi|Finnish}}
+
| fi={{#vardefine:name|Suomi}}{{#vardefine:trans|Finnish}}
| fr={{rolloverText|Français|French}}
+
| fr={{#vardefine:name|Français}}{{#vardefine:trans|French}}
| hu={{rolloverText|Magyar|Hungarian}}
+
| hu={{#vardefine:name|Magyar}}{{#vardefine:trans|Hungarian}}
| it={{rolloverText|Italiano|Italian}}
+
| it={{#vardefine:name|Italiano}}{{#vardefine:trans|Italian}}
| jp={{rolloverText|日本語|Japanese}}
+
| jp={{#vardefine:name|日本語}}{{#vardefine:trans|Japanese}}
| kr={{rolloverText|한국어|Korean}}
+
| kr={{#vardefine:name|한국어}}{{#vardefine:trans|Korean}}
| nl={{rolloverText|Nederlands|Dutch}}
+
| nl={{#vardefine:name|Nederlands}}{{#vardefine:trans|Dutch}}
| no={{rolloverText|Norsk|Norwegian}}
+
| no={{#vardefine:name|Norsk}}{{#vardefine:trans|Norwegian}}
| pl={{rolloverText|Polski|Polish}}
+
| pl={{#vardefine:name|Polski}}{{#vardefine:trans|Polish}}
| pt={{rolloverText|Português|Portuguese}}
+
| pt={{#vardefine:name|Português}}{{#vardefine:trans|Portuguese}}
| se={{rolloverText|Svenska|Swedish}}
+
| se={{#vardefine:name|Svenska}}{{#vardefine:trans|Swedish}}
| ru={{rolloverText|Русский|Russian}}
+
| ru={{#vardefine:name|Русский}}{{#vardefine:trans|Russian}}
| tr={{rolloverText|Türkçe|Turkish}}
+
| tr={{#vardefine:name|Türkçe}}{{#vardefine:trans|Turkish}}
}}<noinclude>[[Category:Sega Retro templates]]</noinclude>
+
}}{{#ifeq:{{#var:transonly}}|true|{{#var:trans}}|{{rolloverText|{{#var:name}}|{{#var:trans}}}}}}{{#vardefine:name|}}{{#vardefine:trans|}}{{#vardefine:transonly|}}<noinclude>
 +
 
 +
Template for converting a two-character language code into the name of the language. e.g.
 +
<pre>{{LanguageCode2Language|cn}}</pre>
 +
{{LanguageCode2Language|cn}}
 +
<pre>{{LanguageCode2Language|cn|transonly=true}}</pre>
 +
{{LanguageCode2Language|cn|transonly=true}}
 +
 
 +
English (en) is not translated.
 +
 
 +
[[Category:Sega Retro templates]]</noinclude>

Revision as of 05:43, 1 August 2019

Template for converting a two-character language code into the name of the language. e.g.

{{LanguageCode2Language|cn}}

中文

{{LanguageCode2Language|cn|transonly=true}}

Chinese

English (en) is not translated.