From e1ec0d5d7c18f66125e2d06a7490469bbfde2861 Mon Sep 17 00:00:00 2001 From: Francois Setton Date: Thu, 21 Mar 2019 21:46:03 +0100 Subject: [PATCH 01/15] =?UTF-8?q?Traduction=20des=20premi=C3=A8res=20ligne?= =?UTF-8?q?s=20de=20asyncio-policy.po?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/asyncio-policy.po | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/library/asyncio-policy.po b/library/asyncio-policy.po index 70ebca61c..6b35580ff 100644 --- a/library/asyncio-policy.po +++ b/library/asyncio-policy.po @@ -6,17 +6,18 @@ msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-01-03 16:57+0100\n" -"PO-Revision-Date: 2018-11-29 18:26+0100\n" -"Last-Translator: FULL NAME \n" +"PO-Revision-Date: 2019-03-21 21:42+0100\n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Last-Translator: \n" +"X-Generator: Poedit 2.2.1\n" #: ../Doc/library/asyncio-policy.rst:8 msgid "Policies" -msgstr "" +msgstr "Stratégies" #: ../Doc/library/asyncio-policy.rst:10 msgid "" @@ -24,12 +25,19 @@ msgid "" "management of the event loop. Each event loop has a default policy, which " "can be changed and customized using the policy API." msgstr "" +"Une stratégie de boucle d'événement est un objet global, pour chaque " +"processus, qui contrôle la gestion de la boucle d'événement. Chaque boucle " +"d'événement a une stratégie par défaut, qui peut être modifiée et " +"personnalisée à l'aide de l'API de la stratégie." #: ../Doc/library/asyncio-policy.rst:14 msgid "" "A policy defines the notion of *context* and manages a separate event loop " "per context. The default policy defines *context* to be the current thread." msgstr "" +"Une stratégie définit la notion de * contexte * et gère une boucle " +"d'événement distincte par contexte. La stratégie par défaut définit le * " +"contexte * comme étant le thread actuel." #: ../Doc/library/asyncio-policy.rst:18 msgid "" @@ -37,22 +45,29 @@ msgid "" "`get_event_loop`, :func:`set_event_loop`, and :func:`new_event_loop` " "functions can be customized." msgstr "" +"En utilisant une stratégie de boucle d'événement personnalisée, le " +"comportement des fonctions: func: `get_event_loop`,: func:` set_event_loop` " +"et: func: `new_event_loop` peut être personnalisé." #: ../Doc/library/asyncio-policy.rst:22 msgid "" "Policy objects should implement the APIs defined in the :class:" "`AbstractEventLoopPolicy` abstract base class." msgstr "" +"Les objets de stratégie doivent implémenter les API définies dans la classe " +"de base abstraite: class: `AbstractEventLoopPolicy`." #: ../Doc/library/asyncio-policy.rst:27 msgid "Getting and Setting the Policy" -msgstr "" +msgstr "Obtenir et définir la stratégie" #: ../Doc/library/asyncio-policy.rst:29 msgid "" "The following functions can be used to get and set the policy for the " "current process:" msgstr "" +"Les fonctions suivantes peuvent être utilisées pour obtenir et définir la " +"stratégie du processus en cours:" #: ../Doc/library/asyncio-policy.rst:34 msgid "Return the current process-wide policy." From 31b5c54f69e21ba5f463efe1f0dbf45772d19640 Mon Sep 17 00:00:00 2001 From: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> Date: Sat, 23 Mar 2019 23:54:04 +0100 Subject: [PATCH 02/15] Update library/asyncio-policy.po OK Co-Authored-By: fsetton <48808345+fsetton@users.noreply.github.com> --- library/asyncio-policy.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/asyncio-policy.po b/library/asyncio-policy.po index 6b35580ff..bf4413cdb 100644 --- a/library/asyncio-policy.po +++ b/library/asyncio-policy.po @@ -25,7 +25,7 @@ msgid "" "management of the event loop. Each event loop has a default policy, which " "can be changed and customized using the policy API." msgstr "" -"Une stratégie de boucle d'événement est un objet global, pour chaque " +"Une stratégie de boucle d'événements est un objet global, pour chaque " "processus, qui contrôle la gestion de la boucle d'événement. Chaque boucle " "d'événement a une stratégie par défaut, qui peut être modifiée et " "personnalisée à l'aide de l'API de la stratégie." From c181e5f5da37d4629ff43ab1bb905bf3fea5e035 Mon Sep 17 00:00:00 2001 From: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> Date: Sat, 23 Mar 2019 23:55:15 +0100 Subject: [PATCH 03/15] Update library/asyncio-policy.po MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Je ne connaissais pas la traduction exacte. Je pensais que beaucoup de mots anglais étaient "admis" dans le langage de l'informatique. Co-Authored-By: fsetton <48808345+fsetton@users.noreply.github.com> --- library/asyncio-policy.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/asyncio-policy.po b/library/asyncio-policy.po index bf4413cdb..f74a91360 100644 --- a/library/asyncio-policy.po +++ b/library/asyncio-policy.po @@ -37,7 +37,7 @@ msgid "" msgstr "" "Une stratégie définit la notion de * contexte * et gère une boucle " "d'événement distincte par contexte. La stratégie par défaut définit le * " -"contexte * comme étant le thread actuel." +"contexte * comme étant le fil d'exécution actuel." #: ../Doc/library/asyncio-policy.rst:18 msgid "" From 25e75ea8a040446cd3d34f074d27e780eb5b24b5 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Sat, 23 Mar 2019 23:55:35 +0100 Subject: [PATCH 04/15] Update library/asyncio-policy.po d'accord Co-Authored-By: fsetton <48808345+fsetton@users.noreply.github.com> --- library/asyncio-policy.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/asyncio-policy.po b/library/asyncio-policy.po index f74a91360..fbab7876b 100644 --- a/library/asyncio-policy.po +++ b/library/asyncio-policy.po @@ -46,7 +46,7 @@ msgid "" "functions can be customized." msgstr "" "En utilisant une stratégie de boucle d'événement personnalisée, le " -"comportement des fonctions: func: `get_event_loop`,: func:` set_event_loop` " +"comportement des fonctions :func:`get_event_loop`, :func:`set_event_loo p` " "et: func: `new_event_loop` peut être personnalisé." #: ../Doc/library/asyncio-policy.rst:22 From cdda3a6dacbc3c2385c8407e184154d98ef7e72a Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Sat, 23 Mar 2019 23:55:48 +0100 Subject: [PATCH 05/15] Update library/asyncio-policy.po idem Co-Authored-By: fsetton <48808345+fsetton@users.noreply.github.com> --- library/asyncio-policy.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/asyncio-policy.po b/library/asyncio-policy.po index fbab7876b..0b80c7091 100644 --- a/library/asyncio-policy.po +++ b/library/asyncio-policy.po @@ -47,7 +47,7 @@ msgid "" msgstr "" "En utilisant une stratégie de boucle d'événement personnalisée, le " "comportement des fonctions :func:`get_event_loop`, :func:`set_event_loo p` " -"et: func: `new_event_loop` peut être personnalisé." +"et :func:`new_event_loop` peut être personnalisé." #: ../Doc/library/asyncio-policy.rst:22 msgid "" From f678c117cef747ceb4de5d26f9697646a3e39941 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Sat, 23 Mar 2019 23:56:00 +0100 Subject: [PATCH 06/15] Update library/asyncio-policy.po idem Co-Authored-By: fsetton <48808345+fsetton@users.noreply.github.com> --- library/asyncio-policy.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/asyncio-policy.po b/library/asyncio-policy.po index 0b80c7091..c86953e20 100644 --- a/library/asyncio-policy.po +++ b/library/asyncio-policy.po @@ -55,7 +55,7 @@ msgid "" "`AbstractEventLoopPolicy` abstract base class." msgstr "" "Les objets de stratégie doivent implémenter les API définies dans la classe " -"de base abstraite: class: `AbstractEventLoopPolicy`." +"de base abstraite :class:`AbstractEventLoopPolicy`." #: ../Doc/library/asyncio-policy.rst:27 msgid "Getting and Setting the Policy" From fb4353161eff642d1f68373780783eeb8097cc25 Mon Sep 17 00:00:00 2001 From: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> Date: Sat, 23 Mar 2019 23:56:25 +0100 Subject: [PATCH 07/15] Update library/asyncio-policy.po Ah bon ? Co-Authored-By: fsetton <48808345+fsetton@users.noreply.github.com> --- library/asyncio-policy.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/asyncio-policy.po b/library/asyncio-policy.po index c86953e20..6011dd8d1 100644 --- a/library/asyncio-policy.po +++ b/library/asyncio-policy.po @@ -67,7 +67,7 @@ msgid "" "current process:" msgstr "" "Les fonctions suivantes peuvent être utilisées pour obtenir et définir la " -"stratégie du processus en cours:" +"stratégie du processus en cours :" #: ../Doc/library/asyncio-policy.rst:34 msgid "Return the current process-wide policy." From 8ccaebe540652759a3430b89cee61bb811588a37 Mon Sep 17 00:00:00 2001 From: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> Date: Sat, 23 Mar 2019 23:56:50 +0100 Subject: [PATCH 08/15] Update library/asyncio-policy.po OK Co-Authored-By: fsetton <48808345+fsetton@users.noreply.github.com> --- library/asyncio-policy.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/asyncio-policy.po b/library/asyncio-policy.po index 6011dd8d1..02dca54a0 100644 --- a/library/asyncio-policy.po +++ b/library/asyncio-policy.po @@ -35,7 +35,7 @@ msgid "" "A policy defines the notion of *context* and manages a separate event loop " "per context. The default policy defines *context* to be the current thread." msgstr "" -"Une stratégie définit la notion de * contexte * et gère une boucle " +"Une stratégie définit la notion de *contexte* et gère une boucle " "d'événement distincte par contexte. La stratégie par défaut définit le * " "contexte * comme étant le fil d'exécution actuel." From eb1419ed22ba4689024000a5ddaca23ce7486b4c Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Mon, 25 Mar 2019 15:25:56 +0100 Subject: [PATCH 09/15] Update library/asyncio-policy.po OK Co-Authored-By: fsetton <48808345+fsetton@users.noreply.github.com> --- library/asyncio-policy.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/asyncio-policy.po b/library/asyncio-policy.po index 02dca54a0..7334abf74 100644 --- a/library/asyncio-policy.po +++ b/library/asyncio-policy.po @@ -36,7 +36,7 @@ msgid "" "per context. The default policy defines *context* to be the current thread." msgstr "" "Une stratégie définit la notion de *contexte* et gère une boucle " -"d'événement distincte par contexte. La stratégie par défaut définit le * " +"d'événement distincte par contexte. La stratégie par défaut définit le *" "contexte * comme étant le fil d'exécution actuel." #: ../Doc/library/asyncio-policy.rst:18 From cfd07b3e84f707f6f5cb37473a8b24efd7074b96 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Mon, 25 Mar 2019 15:26:16 +0100 Subject: [PATCH 10/15] Update library/asyncio-policy.po oops Co-Authored-By: fsetton <48808345+fsetton@users.noreply.github.com> --- library/asyncio-policy.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/asyncio-policy.po b/library/asyncio-policy.po index 7334abf74..5cb287dc2 100644 --- a/library/asyncio-policy.po +++ b/library/asyncio-policy.po @@ -46,7 +46,7 @@ msgid "" "functions can be customized." msgstr "" "En utilisant une stratégie de boucle d'événement personnalisée, le " -"comportement des fonctions :func:`get_event_loop`, :func:`set_event_loo p` " +"comportement des fonctions :func:`get_event_loop`, :func:`set_event_loop` " "et :func:`new_event_loop` peut être personnalisé." #: ../Doc/library/asyncio-policy.rst:22 From f8ed4d9397dca53eafe860f5ae3c177c76097068 Mon Sep 17 00:00:00 2001 From: "Jules Lasne (jlasne)" Date: Mon, 25 Mar 2019 15:26:27 +0100 Subject: [PATCH 11/15] Update library/asyncio-policy.po OK Co-Authored-By: fsetton <48808345+fsetton@users.noreply.github.com> --- library/asyncio-policy.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/asyncio-policy.po b/library/asyncio-policy.po index 5cb287dc2..972111540 100644 --- a/library/asyncio-policy.po +++ b/library/asyncio-policy.po @@ -37,7 +37,7 @@ msgid "" msgstr "" "Une stratégie définit la notion de *contexte* et gère une boucle " "d'événement distincte par contexte. La stratégie par défaut définit le *" -"contexte * comme étant le fil d'exécution actuel." +"contexte* comme étant le fil d'exécution actuel." #: ../Doc/library/asyncio-policy.rst:18 msgid "" From 3d2ee08175da5a52eb2ba53d5e9b27f7b380d7ea Mon Sep 17 00:00:00 2001 From: Francois Setton Date: Thu, 11 Apr 2019 20:49:32 +0200 Subject: [PATCH 12/15] powrap --- library/asyncio-policy.po | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/asyncio-policy.po b/library/asyncio-policy.po index 972111540..2cce91ad2 100644 --- a/library/asyncio-policy.po +++ b/library/asyncio-policy.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-01-03 16:57+0100\n" -"PO-Revision-Date: 2019-03-21 21:42+0100\n" +"PO-Revision-Date: 2019-04-11 20:47+0200\n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" @@ -35,9 +35,9 @@ msgid "" "A policy defines the notion of *context* and manages a separate event loop " "per context. The default policy defines *context* to be the current thread." msgstr "" -"Une stratégie définit la notion de *contexte* et gère une boucle " -"d'événement distincte par contexte. La stratégie par défaut définit le *" -"contexte* comme étant le fil d'exécution actuel." +"Une stratégie définit la notion de *contexte* et gère une boucle d'événement " +"distincte par contexte. La stratégie par défaut définit le *contexte* comme " +"étant le fil d'exécution actuel." #: ../Doc/library/asyncio-policy.rst:18 msgid "" From c11fef7dac6320f6f76ace45efc2f66bfbadafa8 Mon Sep 17 00:00:00 2001 From: Francois Setton Date: Thu, 11 Apr 2019 22:32:31 +0200 Subject: [PATCH 13/15] fin du document asyncio --- library/asyncio-policy.po | 102 ++++++++++++++++++++++++++++++-------- 1 file changed, 81 insertions(+), 21 deletions(-) diff --git a/library/asyncio-policy.po b/library/asyncio-policy.po index 2cce91ad2..6cdc91dbd 100644 --- a/library/asyncio-policy.po +++ b/library/asyncio-policy.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-01-03 16:57+0100\n" -"PO-Revision-Date: 2019-04-11 20:47+0200\n" +"PO-Revision-Date: 2019-04-11 22:30+0200\n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" @@ -71,27 +71,31 @@ msgstr "" #: ../Doc/library/asyncio-policy.rst:34 msgid "Return the current process-wide policy." -msgstr "" +msgstr "Renvoie la stratégie actuelle à l'échelle du processus." #: ../Doc/library/asyncio-policy.rst:38 msgid "Set the current process-wide policy to *policy*." msgstr "" +"Définissez la stratégie actuelle sur l'ensemble du processus sur *policy*." #: ../Doc/library/asyncio-policy.rst:40 msgid "If *policy* is set to ``None``, the default policy is restored." msgstr "" +"Si *policy* est définie sur `` None``, la stratégie par défaut est restaurée." #: ../Doc/library/asyncio-policy.rst:44 msgid "Policy Objects" -msgstr "" +msgstr "Sujets de stratégie" #: ../Doc/library/asyncio-policy.rst:46 msgid "The abstract event loop policy base class is defined as follows:" msgstr "" +"La classe de base de la stratégie de boucle d'événements abstrait est " +"définie comme suit:" #: ../Doc/library/asyncio-policy.rst:50 msgid "An abstract base class for asyncio policies." -msgstr "" +msgstr "Une classe de base abstraite pour les règles asyncio-logiques." #: ../Doc/library/asyncio-policy.rst:54 msgid "Get the event loop for the current context." @@ -102,58 +106,68 @@ msgid "" "Return an event loop object implementing the :class:`AbstractEventLoop` " "interface." msgstr "" +"Renvoie un objet de boucle d'événements en implémentant l'interface :class:" +"`AbstractEventLoop`." #: ../Doc/library/asyncio-policy.rst:59 ../Doc/library/asyncio-policy.rst:71 msgid "This method should never return ``None``." -msgstr "" +msgstr "Cette méthode ne devrait jamais renvoyer `` None``." #: ../Doc/library/asyncio-policy.rst:65 msgid "Set the event loop for the current context to *loop*." -msgstr "" +msgstr "Définis la boucle d'événements du contexte actuel sur * loop *." #: ../Doc/library/asyncio-policy.rst:69 msgid "Create and return a new event loop object." -msgstr "" +msgstr "Crée et retourne un nouvel objet de boucle d'événements." #: ../Doc/library/asyncio-policy.rst:75 msgid "Get a child process watcher object." -msgstr "" +msgstr "Obtenez un objet observateur du processus enfant." #: ../Doc/library/asyncio-policy.rst:77 msgid "" "Return a watcher object implementing the :class:`AbstractChildWatcher` " "interface." msgstr "" +"Retourne un objet observateur implémentant l'interface :class:" +"`AbstractChildWatcher`." #: ../Doc/library/asyncio-policy.rst:80 ../Doc/library/asyncio-policy.rst:86 msgid "This function is Unix specific." -msgstr "" +msgstr "Cette fonction est spécifique à Unix." #: ../Doc/library/asyncio-policy.rst:84 msgid "Set the current child process watcher to *watcher*." -msgstr "" +msgstr "Définis l'observateur du processus enfant actuel sur *watcher*." #: ../Doc/library/asyncio-policy.rst:89 msgid "asyncio ships with the following built-in policies:" -msgstr "" +msgstr "asyncio est livré avec les stratégies intégrées suivantes:" #: ../Doc/library/asyncio-policy.rst:94 msgid "" "The default asyncio policy. Uses :class:`SelectorEventLoop` on both Unix " "and Windows platforms." msgstr "" +"La stratégie asyncio par défaut. Utilise :class:`SelectorEventLoop` sur les " +"plates-formes Unix et Windows." #: ../Doc/library/asyncio-policy.rst:97 msgid "" "There is no need to install the default policy manually. asyncio is " "configured to use the default policy automatically." msgstr "" +"Il n'est pas nécessaire d'installer la stratégie par défaut manuellement. " +"asyncio est configuré pour utiliser automatiquement la stratégie par défaut." #: ../Doc/library/asyncio-policy.rst:103 msgid "" "An alternative event loop policy that uses the :class:`ProactorEventLoop` " "event loop implementation." msgstr "" +"Stratégie de boucle d'événements alternative utilisant l'implémentation de " +"la boucle d'événements :class:`ProactorEventLoop`." #: ../Doc/library/asyncio-policy.rst:106 msgid ":ref:`Availability `: Windows." @@ -161,7 +175,7 @@ msgstr ":ref:`Disponibilité ` : Windows." #: ../Doc/library/asyncio-policy.rst:110 msgid "Process Watchers" -msgstr "" +msgstr "Observateurs de processus" #: ../Doc/library/asyncio-policy.rst:112 msgid "" @@ -169,12 +183,18 @@ msgid "" "processes on Unix. Specifically, the event loop needs to know when a child " "process has exited." msgstr "" +"Un observateur de processus permet de personnaliser la manière dont une " +"boucle d'événements surveille les processus enfants sous Unix. Plus " +"précisément, la boucle d'événements doit savoir quand un processus enfant " +"s'est terminé." #: ../Doc/library/asyncio-policy.rst:116 msgid "" "In asyncio, child processes are created with :func:`create_subprocess_exec` " "and :meth:`loop.subprocess_exec` functions." msgstr "" +"En asyncio, les processus enfants sont créés avec les fonctions :func:" +"`create_subprocess_exec` et :meth:` loop.subprocess_exec`." #: ../Doc/library/asyncio-policy.rst:120 msgid "" @@ -183,22 +203,31 @@ msgid "" "class:`SafeChildWatcher` (configured to be used by default) and :class:" "`FastChildWatcher`." msgstr "" +"asyncio définit la classe de base abstraite :class:`AbstractChildWatcher`, " +"que les observateurs enfants doivent implémenter et possède deux " +"implémentations différentes: :class:` SafeChildWatcher` (configuré pour être " +"utilisé par défaut) et :class: `FastChildWatcher`." #: ../Doc/library/asyncio-policy.rst:125 msgid "" "See also the :ref:`Subprocess and Threads ` " "section." msgstr "" +"Voir aussi la section :ref:`Subprocess and Threads `." #: ../Doc/library/asyncio-policy.rst:128 msgid "" "The following two functions can be used to customize the child process " "watcher implementation used by the asyncio event loop:" msgstr "" +"Les deux fonctions suivantes peuvent être utilisées pour personnaliser " +"l'implémentation de l'observateur de processus enfant utilisé par la boucle " +"d'événements asyncio:" #: ../Doc/library/asyncio-policy.rst:133 msgid "Return the current child watcher for the current policy." -msgstr "" +msgstr "Renvoie l'observateur enfant actuel pour la stratégie actuelle." #: ../Doc/library/asyncio-policy.rst:137 msgid "" @@ -206,6 +235,9 @@ msgid "" "*watcher* must implement methods defined in the :class:" "`AbstractChildWatcher` base class." msgstr "" +"Définis l'observateur enfant actuel sur *watcher* pour la stratégie " +"actuelle. *watcher* doit implémenter les méthodes définies dans la classe de " +"base :class:`AbstractChildWatcher`." #: ../Doc/library/asyncio-policy.rst:142 msgid "" @@ -213,10 +245,14 @@ msgid "" "watchers. For such event loops, using :func:`set_child_watcher` might be " "prohibited or have no effect." msgstr "" +"Les implémentations de boucles d'événement tierces peuvent ne pas prendre en " +"charge les observateurs enfants personnalisés. Pour ces boucles " +"d'événements, utiliser: func: `set_child_watcher` pourrait être " +"inaccessible ou n'avoir aucun effet." #: ../Doc/library/asyncio-policy.rst:150 msgid "Register a new child handler." -msgstr "" +msgstr "Enregistrez un nouveau gestionnaire." #: ../Doc/library/asyncio-policy.rst:152 msgid "" @@ -224,60 +260,75 @@ msgid "" "with PID equal to *pid* terminates. Specifying another callback for the " "same process replaces the previous handler." msgstr "" +"Organisez l'appel de ``callback(pid, returncode, * args)`` lorsqu'un " +"processus dont le PID est égal à *pid* se termine. La spécification d'un " +"autre rappel pour le même processus remplace le gestionnaire précédent." #: ../Doc/library/asyncio-policy.rst:157 msgid "The *callback* callable must be thread-safe." -msgstr "" +msgstr "Le * callback * appelable doit être thread-sûr." #: ../Doc/library/asyncio-policy.rst:161 msgid "Removes the handler for process with PID equal to *pid*." -msgstr "" +msgstr "Supprime le gestionnaire de processus avec un PID égal à *pid*." #: ../Doc/library/asyncio-policy.rst:163 msgid "" "The function returns ``True`` if the handler was successfully removed, " "``False`` if there was nothing to remove." msgstr "" +"La fonction retourne ``True`` si le gestionnaire a été supprimé avec succès, " +"``False`` s'il n'y a rien à supprimer." #: ../Doc/library/asyncio-policy.rst:168 msgid "Attach the watcher to an event loop." -msgstr "" +msgstr "Attachez l'observateur à une boucle d'événement." #: ../Doc/library/asyncio-policy.rst:170 msgid "" "If the watcher was previously attached to an event loop, then it is first " "detached before attaching to the new loop." msgstr "" +"Si l'observateur était précédemment attaché à une boucle d'événements, il " +"est d'abord détaché avant d'être rattaché à la nouvelle boucle." #: ../Doc/library/asyncio-policy.rst:173 msgid "Note: loop may be ``None``." -msgstr "" +msgstr "Remarque: la boucle peut être ``None``." #: ../Doc/library/asyncio-policy.rst:177 msgid "Close the watcher." -msgstr "" +msgstr "Ferme l'observateur." #: ../Doc/library/asyncio-policy.rst:179 msgid "" "This method has to be called to ensure that underlying resources are cleaned-" "up." msgstr "" +"Cette méthode doit être appelée pour s'assurer que les ressources sous-" +"jacentes sont nettoyées." #: ../Doc/library/asyncio-policy.rst:184 msgid "" "This implementation avoids disrupting other code spawning processes by " "polling every process explicitly on a :py:data:`SIGCHLD` signal." msgstr "" +"Cette implémentation évite de perturber d'autres processus de génération de " +"code en interrogeant chaque processus explicitement par un signal :py:data:" +"`SIGCHLD`." #: ../Doc/library/asyncio-policy.rst:187 msgid "" "This is a safe solution but it has a significant overhead when handling a " "big number of processes (*O(n)* each time a :py:data:`SIGCHLD` is received)." msgstr "" +"C'est une solution sûre, mais elle nécessite un temps système important lors " +"de la manipulation d'un grand nombre de processus (*O(n)* à chaque fois que " +"a:py:data:`SIGCHLD` est reçu)." #: ../Doc/library/asyncio-policy.rst:191 msgid "asyncio uses this safe implementation by default." -msgstr "" +msgstr "asyncio utilise cette implémentation sécurisée par défaut." #: ../Doc/library/asyncio-policy.rst:195 msgid "" @@ -285,16 +336,21 @@ msgid "" "waitpid(-1)`` directly, possibly breaking other code spawning processes and " "waiting for their termination." msgstr "" +"Cette implémentation récupère tous les processus terminés en appelant " +"directement ``os.waitpid(-1)``, interrompant éventuellement d'autres " +"processus générant du code et attendant leur fin." #: ../Doc/library/asyncio-policy.rst:199 msgid "" "There is no noticeable overhead when handling a big number of children " "(*O(1)* each time a child terminates)." msgstr "" +"Il n'y a pas de surcharge visible lors de la manipulation d'un grand nombre " +"d'enfants (*O(1)* à chaque fois qu'un enfant se termine)." #: ../Doc/library/asyncio-policy.rst:204 msgid "Custom Policies" -msgstr "" +msgstr "Stratégies personnalisées" #: ../Doc/library/asyncio-policy.rst:206 msgid "" @@ -302,3 +358,7 @@ msgid "" "`DefaultEventLoopPolicy` and override the methods for which custom behavior " "is wanted, e.g.::" msgstr "" +"Pour implémenter une nouvelle politique de boucle d’événements, il est " +"recommandé de sous-classer :class:`DefaultEventLoopPolicy` et de " +"réimplémenter les méthodes pour lesquelles un comportement personnalisé est " +"souhaité, par exemple : ::" From eabd15451ebd63e0d2c222032ffe96d99c744814 Mon Sep 17 00:00:00 2001 From: Francois Setton Date: Thu, 11 Apr 2019 23:11:02 +0200 Subject: [PATCH 14/15] corrections erreurs suite pospell --- library/asyncio-policy.po | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/library/asyncio-policy.po b/library/asyncio-policy.po index 6cdc91dbd..00e09b34e 100644 --- a/library/asyncio-policy.po +++ b/library/asyncio-policy.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3.7\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2019-01-03 16:57+0100\n" -"PO-Revision-Date: 2019-04-11 22:30+0200\n" +"PO-Revision-Date: 2019-04-11 22:41+0200\n" "Language-Team: FRENCH \n" "Language: fr\n" "MIME-Version: 1.0\n" @@ -81,7 +81,7 @@ msgstr "" #: ../Doc/library/asyncio-policy.rst:40 msgid "If *policy* is set to ``None``, the default policy is restored." msgstr "" -"Si *policy* est définie sur `` None``, la stratégie par défaut est restaurée." +"Si *policy* est définie sur ``None``, la stratégie par défaut est restaurée." #: ../Doc/library/asyncio-policy.rst:44 msgid "Policy Objects" @@ -95,7 +95,7 @@ msgstr "" #: ../Doc/library/asyncio-policy.rst:50 msgid "An abstract base class for asyncio policies." -msgstr "Une classe de base abstraite pour les règles asyncio-logiques." +msgstr "Une classe de base abstraite pour les stratégies *asyncio*." #: ../Doc/library/asyncio-policy.rst:54 msgid "Get the event loop for the current context." @@ -115,7 +115,7 @@ msgstr "Cette méthode ne devrait jamais renvoyer `` None``." #: ../Doc/library/asyncio-policy.rst:65 msgid "Set the event loop for the current context to *loop*." -msgstr "Définis la boucle d'événements du contexte actuel sur * loop *." +msgstr "Définis la boucle d'événements du contexte actuel sur *loop*." #: ../Doc/library/asyncio-policy.rst:69 msgid "Create and return a new event loop object." @@ -143,14 +143,14 @@ msgstr "Définis l'observateur du processus enfant actuel sur *watcher*." #: ../Doc/library/asyncio-policy.rst:89 msgid "asyncio ships with the following built-in policies:" -msgstr "asyncio est livré avec les stratégies intégrées suivantes:" +msgstr "*asyncio* est livré avec les stratégies intégrées suivantes:" #: ../Doc/library/asyncio-policy.rst:94 msgid "" "The default asyncio policy. Uses :class:`SelectorEventLoop` on both Unix " "and Windows platforms." msgstr "" -"La stratégie asyncio par défaut. Utilise :class:`SelectorEventLoop` sur les " +"La stratégie *asyncio* par défaut. Utilise :class:`SelectorEventLoop` sur les " "plates-formes Unix et Windows." #: ../Doc/library/asyncio-policy.rst:97 @@ -159,7 +159,7 @@ msgid "" "configured to use the default policy automatically." msgstr "" "Il n'est pas nécessaire d'installer la stratégie par défaut manuellement. " -"asyncio est configuré pour utiliser automatiquement la stratégie par défaut." +"*asyncio* est configuré pour utiliser automatiquement la stratégie par défaut." #: ../Doc/library/asyncio-policy.rst:103 msgid "" @@ -193,8 +193,8 @@ msgid "" "In asyncio, child processes are created with :func:`create_subprocess_exec` " "and :meth:`loop.subprocess_exec` functions." msgstr "" -"En asyncio, les processus enfants sont créés avec les fonctions :func:" -"`create_subprocess_exec` et :meth:` loop.subprocess_exec`." +"Dans *asyncio*, les processus enfants sont créés avec les fonctions :func:" +"`create_subprocess_exec` et :meth:`loop.subprocess_exec`." #: ../Doc/library/asyncio-policy.rst:120 msgid "" @@ -203,10 +203,10 @@ msgid "" "class:`SafeChildWatcher` (configured to be used by default) and :class:" "`FastChildWatcher`." msgstr "" -"asyncio définit la classe de base abstraite :class:`AbstractChildWatcher`, " +"*asyncio* définit la classe de base abstraite :class:`AbstractChildWatcher`, " "que les observateurs enfants doivent implémenter et possède deux " -"implémentations différentes: :class:` SafeChildWatcher` (configuré pour être " -"utilisé par défaut) et :class: `FastChildWatcher`." +"implémentations différentes: :class:`SafeChildWatcher` (configuré pour être " +"utilisé par défaut) et :class:`FastChildWatcher`." #: ../Doc/library/asyncio-policy.rst:125 msgid "" @@ -223,7 +223,7 @@ msgid "" msgstr "" "Les deux fonctions suivantes peuvent être utilisées pour personnaliser " "l'implémentation de l'observateur de processus enfant utilisé par la boucle " -"d'événements asyncio:" +"d'événements *asyncio*:" #: ../Doc/library/asyncio-policy.rst:133 msgid "Return the current child watcher for the current policy." @@ -247,7 +247,7 @@ msgid "" msgstr "" "Les implémentations de boucles d'événement tierces peuvent ne pas prendre en " "charge les observateurs enfants personnalisés. Pour ces boucles " -"d'événements, utiliser: func: `set_child_watcher` pourrait être " +"d'événements, utiliser: func:`set_child_watcher` pourrait être " "inaccessible ou n'avoir aucun effet." #: ../Doc/library/asyncio-policy.rst:150 @@ -266,7 +266,7 @@ msgstr "" #: ../Doc/library/asyncio-policy.rst:157 msgid "The *callback* callable must be thread-safe." -msgstr "Le * callback * appelable doit être thread-sûr." +msgstr "Le *callback* appelable doit être thread-sûr." #: ../Doc/library/asyncio-policy.rst:161 msgid "Removes the handler for process with PID equal to *pid*." @@ -324,11 +324,11 @@ msgid "" msgstr "" "C'est une solution sûre, mais elle nécessite un temps système important lors " "de la manipulation d'un grand nombre de processus (*O(n)* à chaque fois que " -"a:py:data:`SIGCHLD` est reçu)." +"un :py:data:`SIGCHLD` est reçu)." #: ../Doc/library/asyncio-policy.rst:191 msgid "asyncio uses this safe implementation by default." -msgstr "asyncio utilise cette implémentation sécurisée par défaut." +msgstr "*asyncio* utilise cette implémentation sécurisée par défaut." #: ../Doc/library/asyncio-policy.rst:195 msgid "" From 108c803b5e59eb50b00cb666049d99bfda903164 Mon Sep 17 00:00:00 2001 From: fsetton <48808345+fsetton@users.noreply.github.com> Date: Sat, 16 Nov 2019 15:12:55 +0100 Subject: [PATCH 15/15] Apply suggestions from code review Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> --- library/asyncio-policy.po | 48 +++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/library/asyncio-policy.po b/library/asyncio-policy.po index 00e09b34e..78dc4a28b 100644 --- a/library/asyncio-policy.po +++ b/library/asyncio-policy.po @@ -76,7 +76,7 @@ msgstr "Renvoie la stratégie actuelle à l'échelle du processus." #: ../Doc/library/asyncio-policy.rst:38 msgid "Set the current process-wide policy to *policy*." msgstr "" -"Définissez la stratégie actuelle sur l'ensemble du processus sur *policy*." +"Définit la stratégie actuelle sur l'ensemble du processus sur *policy*." #: ../Doc/library/asyncio-policy.rst:40 msgid "If *policy* is set to ``None``, the default policy is restored." @@ -90,7 +90,7 @@ msgstr "Sujets de stratégie" #: ../Doc/library/asyncio-policy.rst:46 msgid "The abstract event loop policy base class is defined as follows:" msgstr "" -"La classe de base de la stratégie de boucle d'événements abstrait est " +"La classe de base abstraite de la stratégie de boucle d'événements est " "définie comme suit:" #: ../Doc/library/asyncio-policy.rst:50 @@ -115,22 +115,22 @@ msgstr "Cette méthode ne devrait jamais renvoyer `` None``." #: ../Doc/library/asyncio-policy.rst:65 msgid "Set the event loop for the current context to *loop*." -msgstr "Définis la boucle d'événements du contexte actuel sur *loop*." +msgstr "Définit la boucle d'événements du contexte actuel sur *loop*." #: ../Doc/library/asyncio-policy.rst:69 msgid "Create and return a new event loop object." -msgstr "Crée et retourne un nouvel objet de boucle d'événements." +msgstr "Crée et renvoie un nouvel objet de boucle d'événements." #: ../Doc/library/asyncio-policy.rst:75 msgid "Get a child process watcher object." -msgstr "Obtenez un objet observateur du processus enfant." +msgstr "Récupère un objet observateur du processus enfant." #: ../Doc/library/asyncio-policy.rst:77 msgid "" "Return a watcher object implementing the :class:`AbstractChildWatcher` " "interface." msgstr "" -"Retourne un objet observateur implémentant l'interface :class:" +"Renvoie un objet observateur implémentant l'interface :class:" "`AbstractChildWatcher`." #: ../Doc/library/asyncio-policy.rst:80 ../Doc/library/asyncio-policy.rst:86 @@ -139,11 +139,11 @@ msgstr "Cette fonction est spécifique à Unix." #: ../Doc/library/asyncio-policy.rst:84 msgid "Set the current child process watcher to *watcher*." -msgstr "Définis l'observateur du processus enfant actuel sur *watcher*." +msgstr "Définit l'observateur du processus enfant actuel à *watcher*." #: ../Doc/library/asyncio-policy.rst:89 msgid "asyncio ships with the following built-in policies:" -msgstr "*asyncio* est livré avec les stratégies intégrées suivantes:" +msgstr "*asyncio* est livré avec les stratégies intégrées suivantes :" #: ../Doc/library/asyncio-policy.rst:94 msgid "" @@ -185,7 +185,7 @@ msgid "" msgstr "" "Un observateur de processus permet de personnaliser la manière dont une " "boucle d'événements surveille les processus enfants sous Unix. Plus " -"précisément, la boucle d'événements doit savoir quand un processus enfant " +"précisément, la boucle d'événements a besoin de savoir quand un processus enfant " "s'est terminé." #: ../Doc/library/asyncio-policy.rst:116 @@ -205,7 +205,7 @@ msgid "" msgstr "" "*asyncio* définit la classe de base abstraite :class:`AbstractChildWatcher`, " "que les observateurs enfants doivent implémenter et possède deux " -"implémentations différentes: :class:`SafeChildWatcher` (configuré pour être " +"implémentations différentes : :class:`SafeChildWatcher` (configurée pour être " "utilisé par défaut) et :class:`FastChildWatcher`." #: ../Doc/library/asyncio-policy.rst:125 @@ -213,7 +213,7 @@ msgid "" "See also the :ref:`Subprocess and Threads ` " "section." msgstr "" -"Voir aussi la section :ref:`Subprocess and Threads `." #: ../Doc/library/asyncio-policy.rst:128 @@ -223,7 +223,7 @@ msgid "" msgstr "" "Les deux fonctions suivantes peuvent être utilisées pour personnaliser " "l'implémentation de l'observateur de processus enfant utilisé par la boucle " -"d'événements *asyncio*:" +"d'événements *asyncio* :" #: ../Doc/library/asyncio-policy.rst:133 msgid "Return the current child watcher for the current policy." @@ -235,7 +235,7 @@ msgid "" "*watcher* must implement methods defined in the :class:" "`AbstractChildWatcher` base class." msgstr "" -"Définis l'observateur enfant actuel sur *watcher* pour la stratégie " +"Définit l'observateur enfant actuel à *watcher* pour la stratégie " "actuelle. *watcher* doit implémenter les méthodes définies dans la classe de " "base :class:`AbstractChildWatcher`." @@ -248,11 +248,11 @@ msgstr "" "Les implémentations de boucles d'événement tierces peuvent ne pas prendre en " "charge les observateurs enfants personnalisés. Pour ces boucles " "d'événements, utiliser: func:`set_child_watcher` pourrait être " -"inaccessible ou n'avoir aucun effet." +"interdit ou n'avoir aucun effet." #: ../Doc/library/asyncio-policy.rst:150 msgid "Register a new child handler." -msgstr "Enregistrez un nouveau gestionnaire." +msgstr "Enregistre un nouveau gestionnaire." #: ../Doc/library/asyncio-policy.rst:152 msgid "" @@ -260,13 +260,13 @@ msgid "" "with PID equal to *pid* terminates. Specifying another callback for the " "same process replaces the previous handler." msgstr "" -"Organisez l'appel de ``callback(pid, returncode, * args)`` lorsqu'un " +"Organise l'appel de ``callback(pid, returncode, * args)`` lorsqu'un " "processus dont le PID est égal à *pid* se termine. La spécification d'un " "autre rappel pour le même processus remplace le gestionnaire précédent." #: ../Doc/library/asyncio-policy.rst:157 msgid "The *callback* callable must be thread-safe." -msgstr "Le *callback* appelable doit être thread-sûr." +msgstr "L'appelable *callback* doit être compatible avec les programmes à fils d'exécution multiples." #: ../Doc/library/asyncio-policy.rst:161 msgid "Removes the handler for process with PID equal to *pid*." @@ -277,12 +277,12 @@ msgid "" "The function returns ``True`` if the handler was successfully removed, " "``False`` if there was nothing to remove." msgstr "" -"La fonction retourne ``True`` si le gestionnaire a été supprimé avec succès, " +"La fonction renvoie ``True`` si le gestionnaire a été supprimé avec succès, " "``False`` s'il n'y a rien à supprimer." #: ../Doc/library/asyncio-policy.rst:168 msgid "Attach the watcher to an event loop." -msgstr "Attachez l'observateur à une boucle d'événement." +msgstr "Attache l'observateur à une boucle d'événement." #: ../Doc/library/asyncio-policy.rst:170 msgid "" @@ -294,7 +294,7 @@ msgstr "" #: ../Doc/library/asyncio-policy.rst:173 msgid "Note: loop may be ``None``." -msgstr "Remarque: la boucle peut être ``None``." +msgstr "Remarque : la boucle peut être ``None``." #: ../Doc/library/asyncio-policy.rst:177 msgid "Close the watcher." @@ -313,8 +313,8 @@ msgid "" "This implementation avoids disrupting other code spawning processes by " "polling every process explicitly on a :py:data:`SIGCHLD` signal." msgstr "" -"Cette implémentation évite de perturber d'autres processus de génération de " -"code en interrogeant chaque processus explicitement par un signal :py:data:" +"Cette implémentation évite de perturber un autre code qui aurait besoin de générer des processus " +"en interrogeant chaque processus explicitement par un signal :py:data:" "`SIGCHLD`." #: ../Doc/library/asyncio-policy.rst:187 @@ -337,8 +337,8 @@ msgid "" "waiting for their termination." msgstr "" "Cette implémentation récupère tous les processus terminés en appelant " -"directement ``os.waitpid(-1)``, interrompant éventuellement d'autres " -"processus générant du code et attendant leur fin." +"directement ``os.waitpid(-1)``, cassant éventuellement un autre " +"code qui génère des processus et attend leur fin." #: ../Doc/library/asyncio-policy.rst:199 msgid ""