From 9b4e27afca66231b3907ce61f40d5b140abe1ba3 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Tue, 29 Jul 2014 19:11:54 +0200 Subject: [PATCH] add de/fr/it translation to production and development, add unfinished pl translation to development only --- nsupdate/settings/base.py | 3 +++ nsupdate/settings/dev.py | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/nsupdate/settings/base.py b/nsupdate/settings/base.py index 4b1fde6..2f2eaa4 100644 --- a/nsupdate/settings/base.py +++ b/nsupdate/settings/base.py @@ -379,4 +379,7 @@ MESSAGE_TAGS = { gettext_noop = lambda s: s LANGUAGES = ( ('en', gettext_noop('English')), + ('de', gettext_noop('German')), + ('fr', gettext_noop('French')), + ('it', gettext_noop('Italian')), ) diff --git a/nsupdate/settings/dev.py b/nsupdate/settings/dev.py index 68d3c16..1ef5540 100644 --- a/nsupdate/settings/dev.py +++ b/nsupdate/settings/dev.py @@ -33,6 +33,10 @@ INSTALLED_APPS += ( # https://docs.djangoproject.com/en/dev/topics/i18n/translation/#message-files and # https://docs.djangoproject.com/en/dev/topics/i18n/translation/#how-django-discovers-language-preference LANGUAGES += ( - ('fr', gettext_noop('French')), + # note: for the development install we also offer unfinished translations: + ('en', gettext_noop('English')), ('de', gettext_noop('German')), + ('fr', gettext_noop('French')), + ('it', gettext_noop('Italian')), + ('pl', gettext_noop('Polish')), )