[openaddresses] reset language to config_language every time so language disambiguation gets used as needed
This commit is contained in:
@@ -231,7 +231,7 @@ class OpenAddressesFormatter(object):
|
|||||||
alias_fields_containing = {field: [(re.compile(v['pattern'], re.I | re.UNICODE), v) for v in value]
|
alias_fields_containing = {field: [(re.compile(v['pattern'], re.I | re.UNICODE), v) for v in value]
|
||||||
for field, value in six.iteritems(dict(self.get_property('alias_fields_containing', *configs) or {}))}
|
for field, value in six.iteritems(dict(self.get_property('alias_fields_containing', *configs) or {}))}
|
||||||
|
|
||||||
language = self.get_property('language', *configs)
|
config_language = self.get_property('language', *configs)
|
||||||
|
|
||||||
add_components = self.get_property('add', *configs)
|
add_components = self.get_property('add', *configs)
|
||||||
|
|
||||||
@@ -261,6 +261,8 @@ class OpenAddressesFormatter(object):
|
|||||||
except (ValueError, TypeError):
|
except (ValueError, TypeError):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
language = config_language
|
||||||
|
|
||||||
components = {}
|
components = {}
|
||||||
|
|
||||||
skip_record = False
|
skip_record = False
|
||||||
|
|||||||
Reference in New Issue
Block a user