Template:Iso2lang: Difference between revisions
Appearance
Content deleted Content added
subst parameter |
No edit summary |
||
Line 1: | Line 1: | ||
<noinclude>This template, '''Lang2iso''', takes a two-letter [[ISO 639]] language code and converts it into an English-language language name (such as "Abkhazian" or "Sinhalese"). This table's values are based on [[List of ISO 639-1 codes]]. (Some additions to ISO 639-1 codes are identified below.) If the provided language name is not identified, then the default value of "</noinclude>{{{{{subst|}}}#switch: {{{1}}} | aa=Afar | ab=Abkhazian | ae=Avestan | af=Afrikaans | ak=Akan | am=Amharic | an=Aragonese | ar=Arabic | as=Assamese | av=Avaric | ay=Aymara | az=Azerbaijani | ba=Bashkir | be=Belarusian | bg=Bulgarian | bh=Bihari | bi=Bislama | bm=Bambara | bn=Bengali | bo=Tibetan | br=Breton | bs=Bosnian | ca=Catalan | ce=Chechen | ch=Chamorro | co=Corsican | cr=Cree | cs=Czech | cu=Church Slavic | cv=Chuvash | cy=Welsh | da=Danish | de=German | deva=Devanāgarī | dv=Divehi | dz=Dzongkha | ee=Ewe | el=Greek | en=English | eo=Esperanto | es=Spanish | et=Estonian | eu=Basque | fa=Persian | ff=Fulah | fi=Finnish | fj=Fijian | fo=Faroese | fr=French | fy=Western Frisian | ga=Irish | gd=Scottish Gaelic | gl=Galician | gn=Guaraní | gu= |
<noinclude>This template, '''Lang2iso''', takes a two-letter [[ISO 639]] language code and converts it into an English-language language name (such as "Abkhazian" or "Sinhalese"). This table's values are based on [[List of ISO 639-1 codes]]. (Some additions to ISO 639-1 codes are identified below.) If the provided language name is not identified, then the default value of "</noinclude>{{{{{subst|}}}#switch: {{{1}}} | aa=Afar | ab=Abkhazian | ae=Avestan | af=Afrikaans | ak=Akan | am=Amharic | an=Aragonese | ar=Arabic | as=Assamese | av=Avaric | ay=Aymara | az=Azerbaijani | ba=Bashkir | be=Belarusian | bg=Bulgarian | bh=Bihari | bi=Bislama | bm=Bambara | bn=Bengali | bo=Tibetan | br=Breton | bs=Bosnian | ca=Catalan | ce=Chechen | ch=Chamorro | co=Corsican | cr=Cree | cs=Czech | cu=Church Slavic | cv=Chuvash | cy=Welsh | da=Danish | de=German | deva=Devanāgarī | dv=Divehi | dz=Dzongkha | ee=Ewe | el=Greek | en=English | eo=Esperanto | es=Spanish | et=Estonian | eu=Basque | fa=Persian | ff=Fulah | fi=Finnish | fj=Fijian | fo=Faroese | fr=French | fy=Western Frisian | ga=Irish | gd=Scottish Gaelic | gl=Galician | gn=Guaraní | gu=gjvklnbjnmgfbm,nmbnblnkbnb,nkkgkjhgkhkl;fhgkdfl;hjgfhjdf;hgkhjkgjkgjhkgjkhjglhjgdfjkhjfdghfjhgjfkhgfdghjkdfghdfjkghfjkjfhjgfhfjkdsldfjklsgdfjkslhjknbnbnbjjgfjkgdfljfdklsfjdklsjfdkslfjdljfdklgjuthtu878yfhjfhu5ryutrngfdjshsdfhgjdlskgdflsjgdfjgdfjhgjkdflhfdjghdfjkhjfdhjkfhjkfhjkfhjfjfhjfhdjksghjdfhtuihthjyfngjfgtuyhtirjuityfnjkgfdkjirtjiutkfkldjfjklfdjfdkljgdfkljgkdfjklhgdkbnfjkdhgjkdfnhfkjgkljkfjfkldghdfjhgjkhdfjkghjffjdklgjdfkljgfdgklfjklghjkfljgiojirekkfmnkfgjfdjfdjklfjhgkljkhlgghkmhkgfmhklgkgkfhjkldjkhlgfhklgdfjhklgfgjhkldfglhjgkljhgklfGujarati | gv=Manx | ha=Hausa | hans=Simplified Chinese | hant=Traditional Chinese | he=Hebrew | hi=Hindi | ho=Hiri Motu | hr=Croatian | ht=Haitian | hu=Hungarian | hy=Armenian | hz=Herero | ia=Interlingua | id=Indonesian | ie=Interlingue | ig=Igbo | ii=Sichuan Yi | ik=Inupiaq | io=Ido | is=Icelandic | it=Italian | iu=Inuktitut | ja=Japanese | jv=Javanese | ka=Georgian | kg=Kongo | ki=Kikuyu | kj=Kuanyama | kk=Kazakh | kl=Kalaallisut | km=Khmer | kn=Kannada | ko=Korean | kr=Kanuri | ks=Kashmiri | ku=Kurdish | kv=Komi | kw=Cornish | ky=Kirghiz | la=Latin | lb=Luxembourgish | lg=Ganda | li=Limburgish | ln=Lingala | lo=Lao | lt=Lithuanian | lu=Luba-Katanga | lv=Latvian | mg=Malagasy | mh=Marshallese | mi=Māori | mk=Macedonian | ml=Malayalam | mn=Mongolian | mni=Manipuri | mo=Moldavian | mr=Marathi | ms=Malay | mt=Maltese | my=Burmese | na=Nauru | nb=Norwegian Bokmål | nd=North Ndebele | ne=Nepali | ng=Ndonga | nl=Dutch | nn=Norwegian Nynorsk | no=Norwegian | nr=South Ndebele | nv=Navajo | ny=Chichewa | oc=Occitan | oj=Ojibwa | om=Oromo | or=Oriya | os=Ossetian | pa=Panjabi | pi=Pāli | pl=Polish | pra=Prakrit | ps=Pashto | pt=Portuguese | qu=Quechua | rm=Raeto-Romance | rn=Kirundi | ro=Romanian | ru=Russian | rw=Kinyarwanda | sa=Sanskrit | sc=Sardinian | sd=Sindhi | se=Northern Sami | sg=Sango | sh=Serbo-Croatian | si=Sinhalese | sk=Slovak | sl=Slovenian | sm=Samoan | sn=Shona | so=Somali | sq=Albanian | sr=Serbian | ss=Swati | st=Southern Sotho | su=Sundanese | sv=Swedish | sw=Swahili | ta=Tamil | te=Telugu | tg=Tajik | th=Thai | ti=Tigrinya | tk=Turkmen | tl=Tagalog | tlh=Klingon | tn=Tswana | to=Tonga | tr=Turkish | ts=Tsonga | tt=Tatar | tw=Twi | ty=Tahitian | ug=Uighur | uk=Ukrainian | ur=Urdu | uz=Uzbek | ve=Venda | vi=Vietnamese | vo=Volapük | wa=Walloon | wo=Wolof | xh=Xhosa | yi=Yiddish | yo=Yoruba | za=Zhuang | zh=Chinese | zu=Zulu | undefined }}<noinclude>" is returned. |
||
'''Examples:''' |
'''Examples:''' |
Revision as of 17:50, 14 September 2007
This template, Lang2iso, takes a two-letter ISO 639 language code and converts it into an English-language language name (such as "Abkhazian" or "Sinhalese"). This table's values are based on List of ISO 639-1 codes. (Some additions to ISO 639-1 codes are identified below.) If the provided language name is not identified, then the default value of "undefined" is returned.
Examples:
- {{Iso2lang|de}} returns "German"
- {{Iso2lang |el}} returns "Greek"
- {{Iso2lang |es}} returns "Spanish"
Purpose:
To transclude into templates
Additions to ISO 639-1 Alpha-2 codes:
Not all languages have ISO 639-1 codes. Thus, as time goes on, users are encouraged to add standard or ad hoc conversions to this table as needed. Thus far, the following additions to ISO 639-1 have been added:
ISO codes
- "deva" returns "Devanāgarī" (per ISO 15924)
- "tlh" returns "Klingon" and "Klingonese" (per ISO 639-2)
- "mni" returns "Manipuri" (per ISO 639-2)
- "pra" returns "Prakrit" (per ISO 639-2)
- "hans" returns "Simplified Chinese" (per ISO 15924)
- "hant" returns "Traditional Chinese" (per ISO 15924)