From: Sarah Hoffmann Date: Fri, 9 Apr 2021 15:48:28 +0000 (+0200) Subject: split LANGUAGES parameter before use X-Git-Tag: v4.0.0~125 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/71564fa1de39562b094250f6089b85a1e257811c split LANGUAGES parameter before use The user supplies the languages as a comma-separated list. --- diff --git a/nominatim/tools/special_phrases.py b/nominatim/tools/special_phrases.py index fd46a18d..e2ec8ce4 100644 --- a/nominatim/tools/special_phrases.py +++ b/nominatim/tools/special_phrases.py @@ -80,7 +80,7 @@ class SpecialPhrasesImporter(): 'et', 'eu', 'fa', 'fi', 'fr', 'gl', 'hr', 'hu', 'ia', 'is', 'it', 'ja', 'mk', 'nl', 'no', 'pl', 'ps', 'pt', 'ru', 'sk', 'sl', 'sv', 'uk', 'vi'] - return self.config.LANGUAGES or default_languages + return self.config.LANGUAGES.split(',') or default_languages @staticmethod def _get_wiki_content(lang):