[osm] When choosing a namespaced language, alias all namespaced tags, not just the addr:* tags

This commit is contained in:
Al
2016-07-22 14:56:07 -04:00
parent 9a6279d73b
commit 9bece91bd5

View File

@@ -147,7 +147,7 @@ class OSMAddressFormatter(object):
language = random.choice(namespaced)
lang_suffix = ':{}'.format(language)
for k in tags:
if k.startswith('addr:') and k.endswith(lang_suffix):
if k.endswith(lang_suffix):
tags[k.rstrip(lang_suffix)] = tags[k]
return language