diff --git a/re2o/context_processors.py b/re2o/context_processors.py index 5a34e34b..a2e205c2 100644 --- a/re2o/context_processors.py +++ b/re2o/context_processors.py @@ -42,6 +42,8 @@ def context_user(request): return { 'request_user': user, 'interfaces': interfaces, - 'site_name': GeneralOption.get_cached_value('site_name'), + # Must takes a different name because djang.auth.contrib.views.login() + # overrides 'site_name' context variable. + 'name_website': GeneralOption.get_cached_value('site_name'), 'ipv6_enabled': OptionalMachine.get_cached_value('ipv6'), } diff --git a/re2o/locale/fr/LC_MESSAGES/django.mo b/re2o/locale/fr/LC_MESSAGES/django.mo index b32956f8..355c388c 100644 Binary files a/re2o/locale/fr/LC_MESSAGES/django.mo and b/re2o/locale/fr/LC_MESSAGES/django.mo differ diff --git a/re2o/locale/fr/LC_MESSAGES/django.po b/re2o/locale/fr/LC_MESSAGES/django.po index 3958eac6..ea5c1b11 100644 --- a/re2o/locale/fr/LC_MESSAGES/django.po +++ b/re2o/locale/fr/LC_MESSAGES/django.po @@ -44,8 +44,8 @@ msgstr "Accueil" #: templates/re2o/index.html:33 #, python-format -msgid "Welcome to %(site_name)s !" -msgstr "Bienvenue sur %(site_name)s !" +msgid "Welcome to %(name_website)s !" +msgstr "Bienvenue sur %(name_website)s !" #: templates/re2o/index.html:47 msgid "Go there" diff --git a/re2o/templates/re2o/index.html b/re2o/templates/re2o/index.html index 2e8de080..5b505c0f 100644 --- a/re2o/templates/re2o/index.html +++ b/re2o/templates/re2o/index.html @@ -30,7 +30,7 @@ with this program; if not, write to the Free Software Foundation, Inc., {% block title %}{% trans "Home" %}{% endblock %} {% block content %} -

{% blocktrans %}Welcome to {{ site_name }} !{% endblocktrans %}

+

{% blocktrans %}Welcome to {{ name_website }} !{% endblocktrans %}

{% for service_list in services_urls %} diff --git a/templates/base.html b/templates/base.html index 45c1e6a4..0f4d6d59 100644 --- a/templates/base.html +++ b/templates/base.html @@ -56,7 +56,7 @@ with this program; if not, write to the Free Software Foundation, Inc., - {{ site_name }} : {% block title %}Accueil{% endblock %} + {{ name_website }} : {% block title %}Accueil{% endblock %} @@ -71,7 +71,7 @@ with this program; if not, write to the Free Software Foundation, Inc., - {{ site_name }} + {{ name_website }}