languages (en, de) probably fine ...

This commit is contained in:
botsi 2020-02-03 10:13:47 +01:00
parent 6b989c0dca
commit 91bc67b829
5 changed files with 138 additions and 20 deletions

Binary file not shown.

View file

@ -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 <EMAIL@ADDRESS>, 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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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 ""

View file

@ -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
},
}

View file

@ -5,7 +5,7 @@
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>
{% block title %}
{% page_attribute page_title %} - {{ request.site.name }}
{{ request.site.name }} | {% page_attribute page_title %}
{% endblock title %}
</title>
{% block meta_tags %}

Binary file not shown.