allowing urls translation into german using .po files

This commit is contained in:
Levi 2016-04-09 02:53:05 -05:00
parent bcc7d35cd8
commit d90a95a3d4
5 changed files with 56 additions and 23 deletions

Binary file not shown.

View file

@ -0,0 +1,43 @@
# 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-09 02:43-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"
#: cms_plugins.py:9
msgid "Digital Glarus Gallery"
msgstr ""
#: cms_plugins.py:21
msgid "Digital Glarus Supporters"
msgstr ""
#: urls.py:8
msgid "contact/?$"
msgstr "kontakt/?$"
#: urls.py:9
msgid "supporters/?$"
msgstr "befurworter/?$"
#: urls.py:10
msgid "support-us/?$"
msgstr ""
#: views.py:23
msgid "Message Successfully Sent"
msgstr ""

View file

@ -1,5 +1,6 @@
{% extends "base_glarus.html" %}
{% load staticfiles %}
{% load cms_tags %}
{% block title %}About{% endblock %}
{% block content %}
@ -8,29 +9,12 @@
<div class="col-lg-12">
<hr>
<h2 class="text-center">
BECOME A SUPPORTER
{% static_placeholder "digital_glarus_supporters_become_supporter" %}
</h2>
<hr>
</div>
<div class="col-md-7 col-md-offset-3">
<p>
If you want to be our supporter,
you can send your donation to:
</p>
<p>
<strong>Bank info</strong><br/>
Postfinance<br/>
89-849216-5<br/>
<br/>
CH36 0900 0000 8984 9216 5<br/>
Nico Schottelius<br/>
Hauptstrasse 14<br/>
8775 Luchsingen<br/>
</p>
<p>
If you want to donate us in other means (your time, skill, etc..)
you can write us to <a href="mailto:donation@digitalglarus.ch">donation@digitalglarus.ch</a>
</p>
{% static_placeholder "digital_glarus_support_info" %}
</div>
<div class="clearfix"></div>
</div>

View file

@ -1,12 +1,13 @@
from django.conf.urls import url
from django.utils.translation import ugettext_lazy as _
from . import views
from .views import ContactView
urlpatterns = [
url(r'contact/?$', ContactView.as_view(), name='contact'),
url(r'supporters/?$', views.supporters, name='supporters'),
url(r'support-us/?$', views.support, name='support'), # url(r'', views.index, name='index'),
url(_(r'contact/?$'), ContactView.as_view(), name='contact'),
url(_(r'supporters/?$'), views.supporters, name='supporters'),
url(_(r'support-us/?$'), views.support, name='support'),
url(r'blog/',views.blog,name='blog'),
url(r'^blog/(?P<slug>\w[-\w]*)/$', views.blog_detail, name='blog-detail'),
]
]

View file

@ -202,6 +202,11 @@ LANGUAGES = (
LANGUAGE_CODE = 'en-us'
LOCALE_PATHS = [
os.path.join(PROJECT_DIR,'digitalglarus/locale'),
]
CMS_PLACEHOLDER_CONF = {
'logo_image': {
'name': 'Logo Image',