diff --git a/django_lostplaces/lostplaces/locale/de/LC_MESSAGES/django.po b/django_lostplaces/lostplaces/locale/de/LC_MESSAGES/django.po index 3066818..3d6a6c1 100644 --- a/django_lostplaces/lostplaces/locale/de/LC_MESSAGES/django.po +++ b/django_lostplaces/lostplaces/locale/de/LC_MESSAGES/django.po @@ -12,7 +12,7 @@ msgstr "" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Commander1024 \n" "Language-Team: LANGUAGE \n" -"Language: de.DE\n" +"Language: de-DE\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/django_lostplaces/lostplaces/views/views.py b/django_lostplaces/lostplaces/views/views.py index 614cd59..1918feb 100644 --- a/django_lostplaces/lostplaces/views/views.py +++ b/django_lostplaces/lostplaces/views/views.py @@ -81,4 +81,7 @@ class PlaceTagDeleteView(IsAuthenticatedMixin, View): return redirect(reverse_lazy('place_detail', kwargs={'pk': tagged_id})) def FlatView(request, slug): - return render(request, 'flat/' + slug + '.html') + if request.LANGUAGE_CODE == 'de': + return render(request, 'flat/' + slug + '-de' + '.html') + else: + return render(request, 'flat/' + slug + '.html')