Added translation support for ungleich contact page,

This commit is contained in:
Levi 2016-04-12 00:50:15 -05:00
parent 20a59f461d
commit b29ee74634
6 changed files with 41 additions and 6 deletions

View file

@ -323,9 +323,6 @@ footer .copyright {
color: #0085a1;
}
.form-group{
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
form .row:first-child .floating-label-form-group {
border-top: 1px solid #eeeeee;

View file

@ -4,10 +4,11 @@ from django.shortcuts import get_object_or_404, render
from django.forms import ModelForm
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse_lazy
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import get_language
from djangocms_blog.models import Post
from django.contrib import messages
from django.utils.translation import ugettext as _
from .models import Supporter

Binary file not shown.

View file

@ -0,0 +1,35 @@
# 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: 2016-04-11 21:02-0500\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"
#: urls.py:7
msgid "contact/?$"
msgstr ""
#: views.py:13
msgid "Message Successfully Sent"
msgstr ""
#: views.py:23
msgid "Contact Us"
msgstr "Kontaktiere Uns"
#: views.py:24
msgid "If you have any question, just send us an email."
msgstr "Wenn Sie irgendwelche Fragen haben, schicken Sie uns einfach eine E-Mail."

View file

@ -1,6 +1,8 @@
from django.conf.urls import url
from .views import ContactView
from django.utils.translation import ugettext_lazy as _
urlpatterns = [
url(r'contact/?$', ContactView.as_view(), name='contact'),
url(_(r'contact/?$'), ContactView.as_view(), name='contact'),
]

View file

@ -1,7 +1,7 @@
from django.contrib import messages
from django.views.generic.edit import FormView
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext_lazy as _
from django.core.urlresolvers import reverse_lazy
from utils.forms import ContactUsForm