Fix ETEAM name

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello 2024-06-08 00:44:26 +02:00
parent 109748ffc6
commit e258e6a337
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
7 changed files with 502 additions and 497 deletions

File diff suppressed because it is too large Load Diff

View File

@ -14,7 +14,7 @@
<p>
{% blocktrans trimmed with amount=payment.amount team=payment.team.trigram tournament=payment.tournament.name %}
We successfully received the payment of {{ amount }} € for your participation for the ETEAM in the team {{ team }} for the tournament {{ tournament }}!
We successfully received the payment of {{ amount }} € for your participation for the ETEAM in the team {{ team }}!
{% endblocktrans %}
</p>

View File

@ -2,7 +2,7 @@
{% trans "Hi" %} {{ registration|safe }},
{% blocktrans trimmed with amount=payment.amount team=payment.team.trigram tournament=payment.tournament.name %}
We successfully received the payment of {{ amount }} € for your participation for the ETEAM in the team {{ team }} for the tournament {{ tournament }}!
We successfully received the payment of {{ amount }} € for your participation for the ETEAM in the team {{ team }}!
{% endblocktrans %}
{% trans "Your registration is now fully completed, and you can work on your solutions." %}

View File

@ -14,7 +14,7 @@
<p>
{% blocktrans trimmed with amount=payment.amount team=payment.team.trigram tournament=payment.tournament %}
You are registered for the ETEAM of {{ tournament }}. Your team {{ team }} has been successfully validated.
You are registered for the ETEAM. Your team {{ team }} has been successfully validated.
To end your inscription, you must pay the amount of {{ amount }} €.
{% endblocktrans %}
</p>

View File

@ -2,7 +2,7 @@
{% trans "Hi" %} {{ registration|safe }},
{% blocktrans trimmed with amount=payment.amount team=payment.team.trigram tournament=payment.tournament %}
You are registered for the ETEAM of {{ tournament }}. Your team {{ team }} has been successfully validated.
You are registered for the ETEAM. Your team {{ team }} has been successfully validated.
To end your inscription, you must pay the amount of {{ amount }} €.
{% endblocktrans %}
{% if payment.grouped %}

View File

@ -370,7 +370,7 @@ if TFJM_APP == "TFJM":
]
elif TFJM_APP == "ETEAM":
PREFERRED_LANGUAGE_CODE = 'en'
APP_NAME = "TFJM²"
APP_NAME = "ETEAM"
TEAM_CODE_LENGTH = 4
RECOMMENDED_SOLUTIONS_COUNT = 6
NB_ROUNDS = 3

View File

@ -18,6 +18,7 @@ Including another URLconf
"""
from django.conf import settings
from django.contrib import admin
from django.utils.translation import gettext_lazy as _
from django.urls import include, path
from django.views.defaults import bad_request, page_not_found, permission_denied, server_error
from django.views.generic import TemplateView
@ -29,7 +30,8 @@ from .views import AdminSearchView
urlpatterns = [
# TODO ETEAM Rendre ça plus joli
path('', TemplateView.as_view(template_name=f"index_{settings.TFJM_APP.lower()}.html"), name='index'),
path('', TemplateView.as_view(template_name=f"index_{settings.TFJM_APP.lower()}.html", extra_context=_("Home")),
name='index'),
path('about/', TemplateView.as_view(template_name="about.html"), name='about'),
path('i18n/', include('django.conf.urls.i18n')),
path('admin/doc/', include('django.contrib.admindocs.urls')),