]> git.openstreetmap.org Git - nominatim.git/commitdiff
split LANGUAGES parameter before use
authorSarah Hoffmann <lonvia@denofr.de>
Fri, 9 Apr 2021 15:48:28 +0000 (17:48 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 24 Apr 2021 13:06:02 +0000 (15:06 +0200)
The user supplies the languages as a comma-separated list.

nominatim/tools/special_phrases.py

index fd46a18d827810aaf11a380a9cee659d3187a3fb..e2ec8ce4fa82a75ed8d72f52e1a82bf5afd3f1f8 100644 (file)
@@ -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):