Skip to content

Commit

Permalink
Improve feed links labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-Crow committed Nov 27, 2024
1 parent da1e196 commit c040957
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 39 deletions.
Binary file modified blog/locale/fr/LC_MESSAGES/django.mo
Binary file not shown.
88 changes: 52 additions & 36 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-11-27 11:46+0100\n"
"PO-Revision-Date: 2024-11-27 11:47+0100\n"
"POT-Creation-Date: 2024-11-27 14:45+0100\n"
"PO-Revision-Date: 2024-11-27 14:47+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: fr\n"
Expand All @@ -18,19 +18,19 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 3.4.2\n"

#: blog/blocks.py:9 blog/models.py:40 blog/models.py:68
#: blog/blocks.py:9 blog/models.py:39 blog/models.py:67
msgid "Name"
msgstr "Nom"

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

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

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

Expand All @@ -42,131 +42,147 @@ msgstr "Texte riche"
msgid "Contact card"
msgstr "Carte contact"

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

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

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

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

#: blog/models.py:123
#: 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:129
#: 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:156
#: blog/models.py:155
msgid "Parent category cannot be self."
msgstr "La catégorie ne peut être sa propre parente."

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

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

#: blog/models.py:168 blog/models.py:283 blog/models.py:466 blog/models.py:473
#: blog/models.py:524
#: blog/models.py:167 blog/models.py:279 blog/models.py:460 blog/models.py:467
#: blog/models.py:518
msgid "Categories"
msgstr "Catégories"

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

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

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

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

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

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

#: blog/models.py:216
#: 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:229
#: blog/models.py:228
msgid "Show filters"
msgstr "Afficher les filtres"

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

#: blog/models.py:265 blog/models.py:489 blog/models.py:503
#: blog/models.py:262 blog/models.py:483 blog/models.py:497
#: blog/templates/blog/tags_list_page.html:20
msgid "Tags"
msgstr "Étiquettes"

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

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

#: blog/models.py:299 blog/models.py:301 blog/models.py:312 blog/models.py:315
#: blog/models.py:294 blog/models.py:296 blog/models.py:306 blog/models.py:309
msgid "Posts written by"
msgstr "Articles écrits par"

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

#: blog/models.py:526
#: blog/models.py:520
msgid "Post date"
msgstr "Date de publication"

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

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

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

#: blog/models.py:571
#: blog/models.py:565
msgid "Blog page"
msgstr "Page de blog"

#: blog/templates/blog/blocks/blog_index_posts_list.html:37
msgid "No article found."
msgstr "Aucun article trouvé."

#: blog/templates/blog/blocks/feeds.html:10
msgid "Atom feed for the category"
msgstr "Flux Atom pour la catégorie"

#: blog/templates/blog/blocks/feeds.html:12
msgid "Atom feed"
msgstr "Flux Atom"

#: blog/templates/blog/blocks/feeds.html:20
msgid "RSS feed for the category"
msgstr "Flux RSS pour la catégorie"

#: blog/templates/blog/blocks/feeds.html:22
msgid "RSS feed"
msgstr "Flux RSS"

#: blog/templates/blog/blog_entry_page.html:79
msgid "Posted by:"
msgstr "Écrit par :"
Expand Down
18 changes: 15 additions & 3 deletions blog/templates/blog/blocks/feeds.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,27 @@

{% load wagtailroutablepage_tags %}
{% load wagtailroutablepage_tags i18n %}

<div class="fr-mt-2w">
<ul class="fr-btns-group fr-btns-group--inline-sm fr-btns-group--icon-left fr-btns-group--right">
<li>
<a class="fr-btn fr-btn--tertiary-no-outline fr-btn--icon-left fr-icon-rss-fill"
href="{% routablepageurl page 'atom_feed' %}{% if current_category %}?category={{ current_category.slug }}{% endif %}">Atom</a>
href="{% routablepageurl page 'atom_feed' %}{% if current_category %}?category={{ current_category.slug }}{% endif %}">
{% if current_category %}
{% translate "Atom feed for the category" %}
{% else %}
{% translate "Atom feed" %}
{% endif %}
</a>
</li>
<li>
<a class="fr-btn fr-btn--tertiary-no-outline fr-btn--icon-left fr-icon-rss-fill"
href="{% routablepageurl page 'rss_feed' %}{% if current_category %}?category={{ current_category.slug }}{% endif %}">RSS</a>
href="{% routablepageurl page 'rss_feed' %}{% if current_category %}?category={{ current_category.slug }}{% endif %}">
{% if current_category %}
{% translate "RSS feed for the category" %}
{% else %}
{% translate "RSS feed" %}
{% endif %}
</a>
</li>
</ul>
</div>

0 comments on commit c040957

Please sign in to comment.