From 77f35e79f1765b28c29111e5b37075956df2c0ae Mon Sep 17 00:00:00 2001 From: Sylvain Boissel Date: Mon, 11 Mar 2024 17:00:42 +0100 Subject: [PATCH] New set_config command --- Makefile | 4 +- blog/locale/fr/LC_MESSAGES/django.po | 12 +-- .../locale/fr/LC_MESSAGES/django.po | 87 +++++++++++++++++-- .../commands/create_sample_pages.py | 2 +- pyproject.toml | 2 +- 5 files changed, 91 insertions(+), 16 deletions(-) diff --git a/Makefile b/Makefile index 8406a796..2e29fff2 100644 --- a/Makefile +++ b/Makefile @@ -23,8 +23,8 @@ collectstatic: $(EXEC_CMD) poetry run python manage.py collectstatic --noinput --ignore=*.sass -.PHONY: makemessages -makemessages: +.PHONY: messages +messages: $(EXEC_CMD) poetry run django-admin makemessages -l fr --ignore=manage.py .PHONY: sass diff --git a/blog/locale/fr/LC_MESSAGES/django.po b/blog/locale/fr/LC_MESSAGES/django.po index f027cebc..cad128f6 100644 --- a/blog/locale/fr/LC_MESSAGES/django.po +++ b/blog/locale/fr/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-27 11:30+0100\n" +"POT-Creation-Date: 2024-03-11 16:15+0100\n" "PO-Revision-Date: 2024-02-27 11:32+0100\n" "Last-Translator: \n" "Language-Team: \n" @@ -18,25 +18,25 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Generator: Poedit 3.4\n" -#: blog/models.py:33 +#: blog/models.py:34 msgid "Posts per page" msgstr "Articles par page" -#: blog/models.py:43 +#: blog/models.py:44 msgid "Blog index" msgstr "Index de blog" -#: blog/models.py:71 blog/templates/blog/tags_list_page.html:20 +#: blog/models.py:72 blog/templates/blog/tags_list_page.html:20 #: blog/views.py:149 msgid "Tags" msgstr "Étiquettes" -#: blog/models.py:94 blog/models.py:167 blog/models.py:248 +#: blog/models.py:95 blog/models.py:167 blog/models.py:248 #: blog/templates/blog/categories_list_page.html:20 blog/views.py:117 msgid "Categories" msgstr "Catégories" -#: blog/models.py:106 blog/templates/blog/blog_index_page.html:58 +#: blog/models.py:107 blog/templates/blog/blog_index_page.html:58 msgid "Posts written by" msgstr "Articles écrits par" diff --git a/content_manager/locale/fr/LC_MESSAGES/django.po b/content_manager/locale/fr/LC_MESSAGES/django.po index 89e911b1..df32707e 100644 --- a/content_manager/locale/fr/LC_MESSAGES/django.po +++ b/content_manager/locale/fr/LC_MESSAGES/django.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-02-27 11:30+0100\n" -"PO-Revision-Date: 2024-02-27 11:32+0100\n" +"POT-Creation-Date: 2024-03-11 16:15+0100\n" +"PO-Revision-Date: 2024-03-11 16:19+0100\n" "Last-Translator: \n" "Language-Team: \n" "Language: fr\n" @@ -18,18 +18,93 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Generator: Poedit 3.4\n" -#: content_manager/abstract.py:28 +#: content_manager/abstract.py:25 +msgid "Show title in header image?" +msgstr "Afficher le titre sur l’image d’en-tête ?" + +#: content_manager/abstract.py:33 msgid "Header image" msgstr "Image d’en-tête" -#: content_manager/abstract.py:33 +#: content_manager/abstract.py:37 +msgid "Background color" +msgstr "Couleur de fond" + +#: content_manager/abstract.py:41 +msgid "Uses the French Design System colors" +msgstr "Utilise les couleurs du système de design de l'État" + +#: content_manager/abstract.py:44 +msgid "Full width" +msgstr "Pleine largeur" + +#: content_manager/abstract.py:45 +msgid "Darken background image" +msgstr "Assombrir l’image de fond" + +#: content_manager/abstract.py:48 +msgid "Call to action text" +msgstr "Texte de l’appel à action" + +#: content_manager/abstract.py:54 +msgid "Call to action label" +msgstr "Libellé de l’appel à action" + +#: content_manager/abstract.py:60 +msgid "Call to action link" +msgstr "Lien de l’appel à action" + +#: content_manager/abstract.py:66 msgid "Body" msgstr "Corps" -#: content_manager/abstract.py:41 +#: content_manager/abstract.py:70 +msgid "Common page configuration" +msgstr "Configuration commune" + +#: content_manager/abstract.py:82 +msgid "Header options" +msgstr "Options d’en-tête" + +#: content_manager/abstract.py:102 msgid "Base page" msgstr "Page de base" -#: content_manager/abstract.py:42 +#: content_manager/abstract.py:103 msgid "Base pages" msgstr "Pages de base" + +#: content_manager/blocks.py:31 +msgid "Link text" +msgstr "Texte du lien" + +#: content_manager/blocks.py:32 +msgid "Page" +msgstr "Page" + +#: content_manager/blocks.py:33 +msgid "External URL" +msgstr "URL externe" + +#: content_manager/models.py:19 +msgid "Content page" +msgstr "Page de contenu" + +#: content_manager/templates/content_manager/tags_list_page.html:31 +#: content_manager/views.py:46 content_manager/views.py:77 +msgid "Tags" +msgstr "Étiquettes" + +#: content_manager/views.py:52 +msgid "List of all the tags." +msgstr "Liste de toutes les étiquettes" + +#: content_manager/views.py:73 +#, python-brace-format +msgid "Pages tagged with {tag}" +msgstr "Pages avec l’étiquette {tag}" + +#: content_manager/views.py:82 +#, python-brace-format +msgid "List of pages tagged with {tag}" +msgstr "Liste de pages avec l’étiquette {tag}" diff --git a/content_manager/management/commands/create_sample_pages.py b/content_manager/management/commands/create_sample_pages.py index d58e34e2..d0734a7f 100644 --- a/content_manager/management/commands/create_sample_pages.py +++ b/content_manager/management/commands/create_sample_pages.py @@ -84,7 +84,7 @@ def create_homepage(self) -> None: # Create the page body = [] - title = "Votre nouveau site avec le CMS Beta" + title = "Votre nouveau site avec Sites faciles" image = import_image( full_path="staticfiles/dsfr/dist/artwork/pictograms/digital/coding.svg", diff --git a/pyproject.toml b/pyproject.toml index 6f9d17c7..d6f5aaae 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "content-manager" -version = "1.1" +version = "1.3" description = "Gestionnaire de contenu permettant de créer et gérer un site internet basé sur le Système de design de l'État, accessible et responsive" authors = [ "Sébastien Reuiller ",