Give me a break, it's 2am. But it works now.
parent
85fe104dd3
commit
36211c95bd
Binary file not shown.
|
@ -0,0 +1,44 @@
|
|||
# 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: 2014-02-06 16:10+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"
|
||||
|
||||
#: templates/papiezator/index.html:36
|
||||
msgid "Papalizator sportowy"
|
||||
msgstr "Willkommen beim Portal Technik"
|
||||
|
||||
#: templates/papiezator/index.html:40
|
||||
msgid "Jan Paweł II wypełniał małe strony"
|
||||
msgstr ""
|
||||
"Das ist jedoch umstritten, da zum Teil Wurfhölzer parallel zu Wurfeisen "
|
||||
"verwendet wurden"
|
||||
|
||||
#: templates/papiezator/index.html:51
|
||||
msgid "How do i popes?"
|
||||
msgstr "Unter anderem Heizwerke und Kleinfeuerstätten von Siedlungen?"
|
||||
|
||||
#: templates/papiezator/index.html:53
|
||||
msgid "simply append width/height to the url"
|
||||
msgstr "Über die äußeren Eigenschaften der Braunkohle wird diese in:"
|
||||
|
||||
#: templates/papiezator/index.html:58
|
||||
msgid "Get your popes"
|
||||
msgstr "Donaudampfschiff"
|
||||
|
||||
#: templates/papiezator/index.html:64
|
||||
msgid "Get your popes today"
|
||||
msgstr "Ahrtsgesellschaftskapitän"
|
|
@ -1,6 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
{% load staticfiles %}
|
||||
{% load i18n %}
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
@ -25,16 +26,18 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
{% get_current_language as LANGUAGE_CODE %}
|
||||
<!-- Current language: {{ LANGUAGE_CODE }} -->
|
||||
<a href="{{github_url}}"><img style="position: absolute; top: 0; left: 0; border: 0;" src="{% static 'img/forkme.png' %}" alt="Fork me on $%#@^%@^%"></a>
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div class="header">
|
||||
<h3 class="text-muted">Papalizator sportowy</h3>
|
||||
<h3 class="text-muted">{% trans "Papalizator sportowy" %}</h3>
|
||||
</div>
|
||||
|
||||
<div class="jumbotron">
|
||||
Jan Paweł II wypełniał małe strony
|
||||
{% trans "Jan Paweł II wypełniał małe strony" %}
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -45,20 +48,20 @@
|
|||
<div class="alert alert-info">
|
||||
<a href="{% url 'papiezator:noir' 255 200 %}">norimakipope</a>
|
||||
</div>
|
||||
<h3>How do i popes?</h3>
|
||||
<h3>{% trans 'How do i popes?' %}</h3>
|
||||
|
||||
<p> simply append width/height to the url</p>
|
||||
<p> {% trans 'simply append width/height to the url' %}</p>
|
||||
<pre>
|
||||
<a href="{{ absolute_url }}">{{ absolute_url }}</a></pre>
|
||||
<div class="row">
|
||||
<div class="col-xs-5">
|
||||
<h2>Get your popes</h2>
|
||||
<h2>{% trans 'Get your popes' %}</h2>
|
||||
<img class="pope" src="{% url 'papiezator:grand_conclave' 255 200 pope %}">
|
||||
<img class="pope" src="{% url 'papiezator:grand_conclave' 115 100 pope %}">
|
||||
<img class="pope" src="{% url 'papiezator:grand_conclave' 135 100 pope %}">
|
||||
</div>
|
||||
<div class="col-xs-7">
|
||||
<h2>Get your popes today</h2>
|
||||
<h2>{% trans 'Get your popes today' %}</h2>
|
||||
<img class="pope" src="{% url 'papiezator:grand_conclave' 160 200 pope %}">
|
||||
<img class="pope" src="{% url 'papiezator:grand_conclave' 140 200 pope %}">
|
||||
<img class="pope" src="{% url 'papiezator:grand_conclave' 300 100 pope %}">
|
||||
|
@ -68,4 +71,3 @@
|
|||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
|
@ -4,11 +4,13 @@ from django.core.urlresolvers import reverse
|
|||
from papiezator.papiezator_settings import LOLGITHUB_URL
|
||||
from papiezator.pope_utils import get_pope, http_return_image
|
||||
from papiezator.models import Pope
|
||||
|
||||
from django.utils import translation
|
||||
|
||||
def index(request, pope=None):
|
||||
|
||||
if pope:
|
||||
if pope == 'Benedictus_XVI':
|
||||
translation.activate('de')
|
||||
|
||||
pope = Pope.objects.filter(name=pope.replace('_', ' ')).first()
|
||||
if pope:
|
||||
pope = pope.id
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
translation.activate(lang_code)
|
Loading…
Reference in New Issue