From 35fe3e741161f180a7538e3ba670828718842984 Mon Sep 17 00:00:00 2001 From: Michael Bideau Date: Wed, 21 Aug 2019 14:20:47 +0000 Subject: [PATCH] Setup.py: added locales compilation; Locales: added 'fr' PO file; Fixes: semantics and typos --- .gitignore | 1 + .../locale/fr/LC_MESSAGES/django.po | 402 ++++++++++++++++++ .../locale/fr/LC_MESSAGES/django.po.new | 400 +++++++++++++++++ atreal_openads/migrations/0001_initial.py | 8 +- atreal_openads/models.py | 14 +- setup.py | 44 +- 6 files changed, 857 insertions(+), 12 deletions(-) create mode 100644 atreal_openads/locale/fr/LC_MESSAGES/django.po create mode 100644 atreal_openads/locale/fr/LC_MESSAGES/django.po.new diff --git a/.gitignore b/.gitignore index 9d979f1..c5be799 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ /test*_results.xml /coverage.xml /htmlcov +/atreal_openads/locale/*/LC_MESSAGES/django.mo diff --git a/atreal_openads/locale/fr/LC_MESSAGES/django.po b/atreal_openads/locale/fr/LC_MESSAGES/django.po new file mode 100644 index 0000000..d59b9a5 --- /dev/null +++ b/atreal_openads/locale/fr/LC_MESSAGES/django.po @@ -0,0 +1,402 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: \n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-21 15:15+0200\n" +"PO-Revision-Date: 2019-08-21 14:14+0000\n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: fr_FR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.8.11\n" +"X-Poedit-Basepath: ../../../..\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Poedit-SearchPath-0: .\n" + +#: atreal_openads/models.py:66 +msgid "Pending" +msgstr "En attente" + +#: atreal_openads/models.py:67 +msgid "Uploading" +msgstr "Téléchargement" + +#: atreal_openads/models.py:68 +msgid "Failed" +msgstr "Échoué" + +#: atreal_openads/models.py:69 +msgid "Success" +msgstr "Succès" + +#: atreal_openads/models.py:94 +msgid "Forward File" +msgstr "Fichier transféré" + +#: atreal_openads/models.py:179 +#, python-format +msgid "A %(object)s cannot have all the following fields empty: %(fields)s." +msgstr "" +"Un %(object)s ne peut pas avoir tous les champs suivants vides: %(fields)s." + +#: atreal_openads/models.py:195 +msgid "openADS identifier" +msgstr "identifiant openADS" + +#: atreal_openads/models.py:195 atreal_openads/models.py:347 +msgid "ex: 3" +msgstr "ex: 3" + +#: atreal_openads/models.py:201 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_view.html:35 +msgid "Collectivite" +msgstr "Collectivité" + +#: atreal_openads/models.py:263 +msgid "Monday" +msgstr "Lundi" + +#: atreal_openads/models.py:264 +msgid "Tuesday" +msgstr "Mardi" + +#: atreal_openads/models.py:265 +msgid "Wednesday" +msgstr "Mercredi" + +#: atreal_openads/models.py:266 +msgid "Thursday" +msgstr "Jeudi" + +#: atreal_openads/models.py:267 +msgid "Friday" +msgstr "Vendredi" + +#: atreal_openads/models.py:268 +msgid "Saturday" +msgstr "Samedi" + +#: atreal_openads/models.py:269 +msgid "Sunday" +msgstr "Dimanche" + +#: atreal_openads/models.py:275 +msgid "Hour of opening (each day)" +msgstr "Heure d'ouverture (chaque jour)" + +#: atreal_openads/models.py:275 atreal_openads/models.py:279 +msgid "ex: 08:30" +msgstr "ex: 08:30" + +#: atreal_openads/models.py:276 +msgid "Hour of closing (each day)" +msgstr "Heure de fermeture (chaque jour)" + +#: atreal_openads/models.py:276 +msgid "ex: 17:00" +msgstr "ex: 17:00" + +#: atreal_openads/models.py:277 +msgid "Day of opening (each week)" +msgstr "Jour d'ouverture (chaque semaine)" + +#: atreal_openads/models.py:277 +msgid "ex: Lundi" +msgstr "ex: Lundi" + +#: atreal_openads/models.py:278 +msgid "Day of closing (each week)" +msgstr "Jour de fermeture (chaque semaine)" + +#: atreal_openads/models.py:278 +msgid "ex: Samedi" +msgstr "ex: Samedi" + +#: atreal_openads/models.py:279 +msgid "Hour of opening (on opening day)" +msgstr "Heure d'ouverture (le jour d'ouverture)" + +#: atreal_openads/models.py:280 +msgid "Hour of closing (on closing day)" +msgstr "Heure de fermeture (le jour de fermeture)" + +#: atreal_openads/models.py:280 +msgid "ex: 12:15" +msgstr "ex: 12:15" + +#: atreal_openads/models.py:283 +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:34 +#: atreal_openads/templates/atreal_openads/manage/collectivite_view.html:37 +msgid "Guichet" +msgstr "Guichet" + +#: atreal_openads/models.py:284 +msgid "Guichets" +msgstr "Guichets" + +#: atreal_openads/models.py:346 +msgid "Default 'collectivite' (identifier in openADS)" +msgstr "Collectivité par défaut (identifiant openADS)" + +#: atreal_openads/models.py:348 +msgid "openADS API URL" +msgstr "URL de l'API openADS" + +#: atreal_openads/models.py:349 +msgid "ex: https://openads.your_domain.net/api/" +msgstr "ex: https://openads.votre_domaine.net/api/" + +#: atreal_openads/models.py:355 +msgid "This API provides exchanges with openADS." +msgstr "Cette API fournis une passerelle vers openADS." + +#: atreal_openads/models.py:357 +msgid "Business Process Connectors" +msgstr "Connecteurs Processus Métiers" + +#: atreal_openads/models.py:360 atreal_openads/models.py:361 +msgid "openADS" +msgstr "openADS" + +#: atreal_openads/models.py:476 +msgid "Test an openADS 'connexion'" +msgstr "Teste une connexion openADS" + +#: atreal_openads/models.py:500 atreal_openads/models.py:810 +#: atreal_openads/models.py:955 atreal_openads/models.py:1039 +msgid "Type of 'dossier'" +msgstr "Type de dossier" + +#: atreal_openads/models.py:502 +msgid "Use this collectivite (instead of the default one)" +msgstr "Utiliser cette collectivité (à la place de celle par défaut)" + +#: atreal_openads/models.py:505 +#, python-format +msgid "" +"Datetime (or string formatted to: '%s') against which the 'guichet' is " +"checked for opening" +msgstr "" +"Date-heure (ou chaîne au format: '%s') à partir de laquelle sera testée " +"l'ouverture du guichet" + +#: atreal_openads/models.py:507 +msgid "Create an openADS 'dossier'" +msgstr "Créer un dossier openADS" + +#: atreal_openads/models.py:561 +#, python-format +msgid "Guichet closed for collectivite '%s'" +msgstr "Le guichet est fermé pour la collectivité '%s'" + +#: atreal_openads/models.py:806 +msgid "Get informations about an openADS 'dossier'" +msgstr "Obtenir des informations sur un dossier openADS" + +#: atreal_openads/models.py:811 atreal_openads/models.py:852 +#: atreal_openads/models.py:909 atreal_openads/models.py:956 +#: atreal_openads/models.py:1040 +msgid "Identifier for 'dossier'" +msgstr "Identifiant du dossier" + +#: atreal_openads/models.py:848 +msgid "Get informations about the forwarding of user files to openADS" +msgstr "" +"Obtenir des informations sur le transfers des fichiers utilisateur vers " +"openADS" + +#: atreal_openads/models.py:853 atreal_openads/models.py:910 +msgid "File identifier" +msgstr "Identifiant fichier" + +#: atreal_openads/models.py:905 +msgid "Get informations about the forwarding of a user file to openADS" +msgstr "" +"Obtenir des informations sur le transfers d'un fichier utilisateur vers " +"openADS" + +#: atreal_openads/models.py:951 +msgid "Get a 'courrier' from an openADS 'dossier'" +msgstr "Obtenir un courrier d'un dossier openADS" + +#: atreal_openads/models.py:957 +msgid "Courrier ID to get" +msgstr "ID du courrier à obtenir" + +#: atreal_openads/models.py:1035 +msgid "Trigger the uploading of user's files to openADS" +msgstr "Délenche le transfers des fichiers utilisateurs vers openADS" + +#: atreal_openads/models.py:1041 +msgid "List of ForwardFile IDs to upload (coma separated)" +msgstr "Liste des IDs des ForwardFile à transférer (séparés par une virgule)" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_form.html:15 +#: atreal_openads/templates/atreal_openads/manage/guichet_form.html:16 +msgid "New" +msgstr "Nouveau" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_form.html:27 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_form.html:28 +#: atreal_openads/templates/atreal_openads/manage/guichet_form.html:28 +msgid "Save" +msgstr "Enregistrer" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_form.html:28 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_form.html:29 +#: atreal_openads/templates/atreal_openads/manage/guichet_form.html:29 +msgid "Cancel" +msgstr "Annuler" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:18 +msgid "Add a Collectivite" +msgstr "Ajouter une collectivité" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:30 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_list.html:26 +msgid "Actions" +msgstr "Actions" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:35 +msgid "Forward Files" +msgstr "Fichiers transférés" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:47 +#: atreal_openads/templates/atreal_openads/manage/collectivite_view.html:21 +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:28 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_list.html:38 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_view.html:22 +#: atreal_openads/templates/atreal_openads/manage/guichet_view.html:22 +msgid "edit" +msgstr "éditer" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:48 +#: atreal_openads/templates/atreal_openads/manage/collectivite_view.html:18 +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:25 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_list.html:39 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_view.html:19 +#: atreal_openads/templates/atreal_openads/manage/guichet_view.html:19 +msgid "delete" +msgstr "supprimer" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:58 +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:60 +#: atreal_openads/templates/atreal_openads/manage/collectivite_view.html:41 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_list.html:48 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_list.html:52 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_view.html:39 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_view.html:46 +msgid "None" +msgstr "Aucun(e)" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:60 +msgid "forward file(s)" +msgstr "fichier(s) transféré(s)" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:74 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_list.html:67 +msgid "first" +msgstr "première" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:75 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_list.html:68 +msgid "previous" +msgstr "précédente" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:79 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_list.html:72 +msgid "Page" +msgstr "Page" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:83 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_list.html:76 +msgid "next" +msgstr "suivante" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:84 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_list.html:77 +msgid "last" +msgstr "dernière" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:93 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_list.html:86 +msgid "No data" +msgstr "Aucune donnée" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_view.html:24 +msgid "Add a Guichet" +msgstr "Ajouter un Guichet" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_view.html:37 +#: atreal_openads/templates/atreal_openads/manage/collectivite_view.html:44 +#: atreal_openads/templates/atreal_openads/manage/collectivite_view.html:51 +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:43 +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:58 +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:66 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_view.html:35 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_view.html:42 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_view.html:49 +#: atreal_openads/templates/atreal_openads/manage/guichet_view.html:36 +msgid ":" +msgstr ":" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_view.html:50 +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:65 +msgid "Forward files" +msgstr "Fichiers transférés" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_view.html:54 +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:69 +msgid "forward file" +msgstr "fichier transféré" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_view.html:55 +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:70 +msgid "forward files" +msgstr "fichiers transférés" + +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:13 +msgid "since:" +msgstr "depuis:" + +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:13 +msgid "Down" +msgstr "Hors service" + +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:19 +msgid "availability check parameters" +msgstr "paramètres pour le test de disponibilité" + +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:22 +msgid "logging parameters" +msgstr "paramètres pour l'identification" + +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:31 +msgid "Add a collectivite" +msgstr "Ajouter une collectivité" + +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:42 +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:47 +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:57 +msgid "Collectivites" +msgstr "Collectivités" + +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:59 +msgid "collectivites" +msgstr "collectivités" + +#: atreal_openads/templates/atreal_openads/manage/forwardfile_list.html:16 +msgid "list" +msgstr "lister" + +#: atreal_openads/templates/atreal_openads/manage/forwardfile_view.html:42 +msgid "File" +msgstr "Fichier" diff --git a/atreal_openads/locale/fr/LC_MESSAGES/django.po.new b/atreal_openads/locale/fr/LC_MESSAGES/django.po.new new file mode 100644 index 0000000..6907d57 --- /dev/null +++ b/atreal_openads/locale/fr/LC_MESSAGES/django.po.new @@ -0,0 +1,400 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-08-21 14:47+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.8.11\n" +"X-Poedit-Basepath: ../../../..\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Poedit-SearchPath-0: .\n" + +#: atreal_openads/models.py:66 +msgid "Pending" +msgstr "En attente" + +#: atreal_openads/models.py:67 +msgid "Uploading" +msgstr "Téléchargement" + +#: atreal_openads/models.py:68 +msgid "Failed" +msgstr "Échoué" + +#: atreal_openads/models.py:69 +msgid "Success" +msgstr "Succès" + +#: atreal_openads/models.py:94 +msgid "Forward File" +msgstr "Fichier transféré" + +#: atreal_openads/models.py:179 +#, python-format +msgid "A %(object)s cannot have all the following fields empty: %(fields)s." +msgstr "" +"Un %(object)s ne peut pas avoir tous les champs suivants vides: %(fields)s." + +#: atreal_openads/models.py:195 +msgid "openADS identifier" +msgstr "identifiant openADS" + +#: atreal_openads/models.py:195 atreal_openads/models.py:347 +msgid "ex: 3" +msgstr "ex: 3" + +#: atreal_openads/models.py:201 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_view.html:35 +msgid "Collectivite" +msgstr "Collectivité" + +#: atreal_openads/models.py:263 +msgid "Monday" +msgstr "Lundi" + +#: atreal_openads/models.py:264 +msgid "Tuesday" +msgstr "Mardi" + +#: atreal_openads/models.py:265 +msgid "Wednesday" +msgstr "Mercredi" + +#: atreal_openads/models.py:266 +msgid "Thursday" +msgstr "Jeudi" + +#: atreal_openads/models.py:267 +msgid "Friday" +msgstr "Vendredi" + +#: atreal_openads/models.py:268 +msgid "Saturday" +msgstr "Samedi" + +#: atreal_openads/models.py:269 +msgid "Sunday" +msgstr "Dimanche" + +#: atreal_openads/models.py:275 +msgid "Hour of opening (each day)" +msgstr "Heure d'ouverture (chaque jour)" + +#: atreal_openads/models.py:275 atreal_openads/models.py:279 +msgid "ex: 08:30" +msgstr "ex: 08:30" + +#: atreal_openads/models.py:276 +msgid "Hour of closing (each day)" +msgstr "Heure de fermeture (chaque jour)" + +#: atreal_openads/models.py:276 +msgid "ex: 17:00" +msgstr "ex: 17:00" + +#: atreal_openads/models.py:277 +msgid "Day of opening (each week)" +msgstr "Jour d'ouverture (chaque semaine)" + +#: atreal_openads/models.py:277 +msgid "ex: Lundi" +msgstr "ex: Lundi" + +#: atreal_openads/models.py:278 +msgid "Day of closing (each week)" +msgstr "Jour de fermeture (chaque semaine)" + +#: atreal_openads/models.py:278 +msgid "ex: Samedi" +msgstr "ex: Samedi" + +#: atreal_openads/models.py:279 +msgid "Hour of opening (on opening day)" +msgstr "Heure d'ouverture (le jour d'ouverture)" + +#: atreal_openads/models.py:280 +msgid "Hour of closing (on closing day)" +msgstr "Heure de fermeture (le jour de fermeture)" + +#: atreal_openads/models.py:280 +msgid "ex: 12:15" +msgstr "ex: 12:15" + +#: atreal_openads/models.py:283 +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:34 +#: atreal_openads/templates/atreal_openads/manage/collectivite_view.html:37 +msgid "Guichet" +msgstr "Guichet" + +#: atreal_openads/models.py:284 +msgid "Guichets" +msgstr "Guichets" + +#: atreal_openads/models.py:346 +msgid "Default 'collectivite' (identifier in openADS)" +msgstr "Collectivité par défaut (identifiant openADS)" + +#: atreal_openads/models.py:348 +msgid "openADS API URL" +msgstr "URL de l'API openADS" + +#: atreal_openads/models.py:349 +msgid "ex: https://openads.your_domain.net/api/" +msgstr "ex: https://openads.votre_domaine.net/api/" + +#: atreal_openads/models.py:355 +msgid "This API provides exchanges with openADS." +msgstr "Cette API fournis une passerelle vers openADS." + +#: atreal_openads/models.py:357 +msgid "Business Process Connectors" +msgstr "Connecteurs Processus Métiers" + +#: atreal_openads/models.py:360 atreal_openads/models.py:361 +msgid "openADS" +msgstr "openADS" + +#: atreal_openads/models.py:476 +msgid "Test an openADS 'connexion'" +msgstr "Teste une connexion openADS" + +#: atreal_openads/models.py:500 atreal_openads/models.py:810 atreal_openads/models.py:955 atreal_openads/models.py:1039 +msgid "Type of 'dossier'" +msgstr "Type de dossier" + +#: atreal_openads/models.py:502 +msgid "Use this collectivite (instead of the default one)" +msgstr "Utiliser cette collectivité (à la place de celle par défaut)" + +#: atreal_openads/models.py:505 +#, python-format +msgid "" +"Datetime (or string formatted to: '%s') against which the 'guichet' is " +"checked for opening" +msgstr "" +"Date-heure (ou chaîne au format: '%s') à partir de laquelle sera testée " +"l'ouverture du guichet" + +#: atreal_openads/models.py:507 +msgid "Create an openADS 'dossier'" +msgstr "Créer un dossier openADS" + +#: atreal_openads/models.py:561 +#, python-format +msgid "Guichet closed for collectivite '%s'" +msgstr "Le guichet est fermé pour la collectivité '%s'" + +#: atreal_openads/models.py:806 +msgid "Get informations about an openADS 'dossier'" +msgstr "Obtenir des informations sur un dossier openADS" + +#: atreal_openads/models.py:811 atreal_openads/models.py:852 atreal_openads/models.py:909 atreal_openads/models.py:956 atreal_openads/models.py:1040 +msgid "Identifier for 'dossier'" +msgstr "Identifiant du dossier" + +#: atreal_openads/models.py:848 +msgid "Get informations about the forwarding of user files to openADS" +msgstr "" +"Obtenir des informations sur le transfers des fichiers utilisateur vers " +"openADS" + +#: atreal_openads/models.py:853 atreal_openads/models.py:910 +msgid "File identifier" +msgstr "Identifiant fichier" + +#: atreal_openads/models.py:905 +msgid "Get informations about the forwarding of a user file to openADS" +msgstr "" +"Obtenir des informations sur le transfers d'un fichier utilisateur vers " +"openADS" + +#: atreal_openads/models.py:951 +msgid "Get a 'courrier' from an openADS 'dossier'" +msgstr "Obtenir un courrier d'un dossier openADS" + +#: atreal_openads/models.py:957 +msgid "Courrier ID to get" +msgstr "ID du courrier à obtenir" + +#: atreal_openads/models.py:1035 +msgid "Trigger the uploading of user's files to openADS" +msgstr "Délenche le transfers des fichiers utilisateurs vers openADS" + +#: atreal_openads/models.py:1041 +msgid "List of ForwardFile IDs to upload (coma separated)" +msgstr "Liste des IDs des ForwardFile à transférer (séparés par une virgule)" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_form.html:15 +#: atreal_openads/templates/atreal_openads/manage/guichet_form.html:16 +msgid "New" +msgstr "Nouveau" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_form.html:27 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_form.html:28 +#: atreal_openads/templates/atreal_openads/manage/guichet_form.html:28 +msgid "Save" +msgstr "Enregistrer" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_form.html:28 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_form.html:29 +#: atreal_openads/templates/atreal_openads/manage/guichet_form.html:29 +msgid "Cancel" +msgstr "Annuler" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:18 +msgid "Add a Collectivite" +msgstr "Ajouter une collectivité" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:30 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_list.html:26 +msgid "Actions" +msgstr "Actions" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:35 +msgid "Forward Files" +msgstr "Fichiers transférés" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:47 +#: atreal_openads/templates/atreal_openads/manage/collectivite_view.html:21 +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:28 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_list.html:38 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_view.html:22 +#: atreal_openads/templates/atreal_openads/manage/guichet_view.html:22 +msgid "edit" +msgstr "éditer" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:48 +#: atreal_openads/templates/atreal_openads/manage/collectivite_view.html:18 +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:25 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_list.html:39 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_view.html:19 +#: atreal_openads/templates/atreal_openads/manage/guichet_view.html:19 +msgid "delete" +msgstr "supprimer" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:58 +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:60 +#: atreal_openads/templates/atreal_openads/manage/collectivite_view.html:41 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_list.html:48 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_list.html:52 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_view.html:39 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_view.html:46 +msgid "None" +msgstr "Aucun(e)" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:60 +msgid "forward file(s)" +msgstr "fichier(s) transféré(s)" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:74 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_list.html:67 +msgid "first" +msgstr "première" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:75 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_list.html:68 +msgid "previous" +msgstr "précédente" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:79 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_list.html:72 +msgid "Page" +msgstr "Page" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:83 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_list.html:76 +msgid "next" +msgstr "suivante" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:84 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_list.html:77 +msgid "last" +msgstr "dernière" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_list.html:93 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_list.html:86 +msgid "No data" +msgstr "Aucune donnée" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_view.html:24 +msgid "Add a Guichet" +msgstr "Ajouter un Guichet" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_view.html:37 +#: atreal_openads/templates/atreal_openads/manage/collectivite_view.html:44 +#: atreal_openads/templates/atreal_openads/manage/collectivite_view.html:51 +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:43 +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:58 +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:66 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_view.html:35 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_view.html:42 +#: atreal_openads/templates/atreal_openads/manage/forwardfile_view.html:49 +#: atreal_openads/templates/atreal_openads/manage/guichet_view.html:36 +msgid ":" +msgstr ":" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_view.html:50 +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:65 +msgid "Forward files" +msgstr "Fichiers transférés" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_view.html:54 +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:69 +msgid "forward file" +msgstr "fichier transféré" + +#: atreal_openads/templates/atreal_openads/manage/collectivite_view.html:55 +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:70 +msgid "forward files" +msgstr "fichiers transférés" + +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:13 +msgid "since:" +msgstr "depuis:" + +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:13 +msgid "Down" +msgstr "Hors service" + +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:19 +msgid "availability check parameters" +msgstr "paramètres pour le test de disponibilité" + +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:22 +msgid "logging parameters" +msgstr "paramètres pour l'identification" + +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:31 +msgid "Add a collectivite" +msgstr "Ajouter une collectivité" + +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:42 +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:47 +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:57 +msgid "Collectivites" +msgstr "Collectivités" + +#: atreal_openads/templates/atreal_openads/manage/connector_view.html:59 +msgid "collectivites" +msgstr "collectivités" + +#: atreal_openads/templates/atreal_openads/manage/forwardfile_list.html:16 +msgid "list" +msgstr "lister" + +#: atreal_openads/templates/atreal_openads/manage/forwardfile_view.html:42 +msgid "File" +msgstr "Fichier" diff --git a/atreal_openads/migrations/0001_initial.py b/atreal_openads/migrations/0001_initial.py index 8ff24ad..a49b66c 100644 --- a/atreal_openads/migrations/0001_initial.py +++ b/atreal_openads/migrations/0001_initial.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Generated by Django 1.11.18 on 2019-08-20 15:02 +# Generated by Django 1.11.18 on 2019-08-21 12:31 from __future__ import unicode_literals import atreal_openads.utils @@ -87,14 +87,14 @@ class Migration(migrations.Migration): ('fermeture_jour_h', models.TimeField(help_text='ex: 17:00', verbose_name='Hour of closing (each day)')), ('ouverture_sem_d', models.PositiveIntegerField(choices=[(1, 'Monday'), (2, 'Tuesday'), (3, 'Wednesday'), (4, 'Thursday'), (5, 'Friday'), (6, 'Saturday'), (7, 'Sunday')], default=1, help_text='ex: Lundi', verbose_name='Day of opening (each week)')), ('fermeture_sem_d', models.PositiveIntegerField(choices=[(1, 'Monday'), (2, 'Tuesday'), (3, 'Wednesday'), (4, 'Thursday'), (5, 'Friday'), (6, 'Saturday'), (7, 'Sunday')], default=6, help_text='ex: Samedi', verbose_name='Day of closing (each week)')), - ('ouverture_sem_h', models.TimeField(help_text='ex: 08:30', verbose_name='Hour of opening (each week)')), - ('fermeture_sem_h', models.TimeField(help_text='ex: 12:15', verbose_name='Hour of closing (each week)')), + ('ouverture_sem_h', models.TimeField(help_text='ex: 08:30', verbose_name='Hour of opening (on opening day)')), + ('fermeture_sem_h', models.TimeField(help_text='ex: 12:15', verbose_name='Hour of closing (on closing day)')), ('collectivite', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='guichet', to='atreal_openads.Collectivite')), ], options={ 'ordering': ['collectivite'], 'verbose_name': 'Guichet', - 'verbose_name_plural': 'Guichets Urbanisme', + 'verbose_name_plural': 'Guichets', }, bases=(models.Model, atreal_openads.utils.BaseModel), ), diff --git a/atreal_openads/models.py b/atreal_openads/models.py index c31f256..147f4d0 100644 --- a/atreal_openads/models.py +++ b/atreal_openads/models.py @@ -176,9 +176,9 @@ class ForwardFile(models.Model, BaseModel): and (not self.upload_file or not self.upload_file.size) ): raise ValidationError( - _("A %s cannot have all the following fields empty: %s." % ( - self.get_verbose_name(), - ['file_hash', 'orig_filename', 'upload_file']) + _("A %(object)s cannot have all the following fields empty: %(fields)s." % { + 'object': self.get_verbose_name(), + 'fields': ['file_hash', 'orig_filename', 'upload_file']} ) ) return ret @@ -276,12 +276,12 @@ class Guichet(models.Model, BaseModel): fermeture_jour_h = models.TimeField(_('Hour of closing (each day)'), help_text=_('ex: 17:00')) ouverture_sem_d = models.PositiveIntegerField(_('Day of opening (each week)'), help_text=_('ex: Lundi'), choices=DAYS, default=1) fermeture_sem_d = models.PositiveIntegerField(_('Day of closing (each week)'), help_text=_('ex: Samedi'), choices=DAYS, default=6) - ouverture_sem_h = models.TimeField(_('Hour of opening (each week)'), help_text=_('ex: 08:30')) - fermeture_sem_h = models.TimeField(_('Hour of closing (each week)'), help_text=_('ex: 12:15')) + ouverture_sem_h = models.TimeField(_('Hour of opening (on opening day)'), help_text=_('ex: 08:30')) + fermeture_sem_h = models.TimeField(_('Hour of closing (on closing day)'), help_text=_('ex: 12:15')) class Meta: verbose_name = _('Guichet') - verbose_name_plural = _('Guichets Urbanisme') + verbose_name_plural = _('Guichets') indexes = [ models.Index(fields=['collectivite'], name='su_collectivite_idx') ] @@ -502,7 +502,7 @@ class AtrealOpenads(BaseResource, HTTPResource, BaseModel): 'description': _("Use this collectivite (instead of the default one)"), 'example_value': '3' }, - 'now': {'description': _("Datetime (or string formatted to: '%Y-%m-%d %H:%M:%S') against which the 'guichet' is checked for opening"), 'example_value': 'DIA'}, + 'now': {'description': _("Datetime (or string formatted to: '%s') against which the 'guichet' is checked for opening" % '%Y-%m-%d %H:%M:%S'), 'example_value': 'DIA'}, }, post={'description': _("Create an openADS 'dossier'"), 'request_body': { diff --git a/setup.py b/setup.py index c0b54e1..5555394 100644 --- a/setup.py +++ b/setup.py @@ -2,9 +2,13 @@ import os import subprocess +import sys -from setuptools import setup, find_packages +from setuptools.command.install_lib import install_lib as _install_lib +from distutils.command.build import build as _build from distutils.command.sdist import sdist +from distutils.cmd import Command +from setuptools import setup, find_packages class eo_sdist(sdist): def run(self): @@ -33,6 +37,41 @@ def get_version(): return version return '0' + +class compile_translations(Command): + description = 'compile message catalogs to MO files via django compilemessages' + user_options = [] + + def initialize_options(self): + pass + + def finalize_options(self): + pass + + def run(self): + try: + from django.core.management import call_command + for path, dirs, files in os.walk('atreal_openads'): + if 'locale' not in dirs: + continue + curdir = os.getcwd() + os.chdir(os.path.realpath(path)) + call_command('compilemessages') + os.chdir(curdir) + except ImportError: + sys.stderr.write('!!! Please install Django >= 1.4 to build translations\n') + + +class build(_build): + sub_commands = [('compile_translations', None)] + _build.sub_commands + + +class install_lib(_install_lib): + def run(self): + self.run_command('compile_translations') + _install_lib.run(self) + + setup( name='passerelle-atreal-openads', version=get_version(), @@ -51,6 +90,9 @@ setup( include_package_data=True, packages=find_packages(), cmdclass={ + 'build': build, + 'compile_translations': compile_translations, + 'install_lib': install_lib, 'sdist': eo_sdist }, scripts=['manage.py'],