Skip to content

Commit

Permalink
Get available locales from i18n module instead of helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandar Jovanov committed May 12, 2017
1 parent 0d33f1b commit 5abc076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/orgdashboards/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ def orgdashboards_get_current_url(page, params, controller, action, name, exclud
return url

def orgdashboards_get_country_short_name(current_locale):
for locale in h.get_available_locales():
for locale in get_available_locales():
if current_locale == str(locale):
return locale.english_name[:3]

Expand Down

0 comments on commit 5abc076

Please sign in to comment.