Localisation and internationalisation framework

This commit is contained in:
Frédéric Péters 2010-06-01 11:05:24 +02:00
parent 6365b34943
commit 1d2019e6f7
2 changed files with 150 additions and 0 deletions

View File

@ -0,0 +1,142 @@
# French translation of Authentic
# Copyright (C) 2010 Entr'ouvert
# This file is distributed under the same license as the Authentic package.
# Frederic Peters <fpeters@entrouvert.com>, 2010.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Authentic\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2010-06-01 11:00+0200\n"
"PO-Revision-Date: 2010-06-01 11:03+0200\n"
"Last-Translator: Frederic Peters <fpeters@0d.be>\n"
"Language-Team: None\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n>1;\n"
#: settings.py:46
msgid "English"
msgstr ""
#: settings.py:47
msgid "French"
msgstr ""
#: templates/base.html:13
msgid "Home"
msgstr "Accueil"
#: templates/base.html:16
msgid "Logged in"
msgstr ""
#: templates/base.html:17
msgid "Log out"
msgstr ""
#: templates/base.html:18
msgid "Change password"
msgstr ""
#: templates/base.html:20 templates/registration/activate.html:14
#: templates/registration/login.html:5 templates/registration/login.html:12
#: templates/registration/password_reset_complete.html:12
msgid "Log in"
msgstr ""
#: templates/admin/base_site.html:4
msgid "Authentic site admin"
msgstr ""
#: templates/admin/base_site.html:7
msgid "Authentic administration"
msgstr ""
#: templates/registration/activate.html:5
msgid "Account activation"
msgstr ""
#: templates/registration/activate.html:12
msgid "Account successfully activated"
msgstr ""
#: templates/registration/activate.html:18
msgid "Account activation failed"
msgstr ""
#: templates/registration/login.html:16
msgid "Forgot password"
msgstr ""
#: templates/registration/login.html:16
msgid "Reset it"
msgstr ""
#: templates/registration/login.html:17
msgid "Not member"
msgstr ""
#: templates/registration/login.html:17
msgid "Register"
msgstr ""
#: templates/registration/logout.html:5
msgid "Logging out"
msgstr ""
#: templates/registration/logout.html:9
msgid "Logged out"
msgstr ""
#: templates/registration/password_change_done.html:5
#: templates/registration/password_change_form.html:5
msgid "Changing password"
msgstr ""
#: templates/registration/password_change_done.html:9
msgid "Password changed"
msgstr ""
#: templates/registration/password_change_form.html:12
#: templates/registration/password_reset_confirm.html:15
#: templates/registration/password_reset_form.html:12
#: templates/registration/registration_form.html:12
msgid "Submit"
msgstr ""
#: templates/registration/password_reset_complete.html:5
#: templates/registration/password_reset_complete.html:10
msgid "Password reset successfully"
msgstr ""
#: templates/registration/password_reset_confirm.html:5
#: templates/registration/password_reset_done.html:5
#: templates/registration/password_reset_form.html:5
#: templates/registration/registration_complete.html:5
msgid "Resetting password"
msgstr ""
#: templates/registration/password_reset_confirm.html:20
msgid "Password reset failed"
msgstr ""
#: templates/registration/password_reset_done.html:10
msgid "Email with password reset instructions has been sent."
msgstr ""
#: templates/registration/password_reset_email.html:2
#, python-format
msgid "Reset password at %(site_name)s"
msgstr ""
#: templates/registration/registration_complete.html:9
msgid "You are now registered. Activation email sent."
msgstr ""
#: templates/registration/registration_form.html:5
msgid "Registration"
msgstr ""

View File

@ -2,6 +2,8 @@
import os
gettext_noop = lambda s: s
DEBUG = True
USE_DEBUG_TOOLBAR = True
STATIC_SERVE = True
@ -40,6 +42,11 @@ SITE_ID = 1
# to load the internationalization machinery.
USE_I18N = True
LANGUAGES = (
('en', gettext_noop('English')),
('fr', gettext_noop('French')),
)
# If you set this to False, Django will not format dates, numbers and
# calendars according to the current locale
USE_L10N = True
@ -72,6 +79,7 @@ MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.csrf.middleware.CsrfMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',