From c5e5640e8d90b4b21244231c3cca905641ec6796 Mon Sep 17 00:00:00 2001 From: Levi Date: Tue, 12 Apr 2016 00:50:15 -0500 Subject: [PATCH] Added translation support for ungleich contact page, --- .../blog.ungleich.ch/css/clean-blog.css | 3 -- digitalglarus/views.py | 3 +- ungleich_page/locale/de/LC_MESSAGES/django.mo | Bin 0 -> 611 bytes ungleich_page/locale/de/LC_MESSAGES/django.po | 35 ++++++++++++++++++ ungleich_page/urls.py | 4 +- ungleich_page/views.py | 2 +- 6 files changed, 41 insertions(+), 6 deletions(-) create mode 100644 ungleich_page/locale/de/LC_MESSAGES/django.mo create mode 100644 ungleich_page/locale/de/LC_MESSAGES/django.po diff --git a/digitalglarus/static/blog.ungleich.ch/css/clean-blog.css b/digitalglarus/static/blog.ungleich.ch/css/clean-blog.css index 41583e3f..3c8f4e29 100755 --- a/digitalglarus/static/blog.ungleich.ch/css/clean-blog.css +++ b/digitalglarus/static/blog.ungleich.ch/css/clean-blog.css @@ -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; diff --git a/digitalglarus/views.py b/digitalglarus/views.py index 86838336..05437941 100644 --- a/digitalglarus/views.py +++ b/digitalglarus/views.py @@ -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 diff --git a/ungleich_page/locale/de/LC_MESSAGES/django.mo b/ungleich_page/locale/de/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..0b16e963c073e6d0f784b498f44f1f4c56dc847b GIT binary patch literal 611 zcmYL`&yLeD5XQs51Gyk^L*g*pK;V*83tFYy)rQtxqD`7AO%}lkZ#qr9O`T#p3w;od zyc*BKq>I#%ej1PcX*~A#_xa=B4#gwlC2>MLA!4GB?}SST!Xp}D^T2WbP<}={edst5 z`Dl1A0g>j-a?As1%afcw(9)5IatZdagxb2JugK7nxp(DVpkj=nZ z==K&%%c2##Mr}wMz#^Png_j(zdA5wwxtrmx)s`iuk}LM9s|?HA0Nh2Ivx!F0_h(aK zF@T}xe`MYX^L-flfj4B{2hSrR%kWP2&HwAZ@-Smb%BCTFPJ<+R`z@VwHx|aSTnl9y zVOt%*tcYWnhY5!>o`g|+5l*KWUoOu{s;W*@$Z{0h0OD|dS@a{H#qmWW2d%D-8X7f; z5`KK2Kk(fC&rs2I`yI_~@t1wSYlKuIC~Kh&+HsN3*y&N%kF`e4xGLL~R8;_{H`2O` zrqiNfvsQ0S0BUzA&3HJ1`{nqxf>&ek-;7-6s`qJQC2E918RrWs1xtw_bw$Sf#HOqf jW}4om$if>W+e}%@azk~m>y!bMYAwpT&j_3)2N(YVPlc-J literal 0 HcmV?d00001 diff --git a/ungleich_page/locale/de/LC_MESSAGES/django.po b/ungleich_page/locale/de/LC_MESSAGES/django.po new file mode 100644 index 00000000..2d6e21aa --- /dev/null +++ b/ungleich_page/locale/de/LC_MESSAGES/django.po @@ -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 , 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 \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" + +#: 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." diff --git a/ungleich_page/urls.py b/ungleich_page/urls.py index 1b03b20c..686a4b64 100644 --- a/ungleich_page/urls.py +++ b/ungleich_page/urls.py @@ -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'), ] diff --git a/ungleich_page/views.py b/ungleich_page/views.py index 997c713b..f0e306c0 100644 --- a/ungleich_page/views.py +++ b/ungleich_page/views.py @@ -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