-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mise en place de la traduction de l'interface contributeur #1935
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c'est top comme première base !
app/settings.py
Outdated
@@ -71,6 +73,7 @@ | |||
"solo", # django-solo | |||
"dal", # django-autocomplete-light | |||
"dal_select2", | |||
"rosetta", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
je vais enlever "rosetta", pour qu'on le fasse dans une PR séparée
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fait ici : 3dbb6e9
app/urls.py
Outdated
|
||
from core.admin import admin_site | ||
|
||
|
||
urlpatterns = [ | ||
urlpatterns = i18n_patterns( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
je pense qu'il y aura des urls qui n'auront pas besoin du prefix (comme api ou stats)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
j'ai réorganisé les urls ici : c06f639
app/settings.py
Outdated
@@ -15,6 +15,7 @@ | |||
|
|||
import dj_database_url | |||
import sentry_sdk | |||
from django.utils.translation import gettext_lazy as gettext_lazy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from django.utils.translation import gettext_lazy as gettext_lazy | |
from django.utils.translation import gettext_lazy as _ |
app/settings.py
Outdated
@@ -54,6 +55,7 @@ | |||
"django.contrib.sessions", | |||
"django.contrib.messages", | |||
"django.contrib.staticfiles", | |||
"django.utils.translation", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
je ne crois pas que cette ligne soit nécessaire
@@ -5,14 +5,16 @@ | |||
{% block title %}Liste des administrateurs{{ block.super }}{% endblock %} | |||
|
|||
{% block breadcrumbs %} | |||
{% load i18n %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tout en haut du fichier plutôt ? 🤔
bb495f9
to
c06f639
Compare
ok j'ai fixé un conflit avec |
A noter:
PR a utiliser (après review) pour une démo.
Seulement quelques templates html ont été traduits. Il reste encore pas mal de boulot.