示例#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