Skip to content

Commit 900f5b5

Browse files
committed
Fix handling of locales_offered
1 parent ce46bba commit 900f5b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ckanext/dcatapit/dcat/profiles.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,9 +1200,9 @@ def graph_from_catalog(self, catalog_dict, catalog_ref):
12001200
self.g.add((taxonomy, DCT.title, Literal('Il Vocabolario Data Theme', lang='it')))
12011201

12021202
# language
1203-
langs = config.get('ckan.locales_offered', 'it')
1203+
langs = config.get('ckan.locales_offered', ['it'])
12041204

1205-
for lang_offered in langs.split():
1205+
for lang_offered in langs:
12061206
lang_code = lang_mapping_ckan_to_voc.get(lang_offered)
12071207
if lang_code:
12081208
self.g.add((catalog_ref, DCT.language, URIRef(LANG_BASE_URI + lang_code)))

0 commit comments

Comments
 (0)