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

Gestion des pages de catalogue et correction de bugs sur les blogs #237

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 1 addition & 15 deletions blog/blocks.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,7 @@
from django.utils.translation import gettext_lazy as _
from wagtail import blocks
from wagtail.images.blocks import ImageChooserBlock

from content_manager.blocks import ImageAndTextBlock, MultiColumnsWithTitleBlock, QuoteBlock


class ContactCardBlock(blocks.StructBlock):
name = blocks.CharBlock(label=_("Name"), max_length=255)
role = blocks.CharBlock(label=_("Role"), max_length=255)
organization = blocks.CharBlock(label=_("Organization"), max_length=255)
contact_info = blocks.CharBlock(label=_("Contact info"), max_length=500, required=False)
image = ImageChooserBlock(label="Image")

class Meta:
icon = "user"
template = ("blog/blocks/contact_card.html",)

from content_manager.blocks import ContactCardBlock, ImageAndTextBlock, MultiColumnsWithTitleBlock, QuoteBlock

COLOPHON_BLOCKS = [
("paragraph", blocks.RichTextBlock(label=_("Rich text"))),
Expand Down
Binary file modified blog/locale/fr/LC_MESSAGES/django.mo
Binary file not shown.
98 changes: 51 additions & 47 deletions blog/locale/fr/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-09-17 12:04+0200\n"
"PO-Revision-Date: 2024-09-17 12:04+0200\n"
"POT-Creation-Date: 2024-11-21 17:00+0100\n"
"PO-Revision-Date: 2024-11-21 17:01+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: fr\n"
Expand All @@ -18,144 +18,148 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 3.4.2\n"

#: blog/blocks.py:9 blog/models.py:37 blog/models.py:65
#: blog/blocks.py:7
msgid "Rich text"
msgstr "Texte riche"

#: blog/blocks.py:14
msgid "Contact card"
msgstr "Carte contact"

#: blog/models.py:39 blog/models.py:67
msgid "Name"
msgstr "Nom"

#: blog/blocks.py:10 blog/models.py:66
msgid "Role"
msgstr "Fonction"

#: blog/blocks.py:11 blog/models.py:54
#: blog/models.py:56
msgid "Organization"
msgstr "Organisation"

#: blog/blocks.py:12 blog/models.py:68
#: blog/models.py:68
msgid "Role"
msgstr "Fonction"

#: blog/models.py:70
msgid "Contact info"
msgstr "Informations de contact"

#: blog/blocks.py:21
msgid "Rich text"
msgstr "Texte riche"

#: blog/blocks.py:28
msgid "Contact card"
msgstr "Carte contact"

#: blog/models.py:93
#: blog/models.py:95
msgid "Person"
msgstr "Personne"

#: blog/models.py:105
#: blog/models.py:107
msgid "Category name"
msgstr "Nom de la catégorie"

#: blog/models.py:112
#: blog/models.py:114
msgid "Parent category"
msgstr "Catégorie parente"

#: blog/models.py:119
#: blog/models.py:121
msgid "Description"
msgstr "Description"

#: blog/models.py:120
#: blog/models.py:122
msgid "Displayed on the top of the category page"
msgstr "Affiché en haut de la page de la catégorie"

#: blog/models.py:126
#: blog/models.py:128
msgid "Text displayed at the end of every page in the category"
msgstr "Texte affiché à la fin de chaque page de la catégorie"

#: blog/models.py:153
#: blog/models.py:155
msgid "Parent category cannot be self."
msgstr "La catégorie ne peut être sa propre parente."

#: blog/models.py:155
#: blog/models.py:157
msgid "Cannot have circular Parents."
msgstr "Il est impossible d’avoir des parents circulaires."

#: blog/models.py:164 blog/models.py:183
#: blog/models.py:166 blog/models.py:185
msgid "Category"
msgstr "Catégorie"

#: blog/models.py:165 blog/models.py:273 blog/models.py:390
#: blog/templates/blog/categories_list_page.html:20 blog/views.py:117
#: blog/models.py:167 blog/models.py:282 blog/models.py:465 blog/models.py:472
#: blog/models.py:523
msgid "Categories"
msgstr "Catégories"

#: blog/models.py:199
#: blog/models.py:201
msgid "Posts per page"
msgstr "Articles par page"

#: blog/models.py:203 blog/templates/blog/blog_index_page.html:77
#: blog/models.py:207
msgid "Post limit in the RSS/Atom feeds"
msgstr "Nombre d’articles dans les flux RSS/Atom"

#: blog/models.py:211 blog/templates/blog/blog_index_page.html:77
msgid "Filter by category"
msgstr "Filtrer par catégorie"

#: blog/models.py:204 blog/templates/blog/blog_index_page.html:94
#: blog/models.py:212 blog/templates/blog/blog_index_page.html:94
msgid "Filter by tag"
msgstr "Filtrer par étiquette"

#: blog/models.py:205 blog/templates/blog/blog_index_page.html:111
#: blog/models.py:213 blog/templates/blog/blog_index_page.html:111
msgid "Filter by author"
msgstr "Filtrer par auteur"

#: blog/models.py:207 blog/templates/blog/blog_index_page.html:126
#: blog/models.py:215 blog/templates/blog/blog_index_page.html:126
msgid "Filter by source"
msgstr "Filtrer par source"

#: blog/models.py:207
#: blog/models.py:215
msgid "The source is the organization of the post author"
msgstr "La source est l’organisation à laquelle appartient l’auteur de l’article"

#: blog/models.py:219
#: blog/models.py:228
msgid "Show filters"
msgstr "Afficher les filtres"

#: blog/models.py:226
#: blog/models.py:235
msgid "Blog index"
msgstr "Index de blog"

#: blog/models.py:255 blog/templates/blog/tags_list_page.html:20
#: blog/views.py:149
#: blog/models.py:264 blog/models.py:488 blog/models.py:502
#: blog/templates/blog/tags_list_page.html:20
msgid "Tags"
msgstr "Étiquettes"

#: blog/models.py:260
#: blog/models.py:269
#, python-format
msgid "Posts tagged with %(tag)s"
msgstr "Articles avec l’étiquette %(tag)s"

#: blog/models.py:278
#: blog/models.py:287
#, python-format
msgid "Posts in category %(category)s"
msgstr "Articles dans la catégorie %(category)s"

#: blog/models.py:289 blog/models.py:291 blog/models.py:302 blog/models.py:305
#: blog/models.py:298 blog/models.py:300 blog/models.py:311 blog/models.py:314
msgid "Posts written by"
msgstr "Articles écrits par"

#: blog/models.py:309
#: blog/models.py:318
#, python-format
msgid "Posts published in %(year)s"
msgstr "Articles publiés en %(year)s"

#: blog/models.py:392
#: blog/models.py:525
msgid "Post date"
msgstr "Date de publication"

#: blog/models.py:394
#: blog/models.py:527
msgid "Author entries can be created in Snippets > Persons"
msgstr "Les auteurs peuvent être créés via Fragments > Personnes"

#: blog/models.py:413
#: blog/models.py:546
msgid "Scheduled publishing"
msgstr "Publication planifiée"

#: blog/models.py:421
#: blog/models.py:554
msgid "Tags and Categories"
msgstr "Étiquettes et Catégories"

#: blog/models.py:437
#: blog/models.py:570
msgid "Blog page"
msgstr "Page de blog"

Expand Down
Loading
Loading