Skip to content

Commit

Permalink
Add all notice options to admin settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-Crow committed Aug 23, 2024
1 parent 0d1c1dc commit 5164ef1
Show file tree
Hide file tree
Showing 13 changed files with 399 additions and 142 deletions.
25 changes: 25 additions & 0 deletions blog/migrations/0030_alter_category_locale.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Generated by Django 5.0.8 on 2024-08-23 13:17

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("blog", "0029_alter_blogentrypage_body_alter_blogindexpage_body_and_more"),
("wagtailcore", "0094_alter_page_locale"),
]

operations = [
migrations.AlterField(
model_name="category",
name="locale",
field=models.ForeignKey(
editable=False,
on_delete=django.db.models.deletion.PROTECT,
related_name="+",
to="wagtailcore.locale",
verbose_name="locale",
),
),
]
Binary file modified content_manager/locale/fr/LC_MESSAGES/django.mo
Binary file not shown.
155 changes: 99 additions & 56 deletions content_manager/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-07-24 17:14+0200\n"
"PO-Revision-Date: 2024-07-24 17:14+0200\n"
"POT-Creation-Date: 2024-08-23 16:16+0200\n"
"PO-Revision-Date: 2024-08-23 16:17+0200\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: fr\n"
Expand Down Expand Up @@ -201,7 +201,7 @@ msgstr "Badge"
#: content_manager/blocks.py:615 content_manager/blocks.py:624
#: content_manager/blocks.py:666 content_manager/blocks.py:780
#: content_manager/blocks.py:810 content_manager/blocks.py:910
#: content_manager/models.py:276
#: content_manager/models.py:323
msgid "Title"
msgstr "Titre"

Expand Down Expand Up @@ -849,185 +849,231 @@ msgstr "Icône du côté droit"
msgid "Icon on the left side"
msgstr "Icône du côté gauche"

#: content_manager/models.py:25
#: content_manager/models.py:26
msgid "Content page"
msgstr "Page de contenu"

#: content_manager/models.py:42
#: content_manager/models.py:43
msgid "Tag"
msgstr "Étiquette"

#: content_manager/models.py:94
#: content_manager/models.py:95
msgid "Site configuration"
msgstr "Configuration du site"

#: content_manager/models.py:95
#: content_manager/models.py:96
msgid "Site configurations"
msgstr "Configurations du site"

#: content_manager/models.py:98
#: content_manager/models.py:99
msgid "Institution (header)"
msgstr "Institution (en-tête)"

#: content_manager/models.py:101
#: content_manager/models.py:102
msgid ""
"Institution brand as defined on page https://www.info.gouv.fr/marque-de-"
"letat/le-bloc-marque"
msgstr ""
"Nom de l’institution tel que défini sur la page https://www.info.gouv.fr/"
"marque-de-letat/le-bloc-marque"

#: content_manager/models.py:105
#: content_manager/models.py:106
msgid "Institution with line break (header)"
msgstr "Institution avec césure (en-tête)"

#: content_manager/models.py:109
#: content_manager/models.py:110
msgid "Institution brand with <br /> tags for line breaks"
msgstr "Nom de l’institution avec des <br /> pour les retours à la ligne"

#: content_manager/models.py:112
#: content_manager/models.py:113
msgid "Institution (footer)"
msgstr "Institution (pied)"

#: content_manager/models.py:119
#: content_manager/models.py:120
msgid "Institution with line break (footer)"
msgstr "Institution avec césure (pied)"

#: content_manager/models.py:126 content_manager/models.py:128
#: content_manager/models.py:127 content_manager/models.py:129
msgid "Site title"
msgstr "Titre du site"

#: content_manager/models.py:132 content_manager/models.py:134
#: content_manager/models.py:133 content_manager/models.py:135
msgid "Site tagline"
msgstr "Sous-titre du site"

#: content_manager/models.py:139
msgid "Important notice"
msgstr "Bandeau d’information importante"
#: content_manager/models.py:140
msgid "Notice title"
msgstr "Titre du bandeau"

#: content_manager/models.py:144
#: content_manager/models.py:144 content_manager/models.py:151
msgid "Can include HTML"
msgstr "Peut inclure du HTML"

#: content_manager/models.py:148
msgid "Notice description"
msgstr "Description du bandeau"

#: content_manager/models.py:154
msgid "Notice type"
msgstr "Type de bandeau"

#: content_manager/models.py:160
msgid ""
"The important notice banner should only be used for essential and temporary "
"information. (Excessive or continuous use risks “drowning” the "
"message.)"
"Use is strictly regulated, see <a href=\"https://www.systeme-de-"
"design.gouv.fr/composants-et-modeles/composants/bandeau-d-information-"
"importante/\">documentation</a>."
msgstr ""
"Le bandeau d’information importante doit être utilisé uniquement pour une "
"information primordiale et temporaire. (Une utilisation excessive ou "
"continue risque de “noyer” le message)"
"L’usage de ce bandeau est strictement encadré, voir la <a href=\"https://www."
"systeme-de-design.gouv.fr/composants-et-modeles/composants/bandeau-d-"
"information-importante/\">documentation</a>."

#: content_manager/models.py:166
msgid "Notice link"
msgstr "Lien du bandeau"

#: content_manager/models.py:169
msgid "Standardized consultation link at the end of the notice."
msgstr "Lien de consultation standardisé à la fin du bandeau."

#: content_manager/models.py:173
msgid "Notice icon class"
msgstr "Classe d’icône du bandeau"

#: content_manager/models.py:177
msgid "For weather alerts only"
msgstr "Pour les bandeaux de vigilance météo uniquement"

#: content_manager/models.py:180
msgid "Collapsible?"
msgstr "Refermable ?"

#: content_manager/models.py:149
#: content_manager/models.py:182
msgid "Show the BETA tag next to the title"
msgstr "Afficher la mention BETA à côté du titre"

#: content_manager/models.py:152 content_manager/models.py:312
#: content_manager/models.py:185 content_manager/models.py:359
msgid "Description"
msgstr "Description"

#: content_manager/models.py:165 content_manager/models.py:209
#: content_manager/models.py:198 content_manager/models.py:256
msgid "Operator logo"
msgstr "Logo opérateur"

#: content_manager/models.py:169
#: content_manager/models.py:202
msgid "Logo alt text"
msgstr "Alternative textuelle du logo"

#: content_manager/models.py:172
#: content_manager/models.py:205
msgid "Must contain the text present in the image."
msgstr "Doit impérativement contenir le texte présent dans l’image."

#: content_manager/models.py:175
#: content_manager/models.py:208
msgid "Width (em)"
msgstr "Largeur (em)"

#: content_manager/models.py:181
#: content_manager/models.py:214
msgid ""
"To be adjusted according to the width of the logo. Example for a "
"vertical logo: 3.5, Example for a horizontal logo: 8."
msgstr ""
"À ajuster en fonction de la largeur du logo. Exemple pour un logo vertical: "
"3.5, Exemple pour un logo horizontal: 8."

#: content_manager/models.py:190
#: content_manager/models.py:223
msgid "Newsletter description"
msgstr "Description de la lettre d’information"

#: content_manager/models.py:193
#: content_manager/models.py:226
msgid "Newsletter registration URL"
msgstr "URL d‘inscription à la lettre d’information"

#: content_manager/models.py:218
#: content_manager/models.py:244
msgid "Important notice"
msgstr "Bandeau d’information importante"

#: content_manager/models.py:246
msgid ""
"The important notice banner should only be used for essential and temporary "
"information. (Excessive or continuous use risks “drowning” "
"the message.)"
msgstr ""
"Le bandeau d’information importante doit être utilisé uniquement pour une "
"information primordiale et temporaire. (Une utilisation excessive ou "
"continue risque de “noyer” le message)"

#: content_manager/models.py:265
msgid "Advanced settings"
msgstr "Paramètres avancés"

#: content_manager/models.py:228
#: content_manager/models.py:275
msgid "Header"
msgstr "En-tête"

#: content_manager/models.py:235
#: content_manager/models.py:282
msgid "Footer"
msgstr "Pied de page"

#: content_manager/models.py:245
#: content_manager/models.py:292
msgid "Newsletter"
msgstr "Lettre d’information"

#: content_manager/models.py:247 content_manager/models.py:293
#: content_manager/models.py:294 content_manager/models.py:340
msgid "Social media items"
msgstr "Liens de réseaux sociaux"

#: content_manager/models.py:251
#: content_manager/models.py:298
msgid "Generic"
msgstr "Génériques"

#: content_manager/models.py:252
#: content_manager/models.py:299
msgid "Brand block"
msgstr "Bloc-marque"

#: content_manager/models.py:253
#: content_manager/models.py:300
msgid "Newsletter and social media"
msgstr "Lettre d’information et réseaux sociaux"

#: content_manager/models.py:279
#: content_manager/models.py:326
msgid "URL"
msgstr "URL"

#: content_manager/models.py:283
#: content_manager/models.py:330
msgid "Icon class"
msgstr "Classe d’icône"

#: content_manager/models.py:292
#: content_manager/models.py:339
msgid "Social media item"
msgstr "Lien de réseau social"

#: content_manager/models.py:299
#: content_manager/models.py:346
msgid "Category"
msgstr "Catégorie"

#: content_manager/models.py:302
#: content_manager/models.py:349
msgid "Mega menu category"
msgstr "Catégorie de méga menu"

#: content_manager/models.py:303
#: content_manager/models.py:350
msgid "Mega menu categories"
msgstr "Catégories de méga menu"

#: content_manager/models.py:308
#: content_manager/models.py:355
msgid "Name"
msgstr "Nom"

#: content_manager/models.py:313
#: content_manager/models.py:360
msgid "Main link"
msgstr "Lien principal"

#: content_manager/models.py:323
#: content_manager/models.py:370
msgid "Categories"
msgstr "Catégories"

#: content_manager/models.py:324
#: content_manager/models.py:371
msgid "Maximum 4 categories, each with maximum 8 links."
msgstr "Maximum 4 catégories, chacune contenant maximum 8 liens."

#: content_manager/models.py:335
#: content_manager/models.py:382
msgid "Mega menu"
msgstr "Méga menu"

Expand Down Expand Up @@ -1097,9 +1143,6 @@ msgstr "Liste de pages avec l’étiquette {tag}"
#~ msgid "The link appears as a button under the text block"
#~ msgstr "Le lien apparaît comme un bouton sous le bloc de texte"

#~ msgid "Can contain HTML."
#~ msgstr "Peut contenir du HTML."

#~ msgid "Callout title"
#~ msgstr "Titre de l’appel à action"

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Generated by Django 5.0.8 on 2024-08-23 13:18

from django.db import migrations


class Migration(migrations.Migration):
dependencies = [
("content_manager", "0038_alter_contentpage_body"),
]

operations = [
migrations.RenameField(
model_name="cmsdsfrconfig",
old_name="notice",
new_name="notice_title",
),
]
Loading

0 comments on commit 5164ef1

Please sign in to comment.