Skip to content

Commit

Permalink
Fixed mobile translation
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersSeverinsen committed Jun 29, 2024
1 parent f8ad55a commit 8d0d043
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion udlejning/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from django.contrib import messages
from django.utils import timezone
from django.utils.translation import ugettext_lazy as _
from django.views.generic import CreateView, ListView

from .forms import UdlejningApplicationForm
Expand Down Expand Up @@ -35,7 +36,9 @@ def form_valid(self, form):
form.send_email(self.object.pk)
messages.success(
self.request,
"Din anmodning om at låne fadølsanlægget er modtaget. Vi vender tilbage til dig med et svar hurtigst muligt.",
_(
"Din anmodning om at låne fadølsanlægget er modtaget. Vi vender tilbage til dig med et svar hurtigst muligt."
),
)

return response
Expand Down
4 changes: 2 additions & 2 deletions web/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ <h1>
Fredagscaféen
</a>
{% if LANGUAGE_CODE == 'da' %}
<a class="navbar-brand visible-xs-inline" href="/en">
<a class="navbar-brand visible-xs-inline" href="/en/{{request.get_full_path|slice:"4:"}}">
<img src="{% static 'images/unionjac.png' %}" align="right" style="padding: 0px; height: 20px; border: solid; border-width: 0px; border-radius: 5px; border-color: white;">
</a>
{% elif LANGUAGE_CODE == 'en' %}
<a class="navbar-brand visible-xs-inline" href="/da">
<a class="navbar-brand visible-xs-inline" href="/da/{{request.get_full_path|slice:"4:"}}">
<img src="{% static 'images/dannebro.png' %}" align="right" style="padding: 0px; height: 20px; border: solid; border-width: 0px; border-radius: 5px; border-color: white;">
</a>
{% endif %}
Expand Down

0 comments on commit 8d0d043

Please sign in to comment.