add i18n support

This commit is contained in:
Frédéric Péters 2014-03-24 19:46:30 +01:00
parent 59e1662cdd
commit b291e9769c
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,22 @@
# Translation of hobo
# Copyright (C) 2014 Entr'ouvert
# This file is distributed under the same license as the hobo package.
# Frederic Peters <fpeters@entrouvert.com>, 2014
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: hobo 0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-03-24 19:31+0100\n"
"PO-Revision-Date: 2014-03-24 19:31+0100\n"
"Last-Translator: Frederic Peters <fpeters@entrouvert.com>\n"
"Language: French\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"
#: templates/hobo/home.html:6
msgid "Welcome"
msgstr "Bienvenue"

View File

@ -41,6 +41,7 @@ INSTALLED_APPS = (
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
@ -85,3 +86,7 @@ STATIC_URL = '/static/'
TEMPLATE_DIRS = (
os.path.join(BASE_DIR, 'hobo', 'templates'),
)
LOCALE_PATHS = (
os.path.join(BASE_DIR, 'hobo', 'locale'),
)