diff --git a/combo/apps/wcs/models.py b/combo/apps/wcs/models.py index 9609c423..44ee3140 100644 --- a/combo/apps/wcs/models.py +++ b/combo/apps/wcs/models.py @@ -30,6 +30,7 @@ from django.utils.html import escape from django.utils.safestring import mark_safe from django.utils.text import slugify from django.utils.translation import gettext_lazy as _ +from django.utils.translation import pgettext_lazy from requests.exceptions import RequestException from combo.data.library import register_cell_class @@ -837,8 +838,8 @@ class WcsCardCell(CardMixin, CellBase): max_length=10, default='card', choices=[ - ('card', _('Card')), - ('table', _('Table')), + ('card', pgettext_lazy('card-display-mode', 'Card')), + ('table', pgettext_lazy('card-display-mode', 'Table')), ], ) diff --git a/combo/locale/fr/LC_MESSAGES/django.po b/combo/locale/fr/LC_MESSAGES/django.po index de8ae3a4..d06aadf3 100644 --- a/combo/locale/fr/LC_MESSAGES/django.po +++ b/combo/locale/fr/LC_MESSAGES/django.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: combo 0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-08-16 12:06+0000\n" +"POT-Creation-Date: 2022-08-29 15:05+0200\n" "PO-Revision-Date: 2022-08-16 14:06+0200\n" "Last-Translator: Thomas NOËL \n" "Language: French\n" @@ -53,7 +53,7 @@ msgstr "Êtes-vous sûr·e de vouloir supprimer ceci ?" #: apps/maps/templates/maps/map_cell_form.html #: apps/maps/templates/maps/map_layer_confirm_delete.html #: apps/search/templates/combo/manager/search-cell-form.html -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html #: data/templates/combo/manager/link-list-cell-form.html #: manager/templates/combo/delete_page.html #: manager/templates/combo/generic_confirm_delete.html @@ -170,7 +170,7 @@ msgid "Name" msgstr "Nom" #: apps/assets/templates/combo/manager_assets_fragment.html -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html #: data/models.py msgid "Size" msgstr "Taille" @@ -236,7 +236,7 @@ msgstr "La durée minimale de réservation est %s." #: apps/calendar/models.py apps/dataviz/models.py apps/family/models.py #: apps/gallery/models.py apps/lingo/models.py apps/maps/models.py #: apps/search/models.py apps/wcs/models.py -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html #: data/models.py public/views.py msgid "Title" msgstr "Titre" @@ -369,7 +369,7 @@ msgstr "Slug" #: apps/dataviz/models.py apps/lingo/models.py #: apps/lingo/templates/lingo/combo/items.html apps/maps/models.py #: apps/notifications/models.py apps/pwa/models.py -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html #: data/models.py manager/forms.py msgid "Label" msgstr "Libellé" @@ -1011,7 +1011,7 @@ msgid "Basket Link" msgstr "Lien vers le panier" #: apps/lingo/models.py -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html #: data/models.py msgid "Text" msgstr "Texte" @@ -2102,7 +2102,7 @@ msgstr "Couches cartographiques :" #: apps/maps/templates/maps/map_cell_form.html #: apps/search/templates/combo/manager/search-cell-form.html -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html #: data/templates/combo/manager/link-list-cell-form.html msgid "Edit" msgstr "Modifier" @@ -2441,18 +2441,18 @@ msgstr "Demandes (%s)" msgid "Restrict to cards accessible to the user" msgstr "Restreindre aux fiches accessibles à l’usager connecté" -#: apps/wcs/forms.py -msgid "Customize display" -msgstr "Personnaliser l’affichage" - #: apps/wcs/forms.py apps/wcs/models.py -msgid "Card Identifier" -msgstr "Identifiant de fiche" +msgid "Card(s) to display" +msgstr "Fiche(s) à afficher" #: apps/wcs/forms.py msgid "Identifier from page URL" msgstr "Identifiant dans l’adresse de la page" +#: apps/wcs/forms.py +msgid "All cards" +msgstr "Toutes les fiches" + #: apps/wcs/forms.py apps/wcs/models.py msgid "Other Card Identifiers" msgstr "Autres identifiants de fiche" @@ -2461,6 +2461,10 @@ msgstr "Autres identifiants de fiche" msgid "This field is required." msgstr "Ce champ est obligatoire." +#: apps/wcs/forms.py +msgid "Customize display" +msgstr "Personnaliser l’affichage" + #: apps/wcs/forms.py msgid "By default forms from all categories are displayed." msgstr "Par défaut les démarches de toutes les catégories sont affichés." @@ -2650,8 +2654,19 @@ msgid "Number of cards per page (default 10)" msgstr "Nombre de fiches par page (par défaut : 10)" #: apps/wcs/models.py -msgid "Cards" -msgstr "Fiches" +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html +msgid "Display mode" +msgstr "Mode d’affichage" + +#: apps/wcs/models.py +msgctxt "card-display-mode" +msgid "Card" +msgstr "Carte" + +#: apps/wcs/models.py +msgctxt "card-display-mode" +msgid "Table" +msgstr "Tableau" #: apps/wcs/models.py msgid "Default Title (Card Label)" @@ -2662,8 +2677,12 @@ msgid "No Title" msgstr "Pas de titre" #: apps/wcs/models.py -msgid "Card Information Cell" -msgstr "Contenu d’une fiche" +msgid "Card(s)" +msgstr "Fiche(s)" + +#: apps/wcs/models.py +msgid "Display" +msgstr "Affichage" #: apps/wcs/models.py msgid "Tracking Code Input" @@ -2726,116 +2745,112 @@ msgstr "Il n’y a aucune demande en cours de traitement." msgid "More items" msgstr "Afficher davantage d’éléments" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html msgid "Grid Layout:" msgstr "Disposition de la grille :" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html msgid "Automatic" msgstr "Automatique" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html msgid "Add" msgstr "Ajouter" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html msgid "Layout" msgstr "Disposition" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html #: manager/forms.py msgid "1 column" msgstr "Une colonne" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html #: manager/forms.py msgid "2 columns" msgstr "Deux colonnes" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html #: manager/forms.py msgid "3 columns" msgstr "Trois colonnes" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html msgid "Content type" msgstr "Type de contenu" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html msgid "Card field" msgstr "Champ de la fiche" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html msgid "Custom" msgstr "Personnalisé" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html #: data/models.py msgid "Link" msgstr "Lien" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html msgid "Card Fields" msgstr "Champs de la fiche" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html msgid "Field content" msgstr "Contenu du champ" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html msgid "Label & Value" msgstr "Libellé et valeur" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html msgid "Label only" msgstr "Libellé uniquement" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html msgid "Value only" msgstr "Valeur uniquement" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html -msgid "Display mode" -msgstr "Mode d’affichage" - -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html msgid "Subtitle" msgstr "Sous-titre" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html msgid "Empty value display mode" msgstr "Mode d’affichage en cas de valeur absente" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html msgid "Display as empty" msgstr "Inclure la case vide" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html msgid "Hide" msgstr "Ne pas inclure la case" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html msgid "Display a custom text" msgstr "Inclure un texte personnalisé" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html msgid "Empty value custom text" msgstr "Texte personnalisé" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html #: manager/forms.py msgid "Value template" msgstr "Gabarit" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html msgid "Label template" msgstr "Label (gabarit)" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html msgid "URL template" msgstr "URL (gabarit)" -#: apps/wcs/templates/combo/wcs/manager/card-infos-cell-form.html +#: apps/wcs/templates/combo/wcs/manager/card-cell-form-display.html msgid "Button" msgstr "Bouton" @@ -3524,8 +3539,8 @@ msgstr "" #: manager/templates/combo/page_view.html msgid "It will also be used as a template for the pages behind this URL." msgstr "" -"Elle sera également utilisée comme modèle pour cette adresse ou " -"d’autres adresses sous celle-ci." +"Elle sera également utilisée comme modèle pour cette adresse ou d’autres " +"adresses sous celle-ci." #: manager/templates/combo/page_view.html #: manager/templates/combo/placeholder_options.html