Permalink
Browse files

Added extra language plus language switching into templates. Language…

… is defined via URL
  • Loading branch information...
1 parent 8d741d0 commit 9efbe97d3fc06d0320761cde38b5e95d58b535cb @shauns shauns committed Jun 23, 2011
Showing with 5 additions and 0 deletions.
  1. +3 −0 settings.py
  2. +1 −0 templates/boilertest.html
  3. +1 −0 templates/example.html
View
@@ -181,6 +181,7 @@
('boilertest.html', 'HTML5 Boilerplate Test'),
)
MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + (
+'cms.middleware.multilingual.MultilingualURLMiddleware',
'cms.middleware.page.CurrentPageMiddleware',
'cms.middleware.user.CurrentUserMiddleware',
'cms.middleware.toolbar.ToolbarMiddleware',
@@ -199,7 +200,9 @@
CMS_LANGUAGES = (
('en', gettext('English')),
+('fr', gettext('French')),
)
+LANGUAGES = CMS_LANGUAGES
CMS_MEDIA_URL = CMS_MEDIA_PATH
CMS_PAGE_MEDIA_PATH = 'cms_page_media/'
@@ -30,6 +30,7 @@
<header>
{% placeholder header %}
<nav id="top_nav">{% show_menu 0 100 100 100 %}</nav>
+<nav> {% language_chooser %}</nav>
</header>
<div id="main" role="main" class="container_12">
View
@@ -2,6 +2,7 @@
{% load cms_tags sekizai_tags menu_tags %}
{% block base_content %}
{% show_menu 0 100 100 100 %}
+ {% language_chooser %}
{% placeholder main %}
{% endblock %}

0 comments on commit 9efbe97

Please sign in to comment.