From fa2978feca9013cbfc3830e9bb1d31512d5531a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Kl=C3=BCnder?= Date: Thu, 21 Dec 2017 20:49:38 +0100 Subject: [PATCH] dont just say "Point" --- src/c3nav/locale/de/LC_MESSAGES/django.po | 26 +++++++++++++---------- src/c3nav/mapdata/utils/locations.py | 3 +-- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/c3nav/locale/de/LC_MESSAGES/django.po b/src/c3nav/locale/de/LC_MESSAGES/django.po index 692c41d3..6b7718be 100644 --- a/src/c3nav/locale/de/LC_MESSAGES/django.po +++ b/src/c3nav/locale/de/LC_MESSAGES/django.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-12-21 03:50+0100\n" -"PO-Revision-Date: 2017-12-21 03:50+0100\n" +"POT-Creation-Date: 2017-12-21 20:48+0100\n" +"PO-Revision-Date: 2017-12-21 20:49+0100\n" "Last-Translator: Laura Klünder \n" "Language-Team: \n" "Language: de\n" @@ -1027,8 +1027,8 @@ msgstr "Du musst dich anmelden um Änderungen vorzuschlagen." #: c3nav/editor/views/changes.py:77 msgid "You need to add a title an a description to propose this change set." msgstr "" -"Du musst einen Titel und eine Beschreibung hinzufügen, um dieses Änderungsset " -"vorzuschlagen." +"Du musst einen Titel und eine Beschreibung hinzufügen, um dieses " +"Änderungsset vorzuschlagen." #: c3nav/editor/views/changes.py:82 msgid "You proposed your changes." @@ -1897,30 +1897,31 @@ msgid "Subtitle" msgstr "Untertitel" #: c3nav/mapdata/utils/locations.py:367 -msgid "Point" -msgstr "Punkt" +#, python-format +msgid "Point in %(level)s" +msgstr "Punkt innerhalb %(level)s" -#: c3nav/mapdata/utils/locations.py:374 +#: c3nav/mapdata/utils/locations.py:373 #, python-format msgid "Point near %(poi)s" msgstr "Punkt nahe %(poi)s" -#: c3nav/mapdata/utils/locations.py:378 +#: c3nav/mapdata/utils/locations.py:377 #, python-format msgid "near %(area)s" msgstr "nahe %(area)s" -#: c3nav/mapdata/utils/locations.py:380 +#: c3nav/mapdata/utils/locations.py:379 #, python-format msgid "Point in %(area)s" msgstr "Punkt innerhalb %(area)s" -#: c3nav/mapdata/utils/locations.py:384 +#: c3nav/mapdata/utils/locations.py:383 #, python-format msgid "Point near %(area)s" msgstr "Punkt nahe %(area)s" -#: c3nav/mapdata/utils/locations.py:386 +#: c3nav/mapdata/utils/locations.py:385 #, python-format msgid "Point in %(space)s" msgstr "Punkt innerhalb %(space)s" @@ -2179,6 +2180,9 @@ msgid_plural "You have been invited to unlock the following areas:" msgstr[0] "Du wurdest eingeladen, den folgenden Bereich freizuschalten:" msgstr[1] "Du wurdest eingeladen, die folgenden Bereiche freizuschalten:" +#~ msgid "Point" +#~ msgstr "Punkt" + #~ msgid "Custom Location" #~ msgstr "Benutzerdefinierter Ort" diff --git a/src/c3nav/mapdata/utils/locations.py b/src/c3nav/mapdata/utils/locations.py index 23ac8a86..7e1c0c66 100644 --- a/src/c3nav/mapdata/utils/locations.py +++ b/src/c3nav/mapdata/utils/locations.py @@ -364,8 +364,7 @@ class CustomLocation: @cached_property def title_subtitle(self): - title = _('Point') - print(self.space) + title = _('Point in %(level)s') % {'level': self.level.title} if not self.space: return title, self.level.title,