Translated photoalbum model fields.
This commit is contained in:
parent
52f9638d74
commit
dd07cbd57d
@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-10-11 02:06+0200\n"
|
"POT-Creation-Date: 2020-10-11 02:14+0200\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: Commander1024 <commander@commander1024.de>\n"
|
"Last-Translator: Commander1024 <commander@commander1024.de>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
@ -50,6 +50,14 @@ msgstr "Längengrad"
|
|||||||
msgid "Longitude in decimal format: e. g. 2.17403"
|
msgid "Longitude in decimal format: e. g. 2.17403"
|
||||||
msgstr "Breitengrad in dezimaler Form: z. B. 7.4840155"
|
msgstr "Breitengrad in dezimaler Form: z. B. 7.4840155"
|
||||||
|
|
||||||
|
#: models/external_links.py:13
|
||||||
|
msgid "URL"
|
||||||
|
msgstr "Adresse (URL)"
|
||||||
|
|
||||||
|
#: models/external_links.py:17
|
||||||
|
msgid "link text"
|
||||||
|
msgstr "Linktext"
|
||||||
|
|
||||||
#: models/place.py:21
|
#: models/place.py:21
|
||||||
msgid "Location"
|
msgid "Location"
|
||||||
msgstr "Ort"
|
msgstr "Ort"
|
||||||
@ -250,7 +258,7 @@ msgstr "Place löschen"
|
|||||||
|
|
||||||
#: templates/photo_album/photo_album_create.html:16
|
#: templates/photo_album/photo_album_create.html:16
|
||||||
msgid "Submit a photo album for"
|
msgid "Submit a photo album for"
|
||||||
msgstr "Fotoalbum hinzufügen für"
|
msgstr "Fotoalbum hinzufügen zu"
|
||||||
|
|
||||||
#: templates/place/place_create.html:42
|
#: templates/place/place_create.html:42
|
||||||
msgid "Create"
|
msgid "Create"
|
||||||
@ -265,10 +273,8 @@ msgid "Are you sure you want to delete"
|
|||||||
msgstr "Willst Du den Ort wirklich löschen: "
|
msgstr "Willst Du den Ort wirklich löschen: "
|
||||||
|
|
||||||
#: templates/place/place_delete.html:19
|
#: templates/place/place_delete.html:19
|
||||||
#, fuzzy
|
|
||||||
#| msgid "Delete place"
|
|
||||||
msgid "Delete"
|
msgid "Delete"
|
||||||
msgstr "Place löschen"
|
msgstr "Löschen"
|
||||||
|
|
||||||
#: templates/place/place_detail.html:46
|
#: templates/place/place_detail.html:46
|
||||||
msgid "Map links"
|
msgid "Map links"
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
from django.db import models
|
from django.db import models
|
||||||
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
from lostplaces.models.place import PlaceAsset
|
from lostplaces.models.place import PlaceAsset
|
||||||
|
|
||||||
@ -7,8 +8,14 @@ class ExternalLink(PlaceAsset):
|
|||||||
class Meta:
|
class Meta:
|
||||||
abstract = True
|
abstract = True
|
||||||
|
|
||||||
url = models.URLField(max_length=200)
|
url = models.URLField(
|
||||||
label = models.CharField(max_length=100)
|
max_length=200,
|
||||||
|
verbose_name=_('URL')
|
||||||
|
)
|
||||||
|
label = models.CharField(
|
||||||
|
max_length=100,
|
||||||
|
verbose_name=_('link text')
|
||||||
|
)
|
||||||
|
|
||||||
class PhotoAlbum(ExternalLink):
|
class PhotoAlbum(ExternalLink):
|
||||||
pass
|
pass
|
@ -1,5 +1,5 @@
|
|||||||
{% load i18n %}
|
|
||||||
{% extends 'global.html'%}
|
{% extends 'global.html'%}
|
||||||
|
{% load i18n %}
|
||||||
|
|
||||||
{% block title %}{% trans 'Submit a photo album' %}{% endblock %}
|
{% block title %}{% trans 'Submit a photo album' %}{% endblock %}
|
||||||
|
|
||||||
@ -13,7 +13,7 @@
|
|||||||
{% block maincontent %}
|
{% block maincontent %}
|
||||||
<form class="LP-Form" method="POST">
|
<form class="LP-Form" method="POST">
|
||||||
<fieldset class="LP-Form__Fieldset">
|
<fieldset class="LP-Form__Fieldset">
|
||||||
<legend class="LP-Form__Legend">{% trans 'Submit a photo album for' %}% {{place.name}}</legend>
|
<legend class="LP-Form__Legend">{% trans 'Submit a photo album for' %} {{place.name}}</legend>
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<div class="LP-Form__Composition">
|
<div class="LP-Form__Composition">
|
||||||
<div class="LP-Form__Field">
|
<div class="LP-Form__Field">
|
||||||
|
Loading…
Reference in New Issue
Block a user