Skip to content
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

Merged
merged 6 commits into from
Feb 14, 2023

Conversation

dq18
Copy link
Collaborator

@dq18 dq18 commented Feb 12, 2023

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.

@dq18 dq18 requested a review from raphodn February 12, 2023 21:37
@dq18 dq18 linked an issue Feb 12, 2023 that may be closed by this pull request
@raphodn raphodn changed the title Internationalization: added languages en and fr + a few templates tra… Mise en place de la traduction de l'interface contributeur Feb 14, 2023
Copy link
Member

@raphodn raphodn left a 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",
Copy link
Member

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

Copy link
Member

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(
Copy link
Member

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)

Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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",
Copy link
Member

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 %}
Copy link
Member

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 ? 🤔

@raphodn raphodn force-pushed the contributor-interface-translation branch from bb495f9 to c06f639 Compare February 14, 2023 13:55
@raphodn
Copy link
Member

raphodn commented Feb 14, 2023

ok j'ai fixé un conflit avec master + mis à jour les tests + mis à jour la doc :)

@raphodn raphodn merged commit 6b9e3d9 into master Feb 14, 2023
@raphodn raphodn deleted the contributor-interface-translation branch February 14, 2023 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Traduire l'interface contributeur
2 participants