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={{ | + | | cn={{#vardefine:name|中文}}{{#vardefine:trans|Chinese}} |
− | | cz={{ | + | | cz={{#vardefine:name|Čeština}}{{#vardefine:trans|Czech}} |
− | | de={{ | + | | de={{#vardefine:name|Deutsch}}{{#vardefine:trans|German}} |
− | | dk={{ | + | | dk={{#vardefine:name|Dansk}}{{#vardefine:trans|Danish}} |
− | | en=English | + | | en={{#vardefine:name|English}}{{#vardefine:trans|English}}{{#vardefine:transonly|true}} |
− | | es={{ | + | | es={{#vardefine:name|Español}}{{#vardefine:trans|Spanish}} |
− | | fi={{ | + | | fi={{#vardefine:name|Suomi}}{{#vardefine:trans|Finnish}} |
− | | fr={{ | + | | fr={{#vardefine:name|Français}}{{#vardefine:trans|French}} |
− | | hu={{ | + | | hu={{#vardefine:name|Magyar}}{{#vardefine:trans|Hungarian}} |
− | | it={{ | + | | it={{#vardefine:name|Italiano}}{{#vardefine:trans|Italian}} |
− | | jp={{ | + | | jp={{#vardefine:name|日本語}}{{#vardefine:trans|Japanese}} |
− | | kr={{ | + | | kr={{#vardefine:name|한국어}}{{#vardefine:trans|Korean}} |
− | | nl={{ | + | | nl={{#vardefine:name|Nederlands}}{{#vardefine:trans|Dutch}} |
− | | no={{ | + | | no={{#vardefine:name|Norsk}}{{#vardefine:trans|Norwegian}} |
− | | pl={{ | + | | pl={{#vardefine:name|Polski}}{{#vardefine:trans|Polish}} |
− | | pt={{ | + | | pt={{#vardefine:name|Português}}{{#vardefine:trans|Portuguese}} |
− | | se={{ | + | | se={{#vardefine:name|Svenska}}{{#vardefine:trans|Swedish}} |
− | | ru={{ | + | | ru={{#vardefine:name|Русский}}{{#vardefine:trans|Russian}} |
− | | tr={{ | + | | 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.