From a6b004b662b736f7b4132034df70add890af11ab Mon Sep 17 00:00:00 2001 From: Stefan Wehrmeyer Date: Tue, 23 Apr 2013 14:48:05 +0200 Subject: [PATCH] Move locale directory up for Django 1.5 --- docs/development.rst | 7 +++++++ froide/settings.py | 2 +- {froide/locale => locale}/de/LC_MESSAGES/django.po | 0 {froide/locale => locale}/en/LC_MESSAGES/django.po | 0 4 files changed, 8 insertions(+), 1 deletion(-) rename {froide/locale => locale}/de/LC_MESSAGES/django.po (100%) rename {froide/locale => locale}/en/LC_MESSAGES/django.po (100%) diff --git a/docs/development.rst b/docs/development.rst index 61a15d8b0..94fb278b1 100644 --- a/docs/development.rst +++ b/docs/development.rst @@ -34,6 +34,13 @@ If you want to run tests for modules, classes or methods your can run them like python manage.py test froide.foirequest.tests.test_admin.AdminActionTest.test_approve --settings=froide.settings_test + +Build translation +----------------- + + python manage.py makemessages -a -i docs --settings=your_settings + + Build docs ---------- diff --git a/froide/settings.py b/froide/settings.py index c961900b8..2c970919a 100644 --- a/froide/settings.py +++ b/froide/settings.py @@ -91,7 +91,7 @@ PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__)) LOCALE_PATHS = ( - os.path.join(PROJECT_ROOT, "locale"), + os.path.join(PROJECT_ROOT, '..', "locale"), ) GEOIP_PATH = None diff --git a/froide/locale/de/LC_MESSAGES/django.po b/locale/de/LC_MESSAGES/django.po similarity index 100% rename from froide/locale/de/LC_MESSAGES/django.po rename to locale/de/LC_MESSAGES/django.po diff --git a/froide/locale/en/LC_MESSAGES/django.po b/locale/en/LC_MESSAGES/django.po similarity index 100% rename from froide/locale/en/LC_MESSAGES/django.po rename to locale/en/LC_MESSAGES/django.po