def add_current_root(url): if is_multilingual() and module_exists( 'cms.middleware.multilingual') and not has_lang_prefix(url): from cms.middleware.multilingual import has_lang_prefix new_root = "/%s" % get_language() url = new_root + url return url
def add_current_root(url): if not has_lang_prefix(url): new_root = "/%s" % get_language() url = new_root + url return url
def add_current_root(url): if is_multilingual() and not has_lang_prefix(url): new_root = "/%s" % get_language() url = new_root + url return url
def add_current_root(url): if is_multilingual() and module_exists('cms.middleware.multilingual') and not has_lang_prefix(url): from cms.middleware.multilingual import has_lang_prefix new_root = "/%s" % get_language() url = new_root + url return url