Difference between revisions of "Template:L10n/switch"

From PCGamingWiki, the wiki about fixing PC games
(changed English vardefine to support fan (hackable) state)
m ({{{fan}}} -> {{{fan|}}})
 
(One intermediate revision by one other user not shown)
Line 59: Line 59:
 
  |Vietnamese
 
  |Vietnamese
 
  |Welsh = {{L10n/row|lang={{{language}}}|ui={{{interface}}}|subs={{{subtitles|unknown}}}|audio={{{audio|unknown}}}|notes={{{notes|}}}|fan={{{fan|}}}|ref={{{ref|}}}}}
 
  |Welsh = {{L10n/row|lang={{{language}}}|ui={{{interface}}}|subs={{{subtitles|unknown}}}|audio={{{audio|unknown}}}|notes={{{notes|}}}|fan={{{fan|}}}|ref={{{ref|}}}}}
  |English = {{L10n/row|lang=English|ui={{{interface}}}|subs={{{subtitles|unknown}}}|audio={{{audio|unknown}}}|notes={{{notes|}}}|fan={{{fan|}}}|ref={{{ref|}}}}}{{#switch:{{{fan|}}}
+
  |English = {{L10n/row|lang=English|ui={{{interface}}}|subs={{{subtitles|unknown}}}|audio={{{audio|unknown}}}|notes={{{notes|}}}|fan={{{fan|}}}|ref={{{ref|}}}}}
|false={{#vardefine:English|true}}
 
|true={{#ifeq:{{#var:English|true}}|true||{{#vardefine:English|hackable}}}}
 
}}
 
 
  |Farsi
 
  |Farsi
 
  |Persian = {{L10n/row|lang=Persian|ui={{{interface}}}|subs={{{subtitles|unknown}}}|audio={{{audio|unknown}}}|notes={{{notes|}}}|fan={{{fan|}}}|ref={{{ref|}}}}}
 
  |Persian = {{L10n/row|lang=Persian|ui={{{interface}}}|subs={{{subtitles|unknown}}}|audio={{{audio|unknown}}}|notes={{{notes|}}}|fan={{{fan|}}}|ref={{{ref|}}}}}
Line 75: Line 72:
 
  |Latin American Spanish = {{L10n/row|lang=Latin American Spanish|ui={{{interface}}}|subs={{{subtitles|unknown}}}|audio={{{audio|unknown}}}|notes={{{notes|}}}|fan={{{fan|}}}|ref={{{ref|}}}}}
 
  |Latin American Spanish = {{L10n/row|lang=Latin American Spanish|ui={{{interface}}}|subs={{{subtitles|unknown}}}|audio={{{audio|unknown}}}|notes={{{notes|}}}|fan={{{fan|}}}|ref={{{ref|}}}}}
 
  |#Default = {{L10n/row|lang=Unrecognized language|ui=Language {{{language|}}}|subs=Language {{{language|}}}|audio=Language {{{language|}}}|notes=Unrecognized language ''''{{{language|}}}'''', see [[Template:L10n|here]] for available options.|fan={{{fan|}}}|ref={{{ref|}}}}} [[Category:Invalid template usage (Localizations)]]
 
  |#Default = {{L10n/row|lang=Unrecognized language|ui=Language {{{language|}}}|subs=Language {{{language|}}}|audio=Language {{{language|}}}|notes=Unrecognized language ''''{{{language|}}}'''', see [[Template:L10n|here]] for available options.|fan={{{fan|}}}|ref={{{ref|}}}}} [[Category:Invalid template usage (Localizations)]]
 +
}}{{#switch:{{{language}}}{{{fan|}}}
 +
|Englishtrue={{#ifeq:{{#var:English|true}}|true||{{#vardefine:English|hackable}}}}
 +
|Englishfalse={{#vardefine:English|true}}
 +
|English={{#vardefine:English|true}}
 +
|default=
 
}}{{#if:{{{fannotes|}}}|[[Category:Invalid template usage (Localizations)]]}}</includeonly><noinclude>{{Documentation}}</noinclude>
 
}}{{#if:{{{fannotes|}}}|[[Category:Invalid template usage (Localizations)]]}}</includeonly><noinclude>{{Documentation}}</noinclude>

Latest revision as of 17:54, 21 October 2021

Documentation for the above template (sometimes hidden from view).

The following languages are currently supported by the template:

  • English
  • Afrikaans
  • Albanian
  • Arabic
  • Asturian
  • Basque
  • Belarusian
  • Breton
  • Bulgarian
  • Simplified Chinese
  • Traditional Chinese
  • Catalan
  • Cornish
  • Croatian
  • Czech
  • Danish
  • Dutch
  • Estonian
  • Filipino
  • Finnish
  • French
  • Galician
  • Georgian
  • German
  • Greek
  • Hebrew
  • Hindi
  • Hungarian
  • Icelandic
  • Indonesian
  • Inuktitut
  • Irish
  • Italian
  • Japanese
  • Korean
  • Latin
  • Latvian
  • Lithuanian
  • Luxembourgish
  • Macedonian
  • Malay
  • Māori
  • Norwegian
  • Persian
  • Polish
  • Portuguese
  • Brazilian Portuguese
    Portuguese - Brazil
  • Ripuarian
  • Romanian
  • Russian
  • Scottish Gaelic
  • Serbian
  • Slovak
  • Slovenian
  • Slovene
  • Spanish
  • Spanish - Spain
  • Latin American Spanish
    Spanish - Latin America
    Mexican Spanish
  • Swedish
  • Tagalog
  • Tatar
  • Thai
  • Turkish
  • Ukrainian
  • Valencian
  • Vietnamese
  • Welsh