From 58d63ffa6d69fc861e97f6f333e5438f864f87b3 Mon Sep 17 00:00:00 2001 From: Maxime Bombar Date: Fri, 26 Oct 2018 01:30:21 +0200 Subject: [PATCH] [Printer] Translation --- printer/locale/fr/LC_MESSAGES/django.mo | Bin 0 -> 2816 bytes printer/locale/fr/LC_MESSAGES/django.po | 227 ++++++++++++++++++++++++ printer/settings.py | 40 ++--- 3 files changed, 247 insertions(+), 20 deletions(-) create mode 100644 printer/locale/fr/LC_MESSAGES/django.mo create mode 100644 printer/locale/fr/LC_MESSAGES/django.po diff --git a/printer/locale/fr/LC_MESSAGES/django.mo b/printer/locale/fr/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..907ebf2f28f2edcedf399ceda2fbfefd08b310f5 GIT binary patch literal 2816 zcmZvdO>7%Q6vu~BD7fXTEnnelpbbe#*R=zJ%57S&=6`~_z#TgoyA#ZTw}Jb?d%=-x zJ_+u|yqIwsq;(Y#KXwWaTE7h50iFeK2Niff*asf~-v&wVGjIv~62y<)$hZTW@5Ou< zNO~jS9`GP|7gz*o-xDDDGY^veCWs$Xc+mbDr1fhct-A!$x(~AVpMd1wy#K(a#J|7?!GA!!V*B7E z`8k3I`E>w%8k_{_eFLO@PlNQGF$kB~MUeF01j)a5K=R{bkk(xWDb80ieh-p=*T4q& z3rOoko12A zN$)yH{@nm+|D8~7f_p&HKMT_L7?A9}mCZlO=3jth?>mtE{Q;zS{RAT1sf`Jc+7sxH zpp&0Zq0>4K{c-e-b^wEM^vO&>HmSkA)L$AuiB7(3G;GD5$tGjq!EAg8qHIi4dMu*zq8F!S4c;BelskjS45<504p)3bWXO-=1tDMp? zn-eNbjAV0UlODV-A{xcY_F!~Qn@BhyF+7wV$E|A1Ht*?B+JV%lZg0DI-pC6!5HMJ) z)XLml=u18}I!>IhV_aDtYsXhbsM>kH7)oK~A)Z*tb&THOt|u`ebz9=2<01_8dD%Xb z3MOox)#aLFbttoX60Jx>Yx<%qEiZAl02`@~>B#AR>h|U&^_DHlxJ|KHl%}JNNF%Xm zRDb|!n1hKx_b-q+ND;mC$$dK*h!uQVDuNAOlX1ctNgR{GrW5@z8@R->W)cL_TGr~p zWMYhrU3vy^@uH+ijE>U?U&To!5^E|-qMKD9K9i}j)_KiWv~xPj4uJ$)CzHP4nhxm< zol~kbG#}C$gpO=d=my7pS|?l>nVwp97h1M-mGx4#HR|yBVMuKO+C*G#ZsX- zS(qvmpy)N^sv_f=-s!U6@M;U*tj}LsDAg*HuP)TfxvH?vYZ(#SP&jQ$d~T^)<#iuP zc&uFWE7ceM+1W<9**p%_xSJqnyp|MEiC6vl{1Ul*tXh3BRC#T>TRL!+5_#+Uiupng z_sromy%y56#2r%da6c3(KFWihFjl(hrPiExWJ{0S>PX|2<3LmLmH3er<#LO-ej@bf zo*~=gemb?&Q%Ct=I6WToc*)=IAo49IG%q{$*O}IFkCv~ zF=-v{y5%Cl0V}(HHIEBu0>#^7iBqAn@H~mr;_*L~qnW5xf&1(yL9+456p791(LgF| zR*rcO8w@!-B*}b*L^#R-l!EP5WQ}|oln^DUhExz`3hCy6OLz!B_#27LglSEoQi8=p zr-EGqlwO<9=b7I%qJxyBBC}Cj)~{HKQx<>xH_*n&2mB$>cWqUds@M>3)R@f(N=`u? z9UrbTvocxBP7S`U2#Y@uNVZOJNZ}?Srdf!#>tw<-!rm%Mg&x=(, 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')) )