]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix the french used in the email documentation (GH-106279)
authorJean-Baptiste Poupon <faltad@gmail.com>
Sun, 16 Jul 2023 17:14:08 +0000 (20:14 +0300)
committerGitHub <noreply@github.com>
Sun, 16 Jul 2023 17:14:08 +0000 (19:14 +0200)
* Fix the french used in the email documentation

The french used in one of the example was either machine translated a while ago or written by someone who does not speak french. Fixed it by using grammatically correct french.

Doc/includes/email-alternative.py
Doc/library/email.examples.rst

index df7ca6f3faa332cbf28f1bcd5e82870477300bae..26b302b495c7acccf83fa00fbb104c77893e755f 100644 (file)
@@ -8,14 +8,14 @@ from email.utils import make_msgid
 
 # Create the base text message.
 msg = EmailMessage()
-msg['Subject'] = "Ayons asperges pour le déjeuner"
+msg['Subject'] = "Pourquoi pas des asperges pour ce midi ?"
 msg['From'] = Address("Pepé Le Pew", "pepe", "example.com")
 msg['To'] = (Address("Penelope Pussycat", "penelope", "example.com"),
              Address("Fabrette Pussycat", "fabrette", "example.com"))
 msg.set_content("""\
 Salut!
 
-Cela ressemble à un excellent recipie[1] déjeuner.
+Cette recette [1] sera sûrement un très bon repas.
 
 [1] http://www.yummly.com/recipe/Roasted-Asparagus-Epicurious-203718
 
@@ -31,10 +31,10 @@ msg.add_alternative("""\
   <head></head>
   <body>
     <p>Salut!</p>
-    <p>Cela ressemble à un excellent
+    <p>Cette
         <a href="http://www.yummly.com/recipe/Roasted-Asparagus-Epicurious-203718">
-            recipie
-        </a> déjeuner.
+            recette
+        </a> sera sûrement un très bon repas.
     </p>
     <img src="cid:{asparagus_cid}" />
   </body>
index fc964622809d0e89ae93d5545bf2bab51ac363cc..492a8354d8bf85220222fdaeb06cbb236a3d883c 100644 (file)
@@ -55,11 +55,11 @@ Up to the prompt, the output from the above is:
 
     To: Penelope Pussycat <penelope@example.com>, Fabrette Pussycat <fabrette@example.com>
     From: Pepé Le Pew <pepe@example.com>
-    Subject: Ayons asperges pour le déjeuner
+    Subject: Pourquoi pas des asperges pour ce midi ?
 
     Salut!
 
-    Cela ressemble à un excellent recipie[1] déjeuner.
+    Cette recette [1] sera sûrement un très bon repas.
 
 
 .. rubric:: Footnotes