예제 #1
0
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
예제 #2
0
def add_current_root(url):
    if not has_lang_prefix(url):
        new_root = "/%s" % get_language()
        url = new_root + url
    return url
예제 #3
0
def add_current_root(url):
    if not has_lang_prefix(url):
        new_root = "/%s" % get_language()
        url = new_root + url
    return url
예제 #4
0
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
예제 #5
0
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
예제 #6
0
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