@@ -230,4 +238,3 @@ $(function(){
});
{% endblock %}
-
From b8aabc466c74ff317a134408597c2d15800a85fb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ail=C3=A9?= <03ht@theodurr.fr>
Date: Fri, 5 Nov 2021 20:28:37 +0100
Subject: [PATCH 4/7] Fixed locales +Pronoun description on the user's profile
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Ailé <03ht@theodurr.fr>
---
core/migrations/0037_auto_20211105_1708.py | 18 ++++++++++++++++++
core/templates/core/user_detail.jinja | 2 +-
locale/fr/LC_MESSAGES/django.po | 8 ++++++--
3 files changed, 25 insertions(+), 3 deletions(-)
create mode 100644 core/migrations/0037_auto_20211105_1708.py
diff --git a/core/migrations/0037_auto_20211105_1708.py b/core/migrations/0037_auto_20211105_1708.py
new file mode 100644
index 00000000..94c61fd7
--- /dev/null
+++ b/core/migrations/0037_auto_20211105_1708.py
@@ -0,0 +1,18 @@
+# Generated by Django 2.2.24 on 2021-11-05 16:08
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('core', '0036_auto_20211001_0248'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='user',
+ name='pronouns',
+ field=models.CharField(default='', max_length=64, verbose_name='pronouns'),
+ ),
+ ]
diff --git a/core/templates/core/user_detail.jinja b/core/templates/core/user_detail.jinja
index a86106c7..b3159303 100644
--- a/core/templates/core/user_detail.jinja
+++ b/core/templates/core/user_detail.jinja
@@ -26,7 +26,7 @@
{% if profile.pronouns %}
-
+ {% trans %}Pronouns: {% endtrans %}
{{ profile.pronouns }}
{% endif %}
diff --git a/locale/fr/LC_MESSAGES/django.po b/locale/fr/LC_MESSAGES/django.po
index 33fca100..c6a59463 100644
--- a/locale/fr/LC_MESSAGES/django.po
+++ b/locale/fr/LC_MESSAGES/django.po
@@ -2071,8 +2071,8 @@ msgid "Woman"
msgstr "Femme"
#:core/models.py:232
-msgid "Pronouns"
-msgstr "Pronoms"
+msgid "pronouns"
+msgstr "pronoms"
#: core/models.py:209
msgid "tshirt size"
@@ -3112,6 +3112,10 @@ msgstr "Profil de %(user_name)s"
msgid "Born: "
msgstr "Né le : "
+#: core/templates/core/user_detail.jinja:27
+msgid "Pronouns: "
+msgstr "Pronoms : "
+
#: core/templates/core/user_detail.jinja:34
msgid "Department: "
msgstr "Département : "
From 6390c3320eecc11c0a31ae79cabef66ab917bdc9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ail=C3=A9?= <03ht@theodurr.fr>
Date: Fri, 5 Nov 2021 20:40:20 +0100
Subject: [PATCH 5/7] Applied black on migration
---
core/migrations/0037_auto_20211105_1708.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/core/migrations/0037_auto_20211105_1708.py b/core/migrations/0037_auto_20211105_1708.py
index 94c61fd7..0a1299bd 100644
--- a/core/migrations/0037_auto_20211105_1708.py
+++ b/core/migrations/0037_auto_20211105_1708.py
@@ -6,13 +6,13 @@ from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
- ('core', '0036_auto_20211001_0248'),
+ ("core", "0036_auto_20211001_0248"),
]
operations = [
migrations.AlterField(
- model_name='user',
- name='pronouns',
- field=models.CharField(default='', max_length=64, verbose_name='pronouns'),
+ model_name="user",
+ name="pronouns",
+ field=models.CharField(default="", max_length=64, verbose_name="pronouns"),
),
]
From 707459acd6a36e4656ae79d3502127901f8fd80d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ail=C3=A9?= <03ht@theodurr.fr>
Date: Fri, 5 Nov 2021 21:01:19 +0100
Subject: [PATCH 6/7] Changed word 'Godfather' to 'Family'
---
core/views/user.py | 4 ++--
locale/fr/LC_MESSAGES/django.po | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/core/views/user.py b/core/views/user.py
index f613d6d5..aea3de60 100644
--- a/core/views/user.py
+++ b/core/views/user.py
@@ -202,7 +202,7 @@ class UserTabsMixin(TabedViewMixin):
"core:user_godfathers", kwargs={"user_id": self.object.id}
),
"slug": "godfathers",
- "name": _("Godfathers"),
+ "name": _("Family"),
}
)
tab_list.append(
@@ -474,7 +474,7 @@ class UserGodfathersTreePictureView(CanViewMixin, DetailView):
if self.param == "godchildren":
self.graph.graph_attr["label"] = _("Godchildren")
elif self.param == "godfathers":
- self.graph.graph_attr["label"] = _("Godfathers")
+ self.graph.graph_attr["label"] = _("Family")
else:
self.graph.graph_attr["label"] = _("Family")
img = self.graph.draw(format="png", prog="dot")
diff --git a/locale/fr/LC_MESSAGES/django.po b/locale/fr/LC_MESSAGES/django.po
index c6a59463..365f8995 100644
--- a/locale/fr/LC_MESSAGES/django.po
+++ b/locale/fr/LC_MESSAGES/django.po
@@ -3244,8 +3244,8 @@ msgstr "Voir une image de la famille"
#: core/templates/core/user_godfathers.jinja:12 core/views/user.py:205
#: core/views/user.py:477
-msgid "Godfathers"
-msgstr "Parrains"
+msgid "Family"
+msgstr "Famille"
#: core/templates/core/user_godfathers.jinja:20
msgid "Show ancestors tree"
From c6a3677cc50f0a765449a08e8e8fa89d4f2cf021 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ail=C3=A9?= <03ht@theodurr.fr>
Date: Fri, 5 Nov 2021 21:11:52 +0100
Subject: [PATCH 7/7] Fixed duplicated translation
---
locale/fr/LC_MESSAGES/django.po | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/locale/fr/LC_MESSAGES/django.po b/locale/fr/LC_MESSAGES/django.po
index 365f8995..539e5906 100644
--- a/locale/fr/LC_MESSAGES/django.po
+++ b/locale/fr/LC_MESSAGES/django.po
@@ -3243,7 +3243,7 @@ msgid "Show family picture"
msgstr "Voir une image de la famille"
#: core/templates/core/user_godfathers.jinja:12 core/views/user.py:205
-#: core/views/user.py:477
+#: core/views/user.py:477 core/views/user.py:479
msgid "Family"
msgstr "Famille"
@@ -3693,10 +3693,6 @@ msgstr "Utilisateurs à ajouter au groupe"
msgid "Pictures"
msgstr "Photos"
-#: core/views/user.py:479
-msgid "Family"
-msgstr "Famille"
-
#: core/views/user.py:621
msgid "User already has a profile picture"
msgstr "L'utilisateur a déjà une photo de profil"