Skip to content

Commit

Permalink
Merge pull request #3734 from ckan/3539-fix-i18n-directory
Browse files Browse the repository at this point in the history
[#3539] Fix call to pylons.set_lang
  • Loading branch information
smotornyuk committed Jul 28, 2017
2 parents dfd6aea + 8e67312 commit 1990386
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/i18n.py
Expand Up @@ -225,7 +225,7 @@ def _set_lang(lang):
if config.get('ckan.i18n_directory'):
fake_config = {'pylons.paths': {'root': config['ckan.i18n_directory']},
'pylons.package': config['pylons.package']}
i18n.set_lang(lang, config=fake_config, class_=Translations)
i18n.set_lang(lang, pylons_config=fake_config, class_=Translations)
else:
i18n.set_lang(lang, class_=Translations)

Expand Down

0 comments on commit 1990386

Please sign in to comment.