diff --git a/boday_it/locale/de/LC_MESSAGES/django.mo b/boday_it/locale/de/LC_MESSAGES/django.mo new file mode 100644 index 0000000..a4c047e Binary files /dev/null and b/boday_it/locale/de/LC_MESSAGES/django.mo differ diff --git a/boday_it/locale/de/LC_MESSAGES/django.po b/boday_it/locale/de/LC_MESSAGES/django.po new file mode 100644 index 0000000..a3ade2c --- /dev/null +++ b/boday_it/locale/de/LC_MESSAGES/django.po @@ -0,0 +1,117 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-02-03 09:26+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \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:146 settings.py:162 settings.py:170 +msgid "en" +msgstr "" + +#: settings.py:147 settings.py:157 +msgid "de" +msgstr "" + +#: templates/404.html:6 templates/404.html:10 +msgid "404 - Page not found" +msgstr "404 - Seite nicht gefunden" + +#: templates/404.html:11 +msgid "We're sorry, but the requested page could not be found." +msgstr "" + +#: templates/500.html:5 templates/500.html:11 +msgid "500 - Server error" +msgstr "" + +#: templates/500.html:12 +msgid "" +"There's been an error. It's been reported to the site administrators via e-" +"mail and should be fixed shortly. Thanks for your patience." +msgstr "" + +#: templates/base.html:26 +msgid "Shortcuts" +msgstr "" + +#: templates/base.html:28 +msgid "Go to home" +msgstr "" + +#: templates/base.html:29 +msgid "Jump to navigation" +msgstr "" + +#: templates/base.html:30 +msgid "Jump to content" +msgstr "" + +#: templates/base.html:31 +msgid "Contact" +msgstr "" + +#: templates/base.html:37 +msgid "Navigation" +msgstr "" + +#: templates/base.html:42 +msgid "Separator" +msgstr "" + +#: templates/base.html:75 +msgid "You are here" +msgstr "" + +#: templates/base.html:107 +msgid "Sitemap" +msgstr "" + +#: templates/base.html:114 +msgid "Back to top" +msgstr "Nach oben" + +#: templates/base_root.html:58 +msgid "Please enable JavaScript" +msgstr "" + +#: templates/base_root.html:59 +msgid "Your browser is out-of-date!" +msgstr "" + +#: templates/base_root.html:60 +msgid "Update your browser to view this website correctly." +msgstr "" + +#: templates/base_root.html:63 +msgid "Update my browser now" +msgstr "" + +#: templates/includes/menu/pagenav.html:4 +msgid "previous" +msgstr "" + +#: templates/includes/menu/pagenav.html:26 +msgid "next" +msgstr "" + +#: templates/sidebar_left.html:13 templates/sidebar_right.html:13 +msgid "Sidebar" +msgstr "" + +#: tools/server/src/settings.py:163 tools/server/src/settings.py:178 +msgid "English" +msgstr "" diff --git a/boday_it/settings.py b/boday_it/settings.py index 80ed25c..bb5c0e1 100644 --- a/boday_it/settings.py +++ b/boday_it/settings.py @@ -44,7 +44,7 @@ ROOT_URLCONF = 'boday_it.urls' # Internationalization # https://docs.djangoproject.com/en/1.11/topics/i18n/ -LANGUAGE_CODE = 'de' +LANGUAGE_CODE = 'en' TIME_ZONE = 'America/New_York' @@ -86,7 +86,8 @@ TEMPLATES = [ 'django.template.context_processors.tz', 'sekizai.context_processors.sekizai', 'django.template.context_processors.static', - 'cms.context_processors.cms_settings' + 'cms.context_processors.cms_settings', + 'django.template.context_processors.request' ], 'loaders': [ 'django.template.loaders.filesystem.Loader', @@ -110,7 +111,8 @@ MIDDLEWARE = [ 'cms.middleware.user.CurrentUserMiddleware', 'cms.middleware.page.CurrentPageMiddleware', 'cms.middleware.toolbar.ToolbarMiddleware', - 'cms.middleware.language.LanguageCookieMiddleware' + 'cms.middleware.language.LanguageCookieMiddleware', + 'django.contrib.sites.middleware.CurrentSiteMiddleware' ] INSTALLED_APPS = [ @@ -144,39 +146,38 @@ INSTALLED_APPS = [ LANGUAGES = ( # Customize this ('en', gettext('en')), - ('de', gettext('de')), + ('de', gettext('de')) ) CMS_LANGUAGES = { # Customize this 1: [ { - # 'redirect_on_fallback': True, - 'code': 'de', + 'code': 'en', 'hide_untranslated': False, - 'name': gettext('de'), - 'public': True, + 'name': gettext('en'), + 'public': True }, { - 'code': 'en', - 'name': gettext('en'), - 'fallbacks': ['de'], - 'public': True, - }, + 'code': 'de', + 'name': gettext('de'), + 'fallbacks': ['en'], + 'public': True + } ], 2: [ { - 'code': 'en', - 'name': gettext('en'), - 'public': True, - 'fallbacks': ['de'], - }, + 'code': 'de', + 'name': gettext('de'), + 'fallbacks': ['en'], + 'public': True + } ], 'default': { 'fallbacks': ['en', 'de'], 'redirect_on_fallback': True, 'public': True, - 'hide_untranslated': False, + 'hide_untranslated': False }, } diff --git a/boday_it/templates/base_root.html b/boday_it/templates/base_root.html index 4087058..a900a77 100755 --- a/boday_it/templates/base_root.html +++ b/boday_it/templates/base_root.html @@ -5,7 +5,7 @@ {% block title %} - {% page_attribute page_title %} - {{ request.site.name }} + {{ request.site.name }} | {% page_attribute page_title %} {% endblock title %} {% block meta_tags %} diff --git a/project.db b/project.db index cc127be..d1d0e39 100644 Binary files a/project.db and b/project.db differ