From 00bfa39a5cb9377bb96c69c121591ec1fd579edc Mon Sep 17 00:00:00 2001 From: Elena Koteva Date: Wed, 6 Mar 2024 16:47:37 +0100 Subject: [PATCH] Add the is rtl language function helper --- ckanext/iaea/helpers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ckanext/iaea/helpers.py b/ckanext/iaea/helpers.py index 0871d9a..39b7b30 100644 --- a/ckanext/iaea/helpers.py +++ b/ckanext/iaea/helpers.py @@ -71,6 +71,10 @@ def get_main_organization(): except tk.ObjectNotFound: return None +##The code from line 76 to line 77 has to be added for the data portal style for the Arabic group of languages + +def is_rtl_language(): + return lang() in config.get('ckan.i18n.rtl_languages', 'he ar fa_IR').split() def get_helpers(): return {