Template:Language/archives/Uselang/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
<!-- Please place categories where indicated at the bottom of this page.) -->
<!-- Please place categories where indicated at the bottom of this page.) -->
This template designed to automatically detect your interface language specified in the settings. Since there is no easy way to get the interface language on this wiki, getting it is done by using a lot of messages written through the magic word {{Code|<nowiki>{{int:}}</nowiki>}}.
This template designed to automatically detect your interface language specified in the settings. Since there is no easy way to get the interface language on this wiki, getting it is done by using a lot of messages written through the magic word {{Code|<nowiki>{{int:}}</nowiki>}}.
 
== Parameters ==
*{{Code|preset=2|{{Param|default-none}}}}: Set the default language to a empty value instead of {{Code|en}}.
*{{Code|preset=2|{{Param|pref}}}}: The prefix before the language code. For example, {{Code|<nowiki>{{uselang|pref=/}}</nowiki>}} will return {{Code|{{uselang|pref=/}}}}.
== Note ==
== Note ==
{{Warning|If you think that your language was merged with another by mistake, then this is not so. Unfortunately, in order to determine the language, the interface of the site in this language must have at least some differences in order to be able to distinguish them, therefore the message “<lang> is the same as <anotherlang>, so it will be read as <anotherlang>.” was not done for optimization, but because there are no differences in the interface in this language.}}
{{Warning|If you think that your language was merged with another by mistake, then this is not so. Unfortunately, in order to determine the language, the interface of the site in this language must have at least some differences in order to be able to distinguish them, therefore the message “<lang> is the same as <anotherlang>, so it will be read as <anotherlang>.” was not done for optimization, but because there are no differences in the interface in this language.}}

Latest revision as of 04:56, 16 August 2024

Edit-copy.png
This is a documentation subpage for Template:Language.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

This template designed to automatically detect your interface language specified in the settings. Since there is no easy way to get the interface language on this wiki, getting it is done by using a lot of messages written through the magic word {{int:}}.

Parameters

  • {{{default-none}}}: Set the default language to a empty value instead of en.
  • {{{pref}}}: The prefix before the language code. For example, {{uselang|pref=/}} will return Template:Uselang.

Note

Warning.pngWarning:If you think that your language was merged with another by mistake, then this is not so. Unfortunately, in order to determine the language, the interface of the site in this language must have at least some differences in order to be able to distinguish them, therefore the message “<lang> is the same as <anotherlang>, so it will be read as <anotherlang>.” was not done for optimization, but because there are no differences in the interface in this language.

Notes:

  • The language 'aa' cannot be determined due to a missing translation of the interface into that language.
  • 'ady-cyrl' is the same as 'ady', so it will be read as 'ady'.
  • 'aeb-arab' is the same as 'aeb', so it will be read as 'aeb'.
  • The 'als' language is the 'gsw' language.
  • For some reason, in the 'ban' language, the {{int:talk}} wraps to a new line. It cannot be deleted, otherwise the language will not be determined.
  • The 'bat-smg' language is the 'sgs' language.
  • 'bbc-latn' is the same as 'bbc', so it will be read as 'bbc'.
  • 'be-tarask' and 'be-x-old' are the same. Both count as 'be-tarask'.
  • The language 'bh' is 'bho', so both will count as 'bho'.
  • The language 'cho' cannot be determined due to a missing translation of the interface into that language.
  • 'crh-latn' is the same as 'crh', so it will be read as 'crh'.
  • Languages ​​such as 'de-at' 'de-ch' and 'de-formal' are minimally different from 'de', so they will be read as 'de' unless they need to be unique!
  • Language 'en-ca' will count as 'en'.
  • The 'fiu-vro' language is the 'vro' language.
  • 'gan-hant' is the same as 'gan', so it will be read as 'gan'.
  • 'gom-deva' is the same as 'gom', so it will be read as 'gom'.
  • 'hif-latn' is the same as 'hif', so it will be read as 'hif'.
  • The language 'ho' cannot be determined due to a missing translation of the interface into that language.
  • 'hu-formal' is the same as 'hu', so it will be read as 'hu'.
  • The language 'hz' cannot be determined due to a missing translation of the interface into that language.
  • 'ike-cans' is the same as 'iu', so it will be read as 'iu'.
  • 'kbd-cyrl' is the same as 'kbd', so it will be read as 'kbd'.
  • The language 'ki' cannot be determined due to a missing translation of the interface into that language.
  • The language 'kj' cannot be determined due to a missing translation of the interface into that language.
  • 'kk-arab' is the same as 'kk-cn', so it will be read as 'kk-cn'.
  • 'kk-cyrl' and 'kk-kz' is the same as 'kk', so it will be read as 'kk'.
  • 'kk-latn' is the same as 'kk-tr', so it will be read as 'kk-tr'.
  • 'ko-kp' is the same as 'ko', so it will be read as 'ko'.
  • The language 'kr' cannot be determined due to a missing translation of the interface into that language.
  • 'ks-arab' is the same as 'ks', so it will be read as 'ks'.
  • 'ku-arab' is the same as 'ckb', so it will be read as 'ckb'.
  • 'ku-latn' is the same as 'ku', so it will be read as 'ku'.
  • The language 'mh' cannot be determined due to a missing translation of the interface into that language.
  • The language 'mus' cannot be determined due to a missing translation of the interface into that language.
  • The 'nb' language is the 'no' language.
  • The language 'ng' cannot be determined due to a missing translation of the interface into that language.
  • 'nl-informal' is the same as 'nl', so it will be read as 'nl'.
  • The language 'rn' cannot be determined due to a missing translation of the interface into that language.
  • The 'roa-rup' language is the 'rup' language.
  • 'ruq-latn' is the same as 'ruq', so it will be read as 'ruq'.
  • The language 'shi-latn' cannot be determined due to a missing translation of the interface into that language.
  • The language 'shi-tfng' cannot be determined due to a missing translation of the interface into that language.
  • The 'simple' language is the 'en' language.
  • 'skr-arab' is the same as 'skr', so it will be read as 'skr'.
  • 'sr-ec' is the same as 'sr', so it will be read as 'sr'.
  • 'tg-cyrl' is the same as 'tg', so it will be read as 'tg'.
  • 'tt-cyrl' is the same as 'tt', so it will be read as 'tt'.
  • The language 'tum' cannot be determined due to a missing translation of the interface into that language.
  • 'ug-arab' is the same as 'ug', so it will be read as 'ug'.
  • The language 'uz-cyrl' cannot be determined due to a missing translation of the interface into that language.
  • The language 'uz-latn' cannot be determined due to a missing translation of the interface into that language.
  • The 'zh-classical' language is the 'lzh' language.
  • 'zh-cn' is the same as 'zh', so it will be read as 'zh'.
  • 'zh-hans' is the same as 'zh', so it will be read as 'zh'.
  • 'zh-hant' is the same as 'zh-tw', so it will be read as 'zh-tw'.
  • 'zh-hk' is the same as 'zh-tw', so it will be read as 'zh-tw'.
  • The 'zh-min-nan' language is the 'nan' language.
  • 'zh-mo' is the same as 'zh-tw', so it will be read as 'zh-tw'.
  • 'zh-my' is the same as 'zh', so it will be read as 'zh'.
  • 'zh-sg' is the same as 'zh', so it will be read as 'zh'.
  • The 'zh-yue' language is the 'yue' language.