@@ -0,0 +1,463 @@
+from cms import settings%0D%0Afrom cms.middleware.multilingual import has_lang_prefix%0D%0A%0D%0Adef is_multilingual():%0D%0A    return 'cmsplugin_blog.middleware.MultilingualBlogEntriesMiddleware' in settings.MIDDLEWARE_CLASSES%0D%0A%0D%0Adef get_lang_name(lang):%0D%0A    return _(dict(settings.LANGUAGES)%5Blang%5D)%0D%0A%0D%0Adef add_current_root(url):%0D%0A    if is_multilingual() and not has_lang_prefix(url):%0D%0A        new_root = %22/%25s%22 %25 get_language()%0D%0A        url = new_root + url%0D%0A    return url%0D%0A

add utils