Template:Language name/en: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<noinclude>This template was generated by taking the list of Valve Developer Community's languages from its API, and cross referencing it with MediaWiki's more up to date API to match each language with a BCP-47 tag, then using IANA's assignments of region + language codes and ISO 15924's assignments of codes for writing systems to give it a name in English. Unfortunately, English is the only language that all of these standards are in, so they cannot also be automatically translated into other languages with this method. IANA's redundant assignments were used to categorize variants of Chinese, which were further categorized to "Mandarin" or left as "Traditional" by hand. | <noinclude>This template was generated by taking the list of Valve Developer Community's languages from its API, and cross referencing it with MediaWiki's more up to date API to match each language with a BCP-47 tag, then using IANA's assignments of region + language codes and ISO 15924's assignments of codes for writing systems to give it a name in English. Unfortunately, English is the only language that all of these standards are in, so they cannot also be automatically translated into other languages with this method. IANA's redundant assignments were used to categorize variants of Chinese, which were further categorized to "Mandarin" or left as "Traditional" by hand, because the standard does not differentiate them. | ||
zh-my is simply "Malaysian Chinese" because the standard does not give it a redundant tag like zh-hk, so it must be parsed as a language name and country, similar to en-ca | |||
Akan was added manually, because MediaWiki's API did not mention it, likely due to it being split into several languages. | |||
[https://developer.valvesoftware.com/w/api.php?action=query&meta=siteinfo&siprop=languages VDC API result] | [https://developer.valvesoftware.com/w/api.php?action=query&meta=siteinfo&siprop=languages VDC API result] | ||
Line 18: | Line 22: | ||
|aeb-latn = Tunisian Arabic (Latin) | |aeb-latn = Tunisian Arabic (Latin) | ||
|af = Afrikaans | |af = Afrikaans | ||
|ak = Akan | |ak = Akan | ||
|aln = Gheg Albanian | |aln = Gheg Albanian | ||
|als = Swiss German | |als = Swiss German |
Revision as of 11:47, 2 January 2024
This template was generated by taking the list of Valve Developer Community's languages from its API, and cross referencing it with MediaWiki's more up to date API to match each language with a BCP-47 tag, then using IANA's assignments of region + language codes and ISO 15924's assignments of codes for writing systems to give it a name in English. Unfortunately, English is the only language that all of these standards are in, so they cannot also be automatically translated into other languages with this method. IANA's redundant assignments were used to categorize variants of Chinese, which were further categorized to "Mandarin" or left as "Traditional" by hand, because the standard does not differentiate them.
zh-my is simply "Malaysian Chinese" because the standard does not give it a redundant tag like zh-hk, so it must be parsed as a language name and country, similar to en-ca
Akan was added manually, because MediaWiki's API did not mention it, likely due to it being split into several languages.