Skip to content

Commit

Permalink
translations: Page not available in %s
Browse files Browse the repository at this point in the history
Allow different word order in the phrase and update German translation.
  • Loading branch information
donald committed Feb 13, 2020
1 parent 97ef8b7 commit 4676194
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions locale/de/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-02-13 08:07+0100\n"
"POT-Creation-Date: 2020-02-13 08:17+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"
Expand Down Expand Up @@ -1410,8 +1410,9 @@ msgid "Show table of content"
msgstr "Generiere Inhaltsverzeichnis"

#: mpicms/base/mixins.py:81
msgid "Page not available in "
msgstr "Seite nicht verfügbar in "
#, python-format
msgid "Page not available in %s"
msgstr "Seite auf %s nicht vorhanden"

#: mpicms/base/mixins.py:94 mpicms/personal/wagtail_hooks.py:78
msgid "Contacts"
Expand Down
2 changes: 1 addition & 1 deletion mpicms/base/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def preview_text(self):
def serve(self, request):
lang = request.LANGUAGE_CODE
if not getattr(self, 'body_' + lang) and self.body:
messages.info(request, _('Page not available in ') + get_language_info(lang)['name_local'])
messages.info(request, _('Page not available in %s') % get_language_info(lang)['name_local'])

return super().serve(request)

Expand Down

0 comments on commit 4676194

Please sign in to comment.