diff --git a/alplora/static/alplora/img/favicon.ico b/alplora/static/alplora/img/favicon.ico old mode 100755 new mode 100644 index 9cd0fe78..395ae5df Binary files a/alplora/static/alplora/img/favicon.ico and b/alplora/static/alplora/img/favicon.ico differ diff --git a/alplora/templates/alplora/index.html b/alplora/templates/alplora/index.html index 6b0285fd..4016b46e 100644 --- a/alplora/templates/alplora/index.html +++ b/alplora/templates/alplora/index.html @@ -1,5 +1,8 @@ {% load staticfiles i18n%} - + + + + @@ -21,10 +24,10 @@ - - + + - + @@ -123,8 +126,8 @@
-

{% trans 'Perfect fit for Swiss Alps' %}

-

{% trans 'Find your herd anytime, anywhere' %}

+

{% trans 'Find your herd anytime, anywhere' %}

+

{% trans 'Perfect fit for Swiss Alps' %}


- - + + - + diff --git a/alplora/views.py b/alplora/views.py index d9db6f12..a07457cf 100644 --- a/alplora/views.py +++ b/alplora/views.py @@ -1,8 +1,17 @@ from django.views.generic import TemplateView - +from django.utils.translation import get_language class IndexView(TemplateView): template_name = "alplora/index.html" + + def get_context_data(self, *args, **kwargs): + context = super(IndexView, self).get_context_data(**kwargs) + language = get_language() + context.update({ + 'language': language + }) + return context + class LoginView(TemplateView): template_name = "alplora/login.html"