Implements a fetch_traits function for the Wikipedia engines.
.. note::
Does not include migration of the request methode from 'supported_languages'
to 'traits' (EngineTraits) object!
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
# These Wikipedias use language codes that do not conform to the ISO 639
# standard (which is how wiki subdomains are chosen nowadays).
lang_map={
'be-tarask':'bel',
'ak':'aka',
'als':'gsw',
'bat-smg':'sgs',
'cbk-zam':'cbk',
'fiu-vro':'vro',
'map-bms':'map',
'nrm':'nrf',
'roa-rup':'rup',
'nds-nl':'nds',
#'roa-tara: – invented code used for the Tarantino Wikipedia (again, roa is the standard code for the large family of Romance languages that the Tarantino dialect falls within)
#'simple: – invented code used for the Simple English Wikipedia (not the official IETF code en-simple)
'zh-classical':'zh_Hant',
'zh-min-nan':'nan',
'zh-yue':'yue',
'an':'arg',
}
unknown_langs=[
'ab',# Abkhazian
'alt',# Southern Altai
'an',# Aragonese
'ang',# Anglo-Saxon
'arc',# Aramaic
'ary',# Moroccan Arabic
'av',# Avar
'ba',# Bashkir
'be-tarask',
'bar',# Bavarian
'bcl',# Central Bicolano
'bh',# Bhojpuri
'bi',# Bislama
'bjn',# Banjar
'blk',# Pa'O
'bpy',# Bishnupriya Manipuri
'bxr',# Buryat
'cbk-zam',# Zamboanga Chavacano
'co',# Corsican
'cu',# Old Church Slavonic
'dty',# Doteli
'dv',# Divehi
'ext',# Extremaduran
'fj',# Fijian
'frp',# Franco-Provençal
'gan',# Gan
'gom',# Goan Konkani
'hif',# Fiji Hindi
'ilo',# Ilokano
'inh',# Ingush
'jbo',# Lojban
'kaa',# Karakalpak
'kbd',# Kabardian Circassian
'kg',# Kongo
'koi',# Komi-Permyak
'krc',# Karachay-Balkar
'kv',# Komi
'lad',# Ladino
'lbe',# Lak
'lez',# Lezgian
'li',# Limburgish
'ltg',# Latgalian
'mdf',# Moksha
'mnw',# Mon
'mwl',# Mirandese
'myv',# Erzya
'na',# Nauruan
'nah',# Nahuatl
'nov',# Novial
'nrm',# Norman
'pag',# Pangasinan
'pam',# Kapampangan
'pap',# Papiamentu
'pdc',# Pennsylvania German
'pfl',# Palatinate German
'roa-rup',# Aromanian
'sco',# Scots
'sco',# Scots (https://sco.wikipedia.org) is not known by babel, Scottish Gaelic (https://gd.wikipedia.org) is known by babel
'sh',# Serbo-Croatian
'simple',# simple english is not know as a natural language different to english (babel)