update German translation

This commit is contained in:
Laura Klünder 2017-07-08 19:30:54 +02:00
parent b490497c87
commit 8748ee102f
5 changed files with 1134 additions and 546 deletions

View file

@ -45,7 +45,7 @@
{% elif changeset.state == 'review' %}
{% with user=changeset.assigned_to %}
{% url 'editor.users.detail' pk=changeset.assigned_to.pk as user_url %}
<p>{% blocktrans %}These changes are currently being reviewed by <a href="{{ user_url }}">{{ user }}</a>{% endblocktrans %}</p>
<p>{% blocktrans %}These changes are currently being reviewed by <a href="{{ user_url }}">{{ user }}</a>.{% endblocktrans %}</p>
{% endwith %}
{% elif changeset.state == 'rejected' or changeset.state == 'finallyrejected' %}
{% with user=changeset.last_state_update.user comment=changeset.last_state_update.comment %}

View file

@ -9,7 +9,7 @@
</a>
{% endif %}
<h3>
{% blocktrans %}{{ model_title_plural }}{% endblocktrans %}
{{ model_title_plural }}
{% if level %}
{% with level.title as level_title %}
<small>{% blocktrans %}on level {{ level_title }}{% endblocktrans %}</small>

View file

@ -7,7 +7,7 @@
</h3>
{% bootstrap_messages %}
{% if request.user == user %}
<h4 class="text-success">{% trans "That\'s you!" %}</h4>
<h4 class="text-success">{% trans "That's you!" %}</h4>
{% if request.changeset.pk %}
{% with changeset_title=changeset.title changeset_id=request.changeset.pk changeset_url=request.changeset.get_absolute_url %}
<p>

File diff suppressed because it is too large Load diff

View file

@ -30,7 +30,7 @@ class GeometryField(models.TextField):
if geomtype == 'polyline':
geomtype = 'linestring'
if geomtype not in (None, 'polygon', 'linestring', 'point'):
raise ValueError(_('GeometryField.geomtype has to be None, "polygon", "linestring", "point"'))
raise ValueError('GeometryField.geomtype has to be None, "polygon", "linestring", "point"')
self.geomtype = geomtype
super().__init__(default=default)
@ -54,11 +54,11 @@ class GeometryField(models.TextField):
if value is None:
return None
elif self.geomtype == 'polygon' and not isinstance(value, Polygon):
raise TypeError(_('Expected Polygon instance, got %s instead.') % repr(value))
raise TypeError('Expected Polygon instance, got %s instead.' % repr(value))
elif self.geomtype == 'linestring' and not isinstance(value, LineString):
raise TypeError(_('Expected LineString instance, got %s instead.') % repr(value))
raise TypeError('Expected LineString instance, got %s instead.' % repr(value))
elif self.geomtype == 'point' and not isinstance(value, Point):
raise TypeError(_('Expected Point instance, got %s instead.') % repr(value))
raise TypeError('Expected Point instance, got %s instead.' % repr(value))
return json.dumps(format_geojson(mapping(value)))