update engines_languages.json and languages.py
Also, fix fetch_languages.py so it can run on python3.
This commit is contained in:
@@ -118,7 +118,7 @@ def _fetch_supported_languages(resp):
|
||||
dom = fromstring(resp.text)
|
||||
options = dom.xpath('//div[@id="regions-popup"]//ul/li/a')
|
||||
for option in options:
|
||||
code = option.xpath('./@data-val')[0]
|
||||
code = option.xpath('./@data-search-language')[0]
|
||||
if code.startswith('nb-'):
|
||||
code = code.replace('nb', 'no', 1)
|
||||
supported_languages.append(code)
|
||||
|
||||
Reference in New Issue
Block a user