From 5c4f8203eb1b342fc73c17c632031f3033ebe15a Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 6 Jun 2014 23:37:27 +0200 Subject: [PATCH] fix settings: no tabs, moved malfunctioning docstring to a comment above --- nsupdate/settings/base.py | 2 +- nsupdate/settings/dev.py | 16 ++++++---------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/nsupdate/settings/base.py b/nsupdate/settings/base.py index 4d13d69..4b1fde6 100644 --- a/nsupdate/settings/base.py +++ b/nsupdate/settings/base.py @@ -378,5 +378,5 @@ MESSAGE_TAGS = { # By default language is set to english - modify settings.py to set list of languages gettext_noop = lambda s: s LANGUAGES = ( - ('en', gettext_noop('English')), + ('en', gettext_noop('English')), ) diff --git a/nsupdate/settings/dev.py b/nsupdate/settings/dev.py index 5f8c8df..de1ad81 100644 --- a/nsupdate/settings/dev.py +++ b/nsupdate/settings/dev.py @@ -29,13 +29,9 @@ INSTALLED_APPS += ( 'debug_toolbar', ) -# For language translations -LANGUAGES = ( - ('fr', gettext_noop('French')), - """ - see 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 - for details - ('de', _('German')), - """ -) + LANGUAGES +# translations - for details, see: +# 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')), +)