diff --git a/printer/locale/fr/LC_MESSAGES/django.mo b/printer/locale/fr/LC_MESSAGES/django.mo new file mode 100644 index 00000000..907ebf2f Binary files /dev/null and b/printer/locale/fr/LC_MESSAGES/django.mo differ diff --git a/printer/locale/fr/LC_MESSAGES/django.po b/printer/locale/fr/LC_MESSAGES/django.po new file mode 100644 index 00000000..bd5c2040 --- /dev/null +++ b/printer/locale/fr/LC_MESSAGES/django.po @@ -0,0 +1,227 @@ +# 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: 2018-10-26 01:01+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" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: printer/forms.py:34 +msgid "Print As" +msgstr "Imprimer en tant que" + +#: printer/models.py:116 +msgid "Pending" +msgstr "En attente" + +#: printer/models.py:117 +msgid "Printable" +msgstr "Imprimable" + +#: printer/models.py:118 +msgid "Running" +msgstr "En cours..." + +#: printer/models.py:119 +msgid "Cancelled" +msgstr "Annulée" + +#: printer/models.py:120 +msgid "Finished" +msgstr "Terminée" + +#: printer/models.py:132 +msgid "File" +msgstr "Fichier" + +#: printer/models.py:137 +msgid "File Name" +msgstr "Nom du fichier" + +#: printer/models.py:144 +msgid "Status" +msgstr "Status" + +#: printer/models.py:153 +#, fuzzy +#| msgid "Print As" +msgid "Print as" +msgstr "Imprimer en tant que" + +#: printer/models.py:158 +#, fuzzy +#| msgid "price" +msgid "Price" +msgstr "Prix" + +#: printer/models.py:166 +msgid "Format" +msgstr "Format" + +#: printer/models.py:172 printer/settings.py:25 +msgid "Color" +msgstr "Couleur" + +#: printer/models.py:178 +msgid "Disposition" +msgstr "Disposition" + +#: printer/models.py:182 +msgid "Count" +msgstr "Nombre" + +#: printer/models.py:188 +msgid "Stapling" +msgstr "Agrafage" + +#: printer/models.py:194 +msgid "Perforation" +msgstr "Perforation" + +#: printer/settings.py:20 +msgid "A4" +msgstr "A4" + +#: printer/settings.py:21 +msgid "A3" +msgstr "A3" + +#: printer/settings.py:24 +msgid "Greyscale" +msgstr "Noir et blanc" + +#: printer/settings.py:28 +msgid "Two sided" +msgstr "Recto-verso" + +#: printer/settings.py:29 +msgid "One sided" +msgstr "Recto" + +#: printer/settings.py:30 +msgid "Booklet" +msgstr "Livret" + +#: printer/settings.py:33 printer/settings.py:40 +msgid "None" +msgstr "Aucun" + +#: printer/settings.py:34 +msgid "One top left" +msgstr "En haut à gauche" + +#: printer/settings.py:35 +msgid "One top right" +msgstr "En haut à droite" + +#: printer/settings.py:36 +msgid "Two left sided" +msgstr "Deux à gauche" + +#: printer/settings.py:37 +msgid "Two right sided" +msgstr "Deux à droite" + +#: printer/settings.py:41 +msgid "Two left sided holes" +msgstr "Deux trous à gauche" + +#: printer/settings.py:42 +msgid "Two right sided holes" +msgstr "Deux trous à droite" + +#: printer/settings.py:43 +msgid "Two top holes" +msgstr "Deux trous en haut" + +#: printer/settings.py:44 +msgid "Two bottom holes" +msgstr "Deux trous en bas" + +#: printer/settings.py:45 +msgid "Four left sided holes" +msgstr "Quatre trous à gauche" + +#: printer/settings.py:46 +msgid "Four right sided holes" +msgstr "Quatre trous à droite" + +#: printer/templates/printer/echec.html:11 +msgid "Failure" +msgstr "Echec" + +#: printer/templates/printer/newjob.html:13 +msgid "Printing Menu" +msgstr "Menu d'impression" + +#: printer/templates/printer/newjob.html:23 +#: printer/templates/printer/newjob.html:44 +msgid "Delete file" +msgstr "Supprimer le fichier" + +#: printer/templates/printer/newjob.html:34 +msgid "Add a file" +msgstr "Fichier supplémentaire" + +#: printer/templates/printer/print.html:13 +msgid "Confirm printing" +msgstr "Confirmer le lancement de l'impression" + +#: printer/templates/printer/print.html:20 +#, fuzzy +#| msgid "File Name" +msgid "Filename : " +msgstr "Nom du fichier" + +#: printer/templates/printer/print.html:21 +msgid "Price for one copy : " +msgstr "Prix d'une copie : " + +#: printer/templates/printer/print.html:22 +msgid "Number of pages : " +msgstr "Nombre de pages : " + +#: printer/templates/printer/success.html:11 +msgid "Success" +msgstr "Succès" + +#: printer/validators.py:48 +#, python-format +msgid "" +"MIME type '%(type)s' is not valid. Please, use one of these types: " +"%(allowed_types)s." +msgstr "" +"Le type '%(type)s' n'est pas autorisé. Merci d'utiliser un type" +"%(allowed_types)s." + +#: printer/validators.py:51 +#, python-format +msgid "" +"The current file size is %(size)s. The maximum file size is %(max_size)s." +msgstr "" +"Le fichier a une taille de %(size)s. La taille maximum autorisée est " +"%(max_size)s." + +#: printer/views.py:89 +msgid "Next" +msgstr "Suivant" + +#: printer/views.py:121 +msgid "Print" +msgstr "Imprimer" + +#: printer/views.py:150 +msgid "You are not allowed to print" +msgstr "Vous n'êtes pas autorisé à imprimer" diff --git a/printer/settings.py b/printer/settings.py index 562a4211..b47ef6cb 100644 --- a/printer/settings.py +++ b/printer/settings.py @@ -1,7 +1,7 @@ """printer.settings Define variables used in printer app """ - +from django.utils.translation import ugettext_lazy as _ from preferences.models import OptionalPrinter settings = OptionalPrinter.objects.get() @@ -17,33 +17,33 @@ stapling_enabled = settings.stapling_enabled perforation_enabled = settings.perforation_enabled FORMAT_AVAILABLE = ( - ('A4', 'A4'), - ('A3', 'A3'), + ('A4', _('A4')), + ('A3', _('A3')), ) COLOR_CHOICES = ( - ('Greyscale', 'Greyscale'), - ('Color', 'Color') + ('Greyscale', _('Greyscale')), + ('Color', _('Color')) ) DISPOSITIONS_AVAILABLE = ( - ('TwoSided', 'Two sided'), - ('OneSided', 'One sided'), - ('Booklet', 'Booklet') + ('TwoSided', _('Two sided')), + ('OneSided', _('One sided')), + ('Booklet', _('Booklet')) ) STAPLING_OPTIONS = ( - ('None', 'None'), - ('TopLeft', 'One top left'), - ('TopRight', 'One top right'), - ('LeftSided', 'Two left sided'), - ('RightSided', 'Two right sided') + ('None', _('None')), + ('TopLeft', _('One top left')), + ('TopRight', _('One top right')), + ('LeftSided', _('Two left sided')), + ('RightSided', _('Two right sided')) ) PERFORATION_OPTIONS = ( - ('None', 'None'), - ('TwoLeftSidedHoles', 'Two left sided holes'), - ('TwoRightSidedHoles', 'Two right sided holes'), - ('TwoTopHoles', 'Two top holes'), - ('TwoBottomHoles', 'Two bottom holes'), - ('FourLeftSidedHoles', 'Four left sided holes'), - ('FourRightSidedHoles', 'Four right sided holes') + ('None', _('None')), + ('TwoLeftSidedHoles', _('Two left sided holes')), + ('TwoRightSidedHoles', _('Two right sided holes')), + ('TwoTopHoles', _('Two top holes')), + ('TwoBottomHoles', _('Two bottom holes')), + ('FourLeftSidedHoles', _('Four left sided holes')), + ('FourRightSidedHoles', _('Four right sided holes')) )