Commit 5d0808d3 authored by christophe siraut's avatar christophe siraut

prepare for internationalization

parent bbb55142
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2010-06-18 14:06+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: templates/index.html:18
msgid ""
"<i>nuage</i> let you create polls easily, and publish them for your mates. "
"You may poll on dates or any subject, in order to plan meetings or get a "
"group opinion."
msgstr "nuage en français"
#: templates/index.html:33
msgid "About nuage"
msgstr "À propos de nuage"
......@@ -31,6 +31,12 @@ TIME_ZONE = 'Europe/Brussels'
# http://www.i18nguy.com/unicode/language-identifiers.html
LANGUAGE_CODE = 'en-us'
LANGUAGES = (
('fr', 'Francais'),
('en', 'English'),
)
SITE_ID = 1
# If you set this to False, Django will make some optimizations so as not
......@@ -65,6 +71,7 @@ TEMPLATE_LOADERS = (
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
)
......
......@@ -31,7 +31,7 @@ urlpatterns = patterns('',
# (r'^admin/', include(admin.site.urls)),
(r'^$', 'django.views.generic.list_detail.object_list', dict(info_dict, template_name='index.html')),
(r'^nuage$', 'django.views.generic.simple.direct_to_template', {'template': 'nuage.html'}),
(r'^nuages$', 'django.views.generic.simple.direct_to_template', {'template': 'nuage.html'}),
(r'^(?P<poll_id>\w{4})/$', 'nuage.sondage.views.vote'),
(r'^new/$', 'nuage.sondage.views.new'),
(r'^(?P<object_id>\w+)/edit/$', 'nuage.sondage.views.secure_update_object', dict(poll_dict, post_save_redirect='choices/')),
......@@ -44,6 +44,8 @@ urlpatterns = patterns('',
(r'^user/register', 'nuage.sondage.userviews.register'),
(r'^user/success$', 'django.views.generic.simple.direct_to_template', {'template': 'registration/success.html'}),
(r'^i18n/', include('django.conf.urls.i18n')),
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment