From d8b69e9b452ca3727e47c6abd0d051d8de5ea481 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ail=C3=A9?= <03ht@theodurr.fr> Date: Thu, 18 Nov 2021 16:24:14 +0100 Subject: [PATCH] Updated text and translations to be more inclusive --- core/templates/core/user_godfathers.jinja | 6 ++-- .../templates/core/user_godfathers_tree.jinja | 2 +- core/views/forms.py | 5 +++- locale/fr/LC_MESSAGES/django.po | 29 ++++++++++++------- 4 files changed, 26 insertions(+), 16 deletions(-) diff --git a/core/templates/core/user_godfathers.jinja b/core/templates/core/user_godfathers.jinja index fa2bbca6..9a01be43 100644 --- a/core/templates/core/user_godfathers.jinja +++ b/core/templates/core/user_godfathers.jinja @@ -2,14 +2,14 @@ {% from "core/macros.jinja" import user_link_with_pict, delete_godfather %} {% block title %} -{% trans user_name=profile.get_display_name() %}{{ user_name }}'s godfathers{% endtrans %} +{% trans user_name=profile.get_display_name() %}{{ user_name }}'s family{% endtrans %} {% endblock %} {% block content %}
{% trans %}Show family picture{% endtrans %}
{% if profile.godfathers.exists() %} -{% trans %}Show ancestors tree{% endtrans %}
{% else %} -{% trans %}No godfathers{% endtrans %} +
{% trans %}No godfathers / godmothers{% endtrans %} {% endif %} {% if profile.godchildren.exists() %}
{% trans %}No godchildren{% endtrans %} {% else %} -
{% trans %}No godfathers{% endtrans %} +
{% trans %}No godfathers / godmothers{% endtrans %} {% endif %} {% endif %} {% endblock %} diff --git a/core/views/forms.py b/core/views/forms.py index 5e443573..955d3320 100644 --- a/core/views/forms.py +++ b/core/views/forms.py @@ -332,7 +332,10 @@ class UserPropForm(forms.ModelForm): class UserGodfathersForm(forms.Form): type = forms.ChoiceField( - choices=[("godfather", _("Godfather")), ("godchild", _("Godchild"))], + choices=[ + ("godfather", _("Godfather / Godmother")), + ("godchild", _("Godchild")), + ], label=_("Add"), ) user = AutoCompleteSelectField( diff --git a/locale/fr/LC_MESSAGES/django.po b/locale/fr/LC_MESSAGES/django.po index 539e5906..ec4cf5aa 100644 --- a/locale/fr/LC_MESSAGES/django.po +++ b/locale/fr/LC_MESSAGES/django.po @@ -3233,17 +3233,24 @@ msgid "Change user password" msgstr "Changer le mot de passe" #: core/templates/core/user_godfathers.jinja:5 -#: core/templates/core/user_godfathers_tree.jinja:7 #, python-format +msgid "%(user_name)s's family" +msgstr "Famille de %(user_name)s" + +#: core/templates/core/user_godfathers_tree.jinja:7 msgid "%(user_name)s's godfathers" -msgstr "Parrains de %(user_name)s" +msgstr "Parrains/Marraines de %(user_name)s" #: core/templates/core/user_godfathers.jinja:10 msgid "Show family picture" msgstr "Voir une image de la famille" -#: core/templates/core/user_godfathers.jinja:12 core/views/user.py:205 +#: core/templates/core/user_godfathers.jinja:12 +msgid "Godfathers / Godmothers" +msgstr "Parrains / Marraines" + #: core/views/user.py:477 core/views/user.py:479 +#: core/views/user.py:205 msgid "Family" msgstr "Famille" @@ -3253,12 +3260,12 @@ msgstr "Voir l'arbre des ancĂȘtres" #: core/templates/core/user_godfathers.jinja:22 #: core/templates/core/user_godfathers_tree.jinja:50 -msgid "No godfathers" -msgstr "Pas de parrains" +msgid "No godfathers / godmothers" +msgstr "Pas de famille" #: core/templates/core/user_godfathers.jinja:25 core/views/user.py:475 msgid "Godchildren" -msgstr "Fillots" +msgstr "Fillots / Fillotes" #: core/templates/core/user_godfathers.jinja:33 msgid "Show descent tree" @@ -3267,12 +3274,12 @@ msgstr "Voir l'arbre de la descendance" #: core/templates/core/user_godfathers.jinja:35 #: core/templates/core/user_godfathers_tree.jinja:48 msgid "No godchildren" -msgstr "Pas de fillots" +msgstr "Pas de fillots / fillotes" #: core/templates/core/user_godfathers_tree.jinja:5 #, python-format msgid "%(user_name)s's godchildren" -msgstr "Fillots de %(user_name)s" +msgstr "Fillots/Fillotes de %(user_name)s" #: core/templates/core/user_godfathers_tree.jinja:20 msgid "Already seen (check above)" @@ -3659,12 +3666,12 @@ msgid "Bad image format, only jpeg, png, and gif are accepted" msgstr "Mauvais format d'image, seuls les jpeg, png, et gif sont acceptĂ©s" #: core/views/forms.py:334 -msgid "Godfather" -msgstr "Parrain" +msgid "Godfather / Godmother" +msgstr "Parrain / Marraine" #: core/views/forms.py:334 msgid "Godchild" -msgstr "Fillot" +msgstr "Fillot / Fillote" #: core/views/forms.py:338 counter/views.py:156 trombi/views.py:158 msgid "Select user"