From 90f4bb7a2a366de37ac2060cf7aef65b56a672ae Mon Sep 17 00:00:00 2001 From: Caliendo Julien Date: Mon, 19 Apr 2021 00:35:20 +0200 Subject: [PATCH 01/19] Traduction de library/json.po --- library/json.po | 49 ++++++++++++++++++++++--------------------------- 1 file changed, 22 insertions(+), 27 deletions(-) diff --git a/library/json.po b/library/json.po index f0b4fe7ab..7118fea58 100644 --- a/library/json.po +++ b/library/json.po @@ -6,14 +6,14 @@ msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-03-19 16:59+0100\n" -"PO-Revision-Date: 2020-08-10 16:10+0200\n" -"Last-Translator: Antoine Wecxsteen\n" +"PO-Revision-Date: 2021-04-19 00:33+0200\n" +"Last-Translator: Caliendo Julien \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" -"X-Generator: Poedit 2.4\n" +"X-Generator: Poedit 2.4.1\n" #: library/json.rst:2 msgid ":mod:`json` --- JSON encoder and decoder" @@ -261,7 +261,7 @@ msgstr "" msgid "" "All optional parameters are now :ref:`keyword-only `." msgstr "" -"tous les paramètres optionnels sont maintenant des :ref:`keyword-only " +"Tous les paramètres optionnels sont maintenant des :ref:`keyword-only " "`." #: library/json.rst:205 @@ -342,7 +342,7 @@ msgstr "" #: library/json.rst:344 msgid "Added support for *object_pairs_hook*." -msgstr "ajout du support de *object_pairs_hook*." +msgstr "Ajout du support de *object_pairs_hook*." #: library/json.rst:347 msgid "" @@ -436,7 +436,7 @@ msgstr "" #: library/json.rst:295 msgid "The keyword argument *encoding* has been removed." -msgstr "suppression de l’argument nommé *encoding*." +msgstr "Suppression de l’argument nommé *encoding*." #: library/json.rst:300 msgid "Encoders and Decoders" @@ -532,17 +532,17 @@ msgstr "" "partie de la spécification JSON." #: library/json.rst:333 -#, fuzzy msgid "" "*object_hook*, if specified, will be called with the result of every JSON " "object decoded and its return value will be used in place of the given :" "class:`dict`. This can be used to provide custom deserializations (e.g. to " "support `JSON-RPC `_ class hinting)." msgstr "" -"Si *object_hook* est définie, elle sera appelée avec le résultat de chaque " -"objet JSON décodé et sa valeur de retour est utilisée à la place du :class:" -"`dict` donné. Cela est utile pour apporter des déserialisations " -"personnalisées (p. ex. pour supporter les *class hinting* de JSON-RPC)." +"Si *object_hook* est spécifiée, elle sera appelée avec le résultat de chaque " +"objet JSON décodé et sa valeur de retour sera utilisé en lieu et place du :" +"class`dict`fourni. Cette fonctionnalité peut être utilisée pour implémenter " +"des décodeurs personnalisés (p. ex pour assurer le support des indices de " +"classe de `JSON-RPC `." #: library/json.rst:338 msgid "" @@ -635,7 +635,7 @@ msgstr "*number*" #: library/json.rst:417 msgid "Added support for int- and float-derived Enum classes." msgstr "" -"ajout de la prise en charge des classes *Enum* dérivées d'*int* ou de " +"Ajout de la prise en charge des classes *Enum* dérivées d'*int* ou de " "*float*." #: library/json.rst:420 @@ -652,16 +652,15 @@ msgstr "" "exc:`TypeError`)." #: library/json.rst:425 -#, fuzzy msgid "" "If *skipkeys* is false (the default), a :exc:`TypeError` will be raised when " "trying to encode keys that are not :class:`str`, :class:`int`, :class:" "`float` or ``None``. If *skipkeys* is true, such items are simply skipped." msgstr "" "Si *skipkeys* vaut ``False`` (valeur par défaut), une :exc:`TypeError` est " -"levée lors de l'encodage de clés autres que des :class:`str`, des :class:" -"`int`, des :class:`float` ou ``None``. Si *skipkeys* vaut ``True``, ces " -"éléments sont simplement ignorés." +"levée si la clé encodée n'est pas de type :class:`str`, :class:`int`, :class:" +"`float` or ``None``. Si ùskipkeys* vaut ``True``, ces éléments sont " +"simplement ignorés." #: library/json.rst:433 msgid "" @@ -710,13 +709,12 @@ msgstr "" "exc:`TypeError`)." #: library/json.rst:481 -#, fuzzy msgid "" "For example, to support arbitrary iterators, you could implement :meth:" "`default` like this::" msgstr "" -"Par exemple, pour supporter des itérateurs arbitraires, vous pouvez " -"implémenter *default* comme cela ::" +"Par exemple, pour prendre en charge les itérations arbitraires, la :meth:" +"`default` peut être écrite ainsi::" #: library/json.rst:497 msgid "" @@ -964,19 +962,19 @@ msgstr "" #: library/json.rst:648 msgid "the size of accepted JSON texts" -msgstr "la taille des textes JSON acceptés ;" +msgstr "la taille des textes JSON acceptés" #: library/json.rst:649 msgid "the maximum level of nesting of JSON objects and arrays" -msgstr "le niveau maximum d'objets et tableaux JSON imbriqués ;" +msgstr "le niveau maximum d'objets et tableaux JSON imbriqués" #: library/json.rst:650 msgid "the range and precision of JSON numbers" -msgstr "l'intervalle et la précision des nombres JSON ;" +msgstr "l'intervalle et la précision des nombres JSON" #: library/json.rst:651 msgid "the content and maximum length of JSON strings" -msgstr "le contenu et la longueur maximale des chaînes JSON." +msgstr "le contenu et la longueur maximale des chaînes JSON" #: library/json.rst:653 msgid "" @@ -1076,11 +1074,8 @@ msgid "Parse every input line as separate JSON object." msgstr "Transforme chaque ligne d'entrée en un objet JSON individuel." #: library/json.rst:747 -#, fuzzy msgid "Mutually exclusive options for whitespace control." -msgstr "" -"Options mutuellement exclusives pour le contrôle des caractères " -"d’espacements (caractères « blancs »)." +msgstr "Options roupées de contrôle des espaces." #: library/json.rst:753 msgid "Show the help message." From 3783895d0e0245e6b18405add48034c876a2a7cd Mon Sep 17 00:00:00 2001 From: Caliendo Julien Date: Mon, 19 Apr 2021 00:41:15 +0200 Subject: [PATCH 02/19] Typo sur library/json.po --- library/json.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/json.po b/library/json.po index 7118fea58..889c4b086 100644 --- a/library/json.po +++ b/library/json.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-03-19 16:59+0100\n" -"PO-Revision-Date: 2021-04-19 00:33+0200\n" +"PO-Revision-Date: 2021-04-19 00:40+0200\n" "Last-Translator: Caliendo Julien \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -1075,7 +1075,7 @@ msgstr "Transforme chaque ligne d'entrée en un objet JSON individuel." #: library/json.rst:747 msgid "Mutually exclusive options for whitespace control." -msgstr "Options roupées de contrôle des espaces." +msgstr "Options groupées de contrôle des espaces." #: library/json.rst:753 msgid "Show the help message." From c4f5bb7b62a379b71ba44250190d8cbccee3fd88 Mon Sep 17 00:00:00 2001 From: Caliendo Julien Date: Mon, 19 Apr 2021 00:44:57 +0200 Subject: [PATCH 03/19] Correction pospell --- library/json.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/json.po b/library/json.po index 889c4b086..bfb92105c 100644 --- a/library/json.po +++ b/library/json.po @@ -540,7 +540,7 @@ msgid "" msgstr "" "Si *object_hook* est spécifiée, elle sera appelée avec le résultat de chaque " "objet JSON décodé et sa valeur de retour sera utilisé en lieu et place du :" -"class`dict`fourni. Cette fonctionnalité peut être utilisée pour implémenter " +"class:`dict`fournie. Cette fonctionnalité peut être utilisée pour implémenter " "des décodeurs personnalisés (p. ex pour assurer le support des indices de " "classe de `JSON-RPC `." @@ -659,7 +659,7 @@ msgid "" msgstr "" "Si *skipkeys* vaut ``False`` (valeur par défaut), une :exc:`TypeError` est " "levée si la clé encodée n'est pas de type :class:`str`, :class:`int`, :class:" -"`float` or ``None``. Si ùskipkeys* vaut ``True``, ces éléments sont " +"`float` or ``None``. Si *skipkeys* vaut ``True``, ces éléments sont " "simplement ignorés." #: library/json.rst:433 From de6a36023ab2475e1f599be72d7b876becdeab4c Mon Sep 17 00:00:00 2001 From: Caliendo Julien Date: Mon, 19 Apr 2021 00:54:30 +0200 Subject: [PATCH 04/19] Correction powrap --- library/json.po | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/json.po b/library/json.po index bfb92105c..08f77a670 100644 --- a/library/json.po +++ b/library/json.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-03-19 16:59+0100\n" -"PO-Revision-Date: 2021-04-19 00:40+0200\n" +"PO-Revision-Date: 2021-04-19 00:54+0200\n" "Last-Translator: Caliendo Julien \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -539,8 +539,8 @@ msgid "" "support `JSON-RPC `_ class hinting)." msgstr "" "Si *object_hook* est spécifiée, elle sera appelée avec le résultat de chaque " -"objet JSON décodé et sa valeur de retour sera utilisé en lieu et place du :" -"class:`dict`fournie. Cette fonctionnalité peut être utilisée pour implémenter " +"objet JSON décodé et sa valeur de retour est utilisée à la place du :" +"class`dict`fourni. Cette fonctionnalité peut être utilisée pour implémenter " "des décodeurs personnalisés (p. ex pour assurer le support des indices de " "classe de `JSON-RPC `." @@ -659,7 +659,7 @@ msgid "" msgstr "" "Si *skipkeys* vaut ``False`` (valeur par défaut), une :exc:`TypeError` est " "levée si la clé encodée n'est pas de type :class:`str`, :class:`int`, :class:" -"`float` or ``None``. Si *skipkeys* vaut ``True``, ces éléments sont " +"`float` or ``None``. Si ùskipkeys* vaut ``True``, ces éléments sont " "simplement ignorés." #: library/json.rst:433 From cfa92ee8f74f3d946f4d567566842b36fa6d3ea0 Mon Sep 17 00:00:00 2001 From: Caliendo Julien Date: Mon, 19 Apr 2021 00:58:29 +0200 Subject: [PATCH 05/19] POEedit me troll --- library/json.po | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/json.po b/library/json.po index 08f77a670..e487aac2c 100644 --- a/library/json.po +++ b/library/json.po @@ -538,9 +538,9 @@ msgid "" "class:`dict`. This can be used to provide custom deserializations (e.g. to " "support `JSON-RPC `_ class hinting)." msgstr "" -"Si *object_hook* est spécifiée, elle sera appelée avec le résultat de chaque " +"Si *object_hook* est spécifiée, elle est appelée avec le résultat de chaque " "objet JSON décodé et sa valeur de retour est utilisée à la place du :" -"class`dict`fourni. Cette fonctionnalité peut être utilisée pour implémenter " +"class:`dict` fourni. Cette fonctionnalité peut être utilisée pour implémenter " "des décodeurs personnalisés (p. ex pour assurer le support des indices de " "classe de `JSON-RPC `." @@ -659,7 +659,7 @@ msgid "" msgstr "" "Si *skipkeys* vaut ``False`` (valeur par défaut), une :exc:`TypeError` est " "levée si la clé encodée n'est pas de type :class:`str`, :class:`int`, :class:" -"`float` or ``None``. Si ùskipkeys* vaut ``True``, ces éléments sont " +"`float` or ``None``. Si *skipkeys* vaut ``True``, ces éléments sont " "simplement ignorés." #: library/json.rst:433 From 00a514f5589c1a53432e331f9703693f238028fa Mon Sep 17 00:00:00 2001 From: Caliendo Julien Date: Mon, 19 Apr 2021 01:02:44 +0200 Subject: [PATCH 06/19] =?UTF-8?q?Manque=20un=20"=5F"=20pour=20sp=C3=A9cifi?= =?UTF-8?q?er=20l'url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/json.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/json.po b/library/json.po index e487aac2c..1b1433d5c 100644 --- a/library/json.po +++ b/library/json.po @@ -542,7 +542,7 @@ msgstr "" "objet JSON décodé et sa valeur de retour est utilisée à la place du :" "class:`dict` fourni. Cette fonctionnalité peut être utilisée pour implémenter " "des décodeurs personnalisés (p. ex pour assurer le support des indices de " -"classe de `JSON-RPC `." +"classe de `JSON-RPC `_." #: library/json.rst:338 msgid "" From f9647b0d4e0c581edc52f18a170e9a4e7c5a3ed6 Mon Sep 17 00:00:00 2001 From: Caliendo Julien Date: Mon, 19 Apr 2021 01:09:35 +0200 Subject: [PATCH 07/19] =?UTF-8?q?R=C3=A9duction=20du=20nombre=20de=20carac?= =?UTF-8?q?t=C3=A8re=20de=20la=20ligne=20pour=20faire=20plaisir=20a=20powr?= =?UTF-8?q?ap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/json.po | 471 +++++++++++++++++++++++------------------------- 1 file changed, 227 insertions(+), 244 deletions(-) diff --git a/library/json.po b/library/json.po index 1b1433d5c..a2b3c3186 100644 --- a/library/json.po +++ b/library/json.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-03-19 16:59+0100\n" -"PO-Revision-Date: 2021-04-19 00:54+0200\n" +"PO-Revision-Date: 2021-04-19 01:07+0200\n" "Last-Translator: Caliendo Julien \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -28,16 +28,16 @@ msgid "" "`JSON (JavaScript Object Notation) `_, specified by :rfc:" "`7159` (which obsoletes :rfc:`4627`) and by `ECMA-404 `_, is a lightweight " -"data interchange format inspired by `JavaScript `_ object literal syntax (although it is not a strict subset " -"of JavaScript [#rfc-errata]_ )." +"data interchange format inspired by `JavaScript `_ object literal syntax (although it is not a strict subset of " +"JavaScript [#rfc-errata]_ )." msgstr "" "`JSON (JavaScript Object Notation) `_, décrit par la :rfc:" -"`7159` (qui rend la :rfc:`4627` obsolète) et par le standard `ECMA-404 " -"`_, " -"est un format très simple d'échange de données inspiré par la syntaxe des " -"objets littéraux de `JavaScript `_ " -"(bien que ce ne soit pas au sens propre un sous-ensemble de Javascript [#rfc-" +"`7159` (qui rend la :rfc:`4627` obsolète) et par le standard `ECMA-404 `_, est un " +"format très simple d'échange de données inspiré par la syntaxe des objets " +"littéraux de `JavaScript `_ (bien " +"que ce ne soit pas au sens propre un sous-ensemble de Javascript [#rfc-" "errata]_ )." #: library/json.rst:21 @@ -84,10 +84,10 @@ msgstr "Voir :ref:`json-commandline` pour une documentation détaillée." #: library/json.rst:118 msgid "" -"JSON is a subset of `YAML `_ 1.2. The JSON produced by " -"this module's default settings (in particular, the default *separators* " -"value) is also a subset of YAML 1.0 and 1.1. This module can thus also be " -"used as a YAML serializer." +"JSON is a subset of `YAML `_ 1.2. The JSON produced by this " +"module's default settings (in particular, the default *separators* value) is " +"also a subset of YAML 1.0 and 1.1. This module can thus also be used as a " +"YAML serializer." msgstr "" "JSON est un sous-ensemble de `YAML `_ 1.2. Le JSON produit " "par les paramètres par défaut de ce module (en particulier, la valeur par " @@ -105,18 +105,17 @@ msgstr "" #: library/json.rst:128 msgid "" -"Prior to Python 3.7, :class:`dict` was not guaranteed to be ordered, so " -"inputs and outputs were typically scrambled unless :class:`collections." -"OrderedDict` was specifically requested. Starting with Python 3.7, the " -"regular :class:`dict` became order preserving, so it is no longer necessary " -"to specify :class:`collections.OrderedDict` for JSON generation and parsing." +"Prior to Python 3.7, :class:`dict` was not guaranteed to be ordered, so inputs " +"and outputs were typically scrambled unless :class:`collections.OrderedDict` " +"was specifically requested. Starting with Python 3.7, the regular :class:" +"`dict` became order preserving, so it is no longer necessary to specify :class:" +"`collections.OrderedDict` for JSON generation and parsing." msgstr "" "Avant Python 3.7, :class:`dict` n'était pas garanti d'être ordonné, donc les " "entrées et sorties étaient généralement mélangées à moins d'utiliser " -"explicitement un :class:`collections.OrderedDict`. À partir de Python 3.7, " -"un :class:`dict` conserve son ordre, il n'est donc plus nécessaire " -"d'utiliser un :class:`collections.OrderedDict` pour générer et analyser du " -"JSON." +"explicitement un :class:`collections.OrderedDict`. À partir de Python 3.7, un :" +"class:`dict` conserve son ordre, il n'est donc plus nécessaire d'utiliser un :" +"class:`collections.OrderedDict` pour générer et analyser du JSON." #: library/json.rst:137 msgid "Basic Usage" @@ -124,13 +123,12 @@ msgstr "Utilisation de base" #: library/json.rst:144 msgid "" -"Serialize *obj* as a JSON formatted stream to *fp* (a ``.write()``-" -"supporting :term:`file-like object`) using this :ref:`conversion table `." +"Serialize *obj* as a JSON formatted stream to *fp* (a ``.write()``-supporting :" +"term:`file-like object`) using this :ref:`conversion table `." msgstr "" -"Sérialise *obj* en un flux JSON dans *fp* (un :term:`objet compatible " -"fichier ` prenant en charge ``.write()``), en utilisant " -"cette :ref:`table de conversion `." +"Sérialise *obj* en un flux JSON dans *fp* (un :term:`objet compatible fichier " +"` prenant en charge ``.write()``), en utilisant cette :ref:" +"`table de conversion `." #: library/json.rst:148 msgid "" @@ -154,22 +152,22 @@ msgstr "" #: library/json.rst:429 msgid "" -"If *ensure_ascii* is true (the default), the output is guaranteed to have " -"all incoming non-ASCII characters escaped. If *ensure_ascii* is false, " -"these characters will be output as-is." +"If *ensure_ascii* is true (the default), the output is guaranteed to have all " +"incoming non-ASCII characters escaped. If *ensure_ascii* is false, these " +"characters will be output as-is." msgstr "" "Si *ensure_ascii* vaut ``True`` (valeur par défaut), il est garanti que les " -"caractères non ASCII soient tous échappés à la sortie. Si *ensure_ascii* " -"vaut ``False``, ces caractères sont écrits tels quels." +"caractères non ASCII soient tous échappés à la sortie. Si *ensure_ascii* vaut " +"``False``, ces caractères sont écrits tels quels." #: library/json.rst:160 msgid "" -"If *check_circular* is false (default: ``True``), then the circular " -"reference check for container types will be skipped and a circular reference " -"will result in an :exc:`OverflowError` (or worse)." +"If *check_circular* is false (default: ``True``), then the circular reference " +"check for container types will be skipped and a circular reference will result " +"in an :exc:`OverflowError` (or worse)." msgstr "" -"Si *check_circular* vaut ``False`` (``True`` par défaut), la vérification " -"des références circulaires pour les conteneurs est ignorée, et une référence " +"Si *check_circular* vaut ``False`` (``True`` par défaut), la vérification des " +"références circulaires pour les conteneurs est ignorée, et une référence " "circulaire résulte en une :exc:`OverflowError` (ou pire)." #: library/json.rst:164 @@ -180,20 +178,20 @@ msgid "" "*allow_nan* is true, their JavaScript equivalents (``NaN``, ``Infinity``, ``-" "Infinity``) will be used." msgstr "" -"Si *allow_nan* vaut ``False`` (``True`` par défaut), une :exc:`ValueError` " -"est levée lors de la sérialisation de valeurs :class:`float` extérieures aux " +"Si *allow_nan* vaut ``False`` (``True`` par défaut), une :exc:`ValueError` est " +"levée lors de la sérialisation de valeurs :class:`float` extérieures aux " "bornes (``nan``, ``inf``, ``-inf``), en respect strict de la spécification " "JSON. Si *allow_nan* vaut ``True``, leurs équivalents JavaScript (``NaN``, " "``Infinity``, ``-Infinity``) sont utilisés." #: library/json.rst:448 msgid "" -"If *indent* is a non-negative integer or string, then JSON array elements " -"and object members will be pretty-printed with that indent level. An indent " -"level of 0, negative, or ``\"\"`` will only insert newlines. ``None`` (the " -"default) selects the most compact representation. Using a positive integer " -"indent indents that many spaces per level. If *indent* is a string (such as " -"``\"\\t\"``), that string is used to indent each level." +"If *indent* is a non-negative integer or string, then JSON array elements and " +"object members will be pretty-printed with that indent level. An indent level " +"of 0, negative, or ``\"\"`` will only insert newlines. ``None`` (the default) " +"selects the most compact representation. Using a positive integer indent " +"indents that many spaces per level. If *indent* is a string (such as ``\"\\t" +"\"``), that string is used to indent each level." msgstr "" "Si *indent* est un nombre entier positif ou une chaîne de caractères, les " "éléments de tableaux et les membres d'objets JSON sont affichés élégamment " @@ -211,15 +209,14 @@ msgstr "Autorise les chaînes en plus des nombres entiers pour *indent*." #: library/json.rst:458 msgid "" "If specified, *separators* should be an ``(item_separator, key_separator)`` " -"tuple. The default is ``(', ', ': ')`` if *indent* is ``None`` and ``(',', " -"': ')`` otherwise. To get the most compact JSON representation, you should " +"tuple. The default is ``(', ', ': ')`` if *indent* is ``None`` and ``(',', ': " +"')`` otherwise. To get the most compact JSON representation, you should " "specify ``(',', ':')`` to eliminate whitespace." msgstr "" "Si spécifié, *separators* doit être un *n*-uplet ``(item_separator, " "key_separator)``. Sa valeur par défaut est ``(', ', ': ')`` si *indent* est " "``None``, et ``(',', ': ')`` autrement. Pour obtenir la représentation JSON " -"la plus compacte possible, passez ``(',', ':')`` pour éliminer les " -"espacements." +"la plus compacte possible, passez ``(',', ':')`` pour éliminer les espacements." #: library/json.rst:463 msgid "Use ``(',', ': ')`` as default if *indent* is not ``None``." @@ -227,16 +224,16 @@ msgstr "Utilise ``(',', ': ')`` par défaut si *indent* n'est pas ``None``." #: library/json.rst:466 msgid "" -"If specified, *default* should be a function that gets called for objects " -"that can't otherwise be serialized. It should return a JSON encodable " -"version of the object or raise a :exc:`TypeError`. If not specified, :exc:" -"`TypeError` is raised." +"If specified, *default* should be a function that gets called for objects that " +"can't otherwise be serialized. It should return a JSON encodable version of " +"the object or raise a :exc:`TypeError`. If not specified, :exc:`TypeError` is " +"raised." msgstr "" -"Si spécifié, *default* doit être une fonction qui sera appelée pour les " -"objets qui ne peuvent être sérialisés autrement. Elle doit renvoyer une " -"représentation de l'objet sérialisable en JSON ou lever une :exc:" -"`TypeError`. Si non spécifié, une :exc:`TypeError` est levée pour les types " -"non sérialisables." +"Si spécifié, *default* doit être une fonction qui sera appelée pour les objets " +"qui ne peuvent être sérialisés autrement. Elle doit renvoyer une " +"représentation de l'objet sérialisable en JSON ou lever une :exc:`TypeError`. " +"Si non spécifié, une :exc:`TypeError` est levée pour les types non " +"sérialisables." #: library/json.rst:193 msgid "" @@ -254,26 +251,25 @@ msgid "" msgstr "" "Pour utiliser une sous-classe :class:`JSONEncoder` personnalisée (p. ex. une " "qui redéfinit la méthode :meth:`default` pour sérialiser des types " -"additionnels), spécifiez-la avec le paramètre nommé *cls* ; autrement, :" -"class:`JSONEncoder` est utilisée." +"additionnels), spécifiez-la avec le paramètre nommé *cls* ; autrement, :class:" +"`JSONEncoder` est utilisée." #: library/json.rst:273 msgid "" "All optional parameters are now :ref:`keyword-only `." msgstr "" -"Tous les paramètres optionnels sont maintenant des :ref:`keyword-only " -"`." +"Tous les paramètres optionnels sont maintenant des :ref:`keyword-only `." #: library/json.rst:205 msgid "" "Unlike :mod:`pickle` and :mod:`marshal`, JSON is not a framed protocol, so " -"trying to serialize multiple objects with repeated calls to :func:`dump` " -"using the same *fp* will result in an invalid JSON file." +"trying to serialize multiple objects with repeated calls to :func:`dump` using " +"the same *fp* will result in an invalid JSON file." msgstr "" "À l'inverse de :mod:`pickle` et :mod:`marshal`, JSON n'est pas un protocole " -"par trames, donc essayer de sérialiser plusieurs objets par des appels " -"répétés à :func:`dump` en utilisant le même *fp* résulte en un fichier JSON " -"invalide." +"par trames, donc essayer de sérialiser plusieurs objets par des appels répétés " +"à :func:`dump` en utilisant le même *fp* résulte en un fichier JSON invalide." #: library/json.rst:214 msgid "" @@ -281,49 +277,48 @@ msgid "" "table `. The arguments have the same meaning as in :func:" "`dump`." msgstr "" -"Sérialise *obj* en une :class:`str` formatée en JSON, en utilisant cette :" -"ref:`table de conversion `. Les arguments ont la même " +"Sérialise *obj* en une :class:`str` formatée en JSON, en utilisant cette :ref:" +"`table de conversion `. Les arguments ont la même " "signification que ceux de :func:`dump`." #: library/json.rst:220 msgid "" "Keys in key/value pairs of JSON are always of the type :class:`str`. When a " -"dictionary is converted into JSON, all the keys of the dictionary are " -"coerced to strings. As a result of this, if a dictionary is converted into " -"JSON and then back into a dictionary, the dictionary may not equal the " -"original one. That is, ``loads(dumps(x)) != x`` if x has non-string keys." -msgstr "" -"Les clés dans les couples JSON clé-valeur sont toujours de type :class:" -"`str`. Quand un dictionnaire est converti en JSON, toutes les clés du " -"dictionnaire sont transformées en chaînes de caractères. Ce qui fait que si " -"un dictionnaire est converti en JSON et reconverti en dictionnaire, le " -"résultat peut ne pas être égal à l'original. Ainsi, ``loads(dumps(x)) != x`` " -"si x contient des clés qui ne sont pas des chaînes." +"dictionary is converted into JSON, all the keys of the dictionary are coerced " +"to strings. As a result of this, if a dictionary is converted into JSON and " +"then back into a dictionary, the dictionary may not equal the original one. " +"That is, ``loads(dumps(x)) != x`` if x has non-string keys." +msgstr "" +"Les clés dans les couples JSON clé-valeur sont toujours de type :class:`str`. " +"Quand un dictionnaire est converti en JSON, toutes les clés du dictionnaire " +"sont transformées en chaînes de caractères. Ce qui fait que si un dictionnaire " +"est converti en JSON et reconverti en dictionnaire, le résultat peut ne pas " +"être égal à l'original. Ainsi, ``loads(dumps(x)) != x`` si x contient des clés " +"qui ne sont pas des chaînes." #: library/json.rst:229 msgid "" -"Deserialize *fp* (a ``.read()``-supporting :term:`text file` or :term:" -"`binary file` containing a JSON document) to a Python object using this :ref:" +"Deserialize *fp* (a ``.read()``-supporting :term:`text file` or :term:`binary " +"file` containing a JSON document) to a Python object using this :ref:" "`conversion table `." msgstr "" -"Déserialise *fp* (un :term:`text file` ou un :term:`binary file` supportant " -"``.read()`` et contenant un document JSON) vers un objet Python en utilisant " +"Déserialise *fp* (un :term:`text file` ou un :term:`binary file` supportant ``." +"read()`` et contenant un document JSON) vers un objet Python en utilisant " "cette :ref:`table de conversion `." #: library/json.rst:233 msgid "" "*object_hook* is an optional function that will be called with the result of " "any object literal decoded (a :class:`dict`). The return value of " -"*object_hook* will be used instead of the :class:`dict`. This feature can " -"be used to implement custom decoders (e.g. `JSON-RPC `_ class hinting)." +"*object_hook* will be used instead of the :class:`dict`. This feature can be " +"used to implement custom decoders (e.g. `JSON-RPC `_ " +"class hinting)." msgstr "" -"*object_hook* est une fonction optionnelle qui est appelée avec le résultat " -"de chaque objet littéral décodé (chaque :class:`dict`). La valeur de retour " -"de *object_hook* est utilisée à la place du :class:`dict`. Cette " -"fonctionnalité peut être utilisée pour implémenter des décodeurs " -"personnalisés (p. ex. les *class hinting* de `JSON-RPC `_)." +"*object_hook* est une fonction optionnelle qui est appelée avec le résultat de " +"chaque objet littéral décodé (chaque :class:`dict`). La valeur de retour de " +"*object_hook* est utilisée à la place du :class:`dict`. Cette fonctionnalité " +"peut être utilisée pour implémenter des décodeurs personnalisés (p. ex. les " +"*class hinting* de `JSON-RPC `_)." #: library/json.rst:239 msgid "" @@ -335,8 +330,8 @@ msgid "" msgstr "" "*object_pairs_hook* est une fonction optionnelle qui est appelée pour chaque " "objet littéral décodé, avec une liste ordonnée de couples. La valeur de " -"retour de *object_pairs_hook* est utilisée à la place du :class:`dict`. " -"Cette fonctionnalité peut être utilisée pour implémenter des décodeurs " +"retour de *object_pairs_hook* est utilisée à la place du :class:`dict`. Cette " +"fonctionnalité peut être utilisée pour implémenter des décodeurs " "personnalisés. *object_pairs_hook* prend la priorité sur *object_hook*, si " "cette dernière est aussi définie." @@ -351,30 +346,29 @@ msgid "" "This can be used to use another datatype or parser for JSON floats (e.g. :" "class:`decimal.Decimal`)." msgstr "" -"Si *parse_float* est définie, elle est appelée avec chaque nombre réel JSON " -"à décoder, sous forme d'une chaîne de caractères, en argument. Par défaut, " -"elle est équivalente à ``float(num_str)``. Cela peut servir à utiliser un " -"autre type de données ou un autre analyseur pour les nombres réels JSON (p. " -"ex. :class:`decimal.Decimal`)." +"Si *parse_float* est définie, elle est appelée avec chaque nombre réel JSON à " +"décoder, sous forme d'une chaîne de caractères, en argument. Par défaut, elle " +"est équivalente à ``float(num_str)``. Cela peut servir à utiliser un autre " +"type de données ou un autre analyseur pour les nombres réels JSON (p. ex. :" +"class:`decimal.Decimal`)." #: library/json.rst:352 msgid "" -"*parse_int*, if specified, will be called with the string of every JSON int " -"to be decoded. By default, this is equivalent to ``int(num_str)``. This " -"can be used to use another datatype or parser for JSON integers (e.g. :class:" -"`float`)." +"*parse_int*, if specified, will be called with the string of every JSON int to " +"be decoded. By default, this is equivalent to ``int(num_str)``. This can be " +"used to use another datatype or parser for JSON integers (e.g. :class:`float`)." msgstr "" -"Si *parse_int* est définie, elle est appelée avec chaque nombre entier JSON " -"à décoder, sous forme d'une chaîne de caractères, en argument. Par défaut, " -"elle est équivalente à ``int(num_str)``. Cela peut servir à utiliser un " -"autre type de données ou un autre analyseur pour les nombres entiers JSON " -"(p. ex. :class:`float`)." +"Si *parse_int* est définie, elle est appelée avec chaque nombre entier JSON à " +"décoder, sous forme d'une chaîne de caractères, en argument. Par défaut, elle " +"est équivalente à ``int(num_str)``. Cela peut servir à utiliser un autre type " +"de données ou un autre analyseur pour les nombres entiers JSON (p. ex. :class:" +"`float`)." #: library/json.rst:357 msgid "" "*parse_constant*, if specified, will be called with one of the following " -"strings: ``'-Infinity'``, ``'Infinity'``, ``'NaN'``. This can be used to " -"raise an exception if invalid JSON numbers are encountered." +"strings: ``'-Infinity'``, ``'Infinity'``, ``'NaN'``. This can be used to raise " +"an exception if invalid JSON numbers are encountered." msgstr "" "Si *parse_constant* est définie, elle est quand l'une des chaînes de " "caractères suivantes est rencontrée : ``'-Infinity'``, ``'Infinity'`` ou " @@ -391,10 +385,9 @@ msgid "" "kwarg; otherwise :class:`JSONDecoder` is used. Additional keyword arguments " "will be passed to the constructor of the class." msgstr "" -"Pour utiliser une sous-classe :class:`JSONDecoder` personnalisée, spécifiez-" -"la avec l'argument nommé ``cls`` ; autrement, :class:`JSONDecoder` est " -"utilisée. Les arguments nommés additionnels sont passés au constructeur de " -"cette classe." +"Pour utiliser une sous-classe :class:`JSONDecoder` personnalisée, spécifiez-la " +"avec l'argument nommé ``cls`` ; autrement, :class:`JSONDecoder` est utilisée. " +"Les arguments nommés additionnels sont passés au constructeur de cette classe." #: library/json.rst:288 library/json.rst:367 msgid "" @@ -414,9 +407,9 @@ msgstr "" #: library/json.rst:282 msgid "" -"Deserialize *s* (a :class:`str`, :class:`bytes` or :class:`bytearray` " -"instance containing a JSON document) to a Python object using this :ref:" -"`conversion table `." +"Deserialize *s* (a :class:`str`, :class:`bytes` or :class:`bytearray` instance " +"containing a JSON document) to a Python object using this :ref:`conversion " +"table `." msgstr "" "Déserialise *s* (une instance de :class:`str`, :class:`bytes` ou :class:" "`bytearray` contenant un document JSON) vers un objet Python en utilisant " @@ -527,27 +520,27 @@ msgid "" "It also understands ``NaN``, ``Infinity``, and ``-Infinity`` as their " "corresponding ``float`` values, which is outside the JSON spec." msgstr "" -"Les valeurs ``NaN``, ``Infinity`` et ``-Infinity`` sont aussi comprises " -"comme leurs valeurs ``float`` correspondantes, bien que ne faisant pas " -"partie de la spécification JSON." +"Les valeurs ``NaN``, ``Infinity`` et ``-Infinity`` sont aussi comprises comme " +"leurs valeurs ``float`` correspondantes, bien que ne faisant pas partie de la " +"spécification JSON." #: library/json.rst:333 msgid "" "*object_hook*, if specified, will be called with the result of every JSON " -"object decoded and its return value will be used in place of the given :" -"class:`dict`. This can be used to provide custom deserializations (e.g. to " -"support `JSON-RPC `_ class hinting)." +"object decoded and its return value will be used in place of the given :class:" +"`dict`. This can be used to provide custom deserializations (e.g. to support " +"`JSON-RPC `_ class hinting)." msgstr "" "Si *object_hook* est spécifiée, elle est appelée avec le résultat de chaque " -"objet JSON décodé et sa valeur de retour est utilisée à la place du :" -"class:`dict` fourni. Cette fonctionnalité peut être utilisée pour implémenter " -"des décodeurs personnalisés (p. ex pour assurer le support des indices de " -"classe de `JSON-RPC `_." +"objet JSON décodé et sa valeur de retour est utilisée à la place du :class:" +"`dict` fourni. Cette fonctionnalité peut être utilisée pour implémenter des " +"décodeurs personnalisés (p. ex supportter les indices de classe de `JSON-RPC " +"`_." #: library/json.rst:338 msgid "" -"*object_pairs_hook*, if specified will be called with the result of every " -"JSON object decoded with an ordered list of pairs. The return value of " +"*object_pairs_hook*, if specified will be called with the result of every JSON " +"object decoded with an ordered list of pairs. The return value of " "*object_pairs_hook* will be used instead of the :class:`dict`. This feature " "can be used to implement custom decoders. If *object_hook* is also defined, " "the *object_pairs_hook* takes priority." @@ -556,20 +549,20 @@ msgstr "" "chaque objet JSON décodé avec une liste ordonnée de couples. Sa valeur de " "retour est utilisée à la place du :class:`dict`. Cette fonctionnalité peut " "être utilisée pour implémenter des décodeurs personnalisés. " -"*object_pairs_hook* prend la priorité sur *object_hook*, si cette dernière " -"est aussi définie." +"*object_pairs_hook* prend la priorité sur *object_hook*, si cette dernière est " +"aussi définie." #: library/json.rst:362 msgid "" "If *strict* is false (``True`` is the default), then control characters will " -"be allowed inside strings. Control characters in this context are those " -"with character codes in the 0--31 range, including ``'\\t'`` (tab), " -"``'\\n'``, ``'\\r'`` and ``'\\0'``." +"be allowed inside strings. Control characters in this context are those with " +"character codes in the 0--31 range, including ``'\\t'`` (tab), ``'\\n'``, " +"``'\\r'`` and ``'\\0'``." msgstr "" "Si *strict* vaut ``False`` (``True`` par défaut), alors les caractères de " -"contrôle sont autorisés à l'intérieur des chaînes. Les caractères de " -"contrôle dans ce contexte sont ceux dont les codes sont dans l'intervalle " -"0--31, incluant ``'\\t'`` (tabulation), ``'\\n'``, ``'\\r'`` et ``'\\0'``." +"contrôle sont autorisés à l'intérieur des chaînes. Les caractères de contrôle " +"dans ce contexte sont ceux dont les codes sont dans l'intervalle 0--31, " +"incluant ``'\\t'`` (tabulation), ``'\\n'``, ``'\\r'`` et ``'\\0'``." #: library/json.rst:471 msgid "All parameters are now :ref:`keyword-only `." @@ -579,16 +572,15 @@ msgstr "" #: library/json.rst:375 msgid "" -"Return the Python representation of *s* (a :class:`str` instance containing " -"a JSON document)." +"Return the Python representation of *s* (a :class:`str` instance containing a " +"JSON document)." msgstr "" "Renvoie la représentation Python de *s* (une instance :class:`str` contenant " "un document JSON)." #: library/json.rst:378 msgid "" -":exc:`JSONDecodeError` will be raised if the given JSON document is not " -"valid." +":exc:`JSONDecodeError` will be raised if the given JSON document is not valid." msgstr "" "Une :exc:`JSONDecodeError` est levée si le document JSON donné n'est pas " "valide." @@ -599,8 +591,8 @@ msgid "" "document) and return a 2-tuple of the Python representation and the index in " "*s* where the document ended." msgstr "" -"Décode en document JSON depuis *s* (une instance :class:`str` débutant par " -"un document JSON) et renvoie un *n*-uplet de 2 éléments contenant la " +"Décode en document JSON depuis *s* (une instance :class:`str` débutant par un " +"document JSON) et renvoie un *n*-uplet de 2 éléments contenant la " "représentation Python de l'objet et l'index dans *s* où le document se " "terminait." @@ -635,32 +627,31 @@ msgstr "*number*" #: library/json.rst:417 msgid "Added support for int- and float-derived Enum classes." msgstr "" -"Ajout de la prise en charge des classes *Enum* dérivées d'*int* ou de " -"*float*." +"Ajout de la prise en charge des classes *Enum* dérivées d'*int* ou de *float*." #: library/json.rst:420 msgid "" "To extend this to recognize other objects, subclass and implement a :meth:" "`default` method with another method that returns a serializable object for " -"``o`` if possible, otherwise it should call the superclass implementation " -"(to raise :exc:`TypeError`)." +"``o`` if possible, otherwise it should call the superclass implementation (to " +"raise :exc:`TypeError`)." msgstr "" "Pour l'étendre afin de reconnaître d'autres types d'objets, il suffit d'en " "créer une sous-classe et d'implémenter une nouvelle méthode :meth:`default` " -"qui renvoie un objet sérialisable pour ``o`` si cela est possible, ou bien " -"il convient d'appeler l'implémentation de la classe mère (pour lever une :" -"exc:`TypeError`)." +"qui renvoie un objet sérialisable pour ``o`` si cela est possible, ou bien il " +"convient d'appeler l'implémentation de la classe mère (pour lever une :exc:" +"`TypeError`)." #: library/json.rst:425 msgid "" "If *skipkeys* is false (the default), a :exc:`TypeError` will be raised when " -"trying to encode keys that are not :class:`str`, :class:`int`, :class:" -"`float` or ``None``. If *skipkeys* is true, such items are simply skipped." +"trying to encode keys that are not :class:`str`, :class:`int`, :class:`float` " +"or ``None``. If *skipkeys* is true, such items are simply skipped." msgstr "" "Si *skipkeys* vaut ``False`` (valeur par défaut), une :exc:`TypeError` est " "levée si la clé encodée n'est pas de type :class:`str`, :class:`int`, :class:" -"`float` or ``None``. Si *skipkeys* vaut ``True``, ces éléments sont " -"simplement ignorés." +"`float` or ``None``. Si *skipkeys* vaut ``True``, ces éléments sont simplement " +"ignorés." #: library/json.rst:433 msgid "" @@ -669,11 +660,10 @@ msgid "" "prevent an infinite recursion (which would cause an :exc:`OverflowError`). " "Otherwise, no such check takes place." msgstr "" -"Si *check_circular* vaut ``True`` (valeur par défaut), une vérification a " -"lieu sur les listes, dictionnaires et objets personnalisés, afin de détecter " -"les références circulaires et éviter les récursions infinies (qui " -"causeraient une :exc:`OverflowError`). Autrement, la vérification n'a pas " -"lieu." +"Si *check_circular* vaut ``True`` (valeur par défaut), une vérification a lieu " +"sur les listes, dictionnaires et objets personnalisés, afin de détecter les " +"références circulaires et éviter les récursions infinies (qui causeraient une :" +"exc:`OverflowError`). Autrement, la vérification n'a pas lieu." #: library/json.rst:438 msgid "" @@ -682,17 +672,16 @@ msgid "" "compliant, but is consistent with most JavaScript based encoders and " "decoders. Otherwise, it will be a :exc:`ValueError` to encode such floats." msgstr "" -"Si *allow_nan* vaut ``True`` (valeur par défaut), alors ``NaN``, " -"``Infinity`` et ``-Infinity`` sont encodés comme tels. Ce comportement ne " -"respecte pas la spécification JSON, mais est cohérent avec le majorité des " -"encodeurs-décodeurs JavaScript. Autrement, une :exc:`ValueError` est levée " -"pour de telles valeurs." +"Si *allow_nan* vaut ``True`` (valeur par défaut), alors ``NaN``, ``Infinity`` " +"et ``-Infinity`` sont encodés comme tels. Ce comportement ne respecte pas la " +"spécification JSON, mais est cohérent avec le majorité des encodeurs-décodeurs " +"JavaScript. Autrement, une :exc:`ValueError` est levée pour de telles valeurs." #: library/json.rst:444 msgid "" "If *sort_keys* is true (default: ``False``), then the output of dictionaries " -"will be sorted by key; this is useful for regression tests to ensure that " -"JSON serializations can be compared on a day-to-day basis." +"will be sorted by key; this is useful for regression tests to ensure that JSON " +"serializations can be compared on a day-to-day basis." msgstr "" "Si *sort_keys* vaut ``True`` (``False`` par défaut), alors les dictionnaires " "sont triés par clés en sortie ; cela est utile lors de tests de régression " @@ -700,9 +689,8 @@ msgstr "" #: library/json.rst:477 msgid "" -"Implement this method in a subclass such that it returns a serializable " -"object for *o*, or calls the base implementation (to raise a :exc:" -"`TypeError`)." +"Implement this method in a subclass such that it returns a serializable object " +"for *o*, or calls the base implementation (to raise a :exc:`TypeError`)." msgstr "" "Implémentez cette méthode dans une sous-classe afin qu'elle renvoie un objet " "sérialisable pour *o*, ou appelle l'implémentation de base (qui lèvera une :" @@ -721,16 +709,16 @@ msgid "" "Return a JSON string representation of a Python data structure, *o*. For " "example::" msgstr "" -"Renvoie une chaîne JSON représentant la structure de données Python *o*. " -"Par exemple ::" +"Renvoie une chaîne JSON représentant la structure de données Python *o*. Par " +"exemple ::" #: library/json.rst:506 msgid "" "Encode the given object, *o*, and yield each string representation as " "available. For example::" msgstr "" -"Encode l'objet *o* donné, et produit chaque chaîne représentant l'objet " -"selon disponibilité. Par exemple ::" +"Encode l'objet *o* donné, et produit chaque chaîne représentant l'objet selon " +"disponibilité. Par exemple ::" #: library/json.rst:514 msgid "Exceptions" @@ -767,18 +755,17 @@ msgstr "Conformité au standard et Interopérabilité" #: library/json.rst:546 msgid "" -"The JSON format is specified by :rfc:`7159` and by `ECMA-404 `_. This section " -"details this module's level of compliance with the RFC. For simplicity, :" -"class:`JSONEncoder` and :class:`JSONDecoder` subclasses, and parameters " -"other than those explicitly mentioned, are not considered." +"The JSON format is specified by :rfc:`7159` and by `ECMA-404 `_. This section details " +"this module's level of compliance with the RFC. For simplicity, :class:" +"`JSONEncoder` and :class:`JSONDecoder` subclasses, and parameters other than " +"those explicitly mentioned, are not considered." msgstr "" -"Le format JSON est décrit par la :rfc:`7159` et le standard `ECMA-404 " -"`_. " -"Cette section détaille la conformité à la RFC au niveau du module. Pour " -"faire simple, les sous-classes de :class:`JSONEncoder` et :class:" -"`JSONDecoder`, et les paramètres autres que ceux explicitement mentionnés ne " -"sont pas considérés." +"Le format JSON est décrit par la :rfc:`7159` et le standard `ECMA-404 `_. Cette " +"section détaille la conformité à la RFC au niveau du module. Pour faire " +"simple, les sous-classes de :class:`JSONEncoder` et :class:`JSONDecoder`, et " +"les paramètres autres que ceux explicitement mentionnés ne sont pas considérés." #: library/json.rst:552 msgid "" @@ -797,14 +784,14 @@ msgid "" "Repeated names within an object are accepted, and only the value of the last " "name-value pair is used." msgstr "" -"Les noms répétés au sein d'un objet sont acceptés, seule la valeur du " -"dernier couple nom-valeur est utilisée." +"Les noms répétés au sein d'un objet sont acceptés, seule la valeur du dernier " +"couple nom-valeur est utilisée." #: library/json.rst:559 msgid "" -"Since the RFC permits RFC-compliant parsers to accept input texts that are " -"not RFC-compliant, this module's deserializer is technically RFC-compliant " -"under default settings." +"Since the RFC permits RFC-compliant parsers to accept input texts that are not " +"RFC-compliant, this module's deserializer is technically RFC-compliant under " +"default settings." msgstr "" "Comme la RFC permet aux analyseurs conformes d'accepter en entrée des textes " "non conformes, le désérialiseur de ce module avec ses paramètres par défaut " @@ -817,8 +804,7 @@ msgstr "Encodage des caractères" #: library/json.rst:566 msgid "" "The RFC requires that JSON be represented using either UTF-8, UTF-16, or " -"UTF-32, with UTF-8 being the recommended default for maximum " -"interoperability." +"UTF-32, with UTF-8 being the recommended default for maximum interoperability." msgstr "" "La RFC requiert que le JSON soit représenté en utilisant l'encodage UTF-8, " "UTF-16 ou UTF-32, avec UTF-8 recommandé par défaut pour une interopérabilité " @@ -827,20 +813,18 @@ msgstr "" #: library/json.rst:569 msgid "" "As permitted, though not required, by the RFC, this module's serializer sets " -"*ensure_ascii=True* by default, thus escaping the output so that the " -"resulting strings only contain ASCII characters." +"*ensure_ascii=True* by default, thus escaping the output so that the resulting " +"strings only contain ASCII characters." msgstr "" "Comme cela est permis par la RFC, bien que non requis, le sérialiseur du " "module active *ensure_ascii=True* par défaut, échappant ainsi la sortie de " -"façon à ce que les chaînes résultants ne contiennent que des caractères " -"ASCII." +"façon à ce que les chaînes résultants ne contiennent que des caractères ASCII." #: library/json.rst:573 msgid "" "Other than the *ensure_ascii* parameter, this module is defined strictly in " -"terms of conversion between Python objects and :class:`Unicode strings " -"`, and thus does not otherwise directly address the issue of character " -"encodings." +"terms of conversion between Python objects and :class:`Unicode strings `, " +"and thus does not otherwise directly address the issue of character encodings." msgstr "" "Outre le paramètre *ensure_ascii*, les conversions entre objets Python et :" "class:`chaînes Unicode ` de ce module sont strictement définies, et ne " @@ -848,17 +832,17 @@ msgstr "" #: library/json.rst:578 msgid "" -"The RFC prohibits adding a byte order mark (BOM) to the start of a JSON " -"text, and this module's serializer does not add a BOM to its output. The RFC " -"permits, but does not require, JSON deserializers to ignore an initial BOM " -"in their input. This module's deserializer raises a :exc:`ValueError` when " -"an initial BOM is present." +"The RFC prohibits adding a byte order mark (BOM) to the start of a JSON text, " +"and this module's serializer does not add a BOM to its output. The RFC " +"permits, but does not require, JSON deserializers to ignore an initial BOM in " +"their input. This module's deserializer raises a :exc:`ValueError` when an " +"initial BOM is present." msgstr "" -"La RFC interdit d'ajouter un octet marqueur d'ordre (*byte mark order* ou " -"BOM) au début du texte JSON, et le sérialiseur de ce module n'ajoute pas de " -"tel BOM. La RFC permet, mais ne requiert pas, que les désérialiseurs JSON " -"ignorent ces BOM. Le désérialiseur de ce module lève une :exc:`ValueError` " -"quand un BOM est présent au début du fichier." +"La RFC interdit d'ajouter un octet marqueur d'ordre (*byte mark order* ou BOM) " +"au début du texte JSON, et le sérialiseur de ce module n'ajoute pas de tel " +"BOM. La RFC permet, mais ne requiert pas, que les désérialiseurs JSON ignorent " +"ces BOM. Le désérialiseur de ce module lève une :exc:`ValueError` quand un " +"BOM est présent au début du fichier." #: library/json.rst:584 msgid "" @@ -871,9 +855,9 @@ msgstr "" "La RFC n'interdit pas explicitement les chaînes JSON contenant des séquences " "d'octets ne correspondant à aucun caractère Unicode valide (p. ex. les " "*surrogates* UTF-16 sans correspondance), mais précise que cela peut causer " -"des problèmes d'interopérabilité. Par défaut, ce module accepte et " -"retranscrit (quand présents dans la :class:`str` originale) les *code " -"points* de telles séquences." +"des problèmes d'interopérabilité. Par défaut, ce module accepte et retranscrit " +"(quand présents dans la :class:`str` originale) les *code points* de telles " +"séquences." #: library/json.rst:592 msgid "Infinite and NaN Number Values" @@ -893,8 +877,8 @@ msgstr "" #: library/json.rst:609 msgid "" "In the serializer, the *allow_nan* parameter can be used to alter this " -"behavior. In the deserializer, the *parse_constant* parameter can be used " -"to alter this behavior." +"behavior. In the deserializer, the *parse_constant* parameter can be used to " +"alter this behavior." msgstr "" "Dans le sérialiseur, le paramètre *allow_nan* peut être utilisé pour altérer " "ce comportement. Dans le désérialiseur, le paramètre *parse_constant* peut " @@ -908,13 +892,13 @@ msgstr "Noms répétés au sein d'un objet" msgid "" "The RFC specifies that the names within a JSON object should be unique, but " "does not mandate how repeated names in JSON objects should be handled. By " -"default, this module does not raise an exception; instead, it ignores all " -"but the last name-value pair for a given name::" +"default, this module does not raise an exception; instead, it ignores all but " +"the last name-value pair for a given name::" msgstr "" -"La RFC précise que les noms au sein d'un objet JSON doivent être uniques, " -"mais ne décrit pas comment les noms répétés doivent être gérés. Par défaut, " -"ce module ne lève pas d'exception ; à la place, il ignore tous les couples " -"nom-valeur sauf le dernier pour un nom donné ::" +"La RFC précise que les noms au sein d'un objet JSON doivent être uniques, mais " +"ne décrit pas comment les noms répétés doivent être gérés. Par défaut, ce " +"module ne lève pas d'exception ; à la place, il ignore tous les couples nom-" +"valeur sauf le dernier pour un nom donné ::" #: library/json.rst:626 msgid "The *object_pairs_hook* parameter can be used to alter this behavior." @@ -932,15 +916,15 @@ msgid "" "the top-level value of a JSON text must be either a JSON object or array " "(Python :class:`dict` or :class:`list`), and could not be a JSON null, " "boolean, number, or string value. :rfc:`7159` removed that restriction, and " -"this module does not and has never implemented that restriction in either " -"its serializer or its deserializer." +"this module does not and has never implemented that restriction in either its " +"serializer or its deserializer." msgstr "" "L'ancienne version de JSON définie par l'obsolète :rfc:`4627` demandait à ce " "que la valeur de plus haut niveau du texte JSON soit un objet ou un tableau " "JSON (:class:`dict` ou :class:`list` Python), et ne soit pas *null*, un " "nombre, ou une chaîne de caractères. La :rfc:`7159` a supprimé cette " -"restriction, jamais implémentée par ce module, que ce soit dans le " -"sérialiseur ou le désérialiseur." +"restriction, jamais implémentée par ce module, que ce soit dans le sérialiseur " +"ou le désérialiseur." #: library/json.rst:639 msgid "" @@ -986,13 +970,13 @@ msgstr "" #: library/json.rst:656 msgid "" -"When serializing to JSON, beware any such limitations in applications that " -"may consume your JSON. In particular, it is common for JSON numbers to be " +"When serializing to JSON, beware any such limitations in applications that may " +"consume your JSON. In particular, it is common for JSON numbers to be " "deserialized into IEEE 754 double precision numbers and thus subject to that " -"representation's range and precision limitations. This is especially " -"relevant when serializing Python :class:`int` values of extremely large " -"magnitude, or when serializing instances of \"exotic\" numerical types such " -"as :class:`decimal.Decimal`." +"representation's range and precision limitations. This is especially relevant " +"when serializing Python :class:`int` values of extremely large magnitude, or " +"when serializing instances of \"exotic\" numerical types such as :class:" +"`decimal.Decimal`." msgstr "" "Lors d'une sérialisation JSON, faites attention à ces limitations dans les " "applications qui utilisent votre JSON. En particulier, il est courant pour " @@ -1020,12 +1004,11 @@ msgstr "" #: library/json.rst:681 msgid "" -"If the optional ``infile`` and ``outfile`` arguments are not specified, :" -"attr:`sys.stdin` and :attr:`sys.stdout` will be used respectively:" +"If the optional ``infile`` and ``outfile`` arguments are not specified, :attr:" +"`sys.stdin` and :attr:`sys.stdout` will be used respectively:" msgstr "" -"Si les arguments optionnels ``infile`` et ``outfile`` ne sont pas " -"spécifiés, :attr:`sys.stdin` et :attr:`sys.stdout` sont utilisés " -"respectivement :" +"Si les arguments optionnels ``infile`` et ``outfile`` ne sont pas spécifiés, :" +"attr:`sys.stdin` et :attr:`sys.stdout` sont utilisés respectivement :" #: library/json.rst:693 msgid "" @@ -1066,8 +1049,8 @@ msgid "" "Disable escaping of non-ascii characters, see :func:`json.dumps` for more " "information." msgstr "" -"Désactive l’échappement des caractères non ASCII, voir :func:`json.dumps` " -"pour plus d'informations." +"Désactive l’échappement des caractères non ASCII, voir :func:`json.dumps` pour " +"plus d'informations." #: library/json.rst:741 msgid "Parse every input line as separate JSON object." @@ -1087,16 +1070,16 @@ msgstr "Notes" #: library/json.rst:758 msgid "" -"As noted in `the errata for RFC 7159 `_, JSON permits literal U+2028 (LINE SEPARATOR) " -"and U+2029 (PARAGRAPH SEPARATOR) characters in strings, whereas JavaScript " -"(as of ECMAScript Edition 5.1) does not." +"As noted in `the errata for RFC 7159 `_, JSON permits literal U+2028 (LINE SEPARATOR) and U+2029 " +"(PARAGRAPH SEPARATOR) characters in strings, whereas JavaScript (as of " +"ECMAScript Edition 5.1) does not." msgstr "" "Comme noté dans `l'errata de la RFC 7159 `_, JSON autorise les caractères littéraux U+2028 " "(*LINE SEPARATOR*) et U+2029 (*PARAGRAPH SEPARATOR*) dans les chaînes de " -"caractères, alors que Javascript (selon le standard ECMAScript édition 5.1) " -"ne le permet pas." +"caractères, alors que Javascript (selon le standard ECMAScript édition 5.1) ne " +"le permet pas." #~ msgid "*encoding* keyword argument." #~ msgstr "L'argument nommé *encodage*." From a635cb58b995b9720acfaddeae089b69afe79a69 Mon Sep 17 00:00:00 2001 From: Caliendo Julien Date: Mon, 19 Apr 2021 01:11:23 +0200 Subject: [PATCH 08/19] L'orthographe c'est important --- library/json.po | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/json.po b/library/json.po index a2b3c3186..05707f8a7 100644 --- a/library/json.po +++ b/library/json.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-03-19 16:59+0100\n" -"PO-Revision-Date: 2021-04-19 01:07+0200\n" +"PO-Revision-Date: 2021-04-19 01:11+0200\n" "Last-Translator: Caliendo Julien \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -534,7 +534,7 @@ msgstr "" "Si *object_hook* est spécifiée, elle est appelée avec le résultat de chaque " "objet JSON décodé et sa valeur de retour est utilisée à la place du :class:" "`dict` fourni. Cette fonctionnalité peut être utilisée pour implémenter des " -"décodeurs personnalisés (p. ex supportter les indices de classe de `JSON-RPC " +"décodeurs personnalisés (p. ex supporter les indices de classe de `JSON-RPC " "`_." #: library/json.rst:338 From 5bc9c6763f83c8fb9e6eead340afcf837d3535ed Mon Sep 17 00:00:00 2001 From: Caliendo Julien Date: Mon, 19 Apr 2021 01:34:21 +0200 Subject: [PATCH 09/19] Lignes moins longues --- library/json.po | 42 ++++++++++++++++++++---------------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/library/json.po b/library/json.po index 05707f8a7..b8d9673e5 100644 --- a/library/json.po +++ b/library/json.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-03-19 16:59+0100\n" -"PO-Revision-Date: 2021-04-19 01:11+0200\n" +"PO-Revision-Date: 2021-04-19 01:33+0200\n" "Last-Translator: Caliendo Julien \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -37,8 +37,7 @@ msgstr "" "www.ecma-international.org/publications/standards/Ecma-404.htm>`_, est un " "format très simple d'échange de données inspiré par la syntaxe des objets " "littéraux de `JavaScript `_ (bien " -"que ce ne soit pas au sens propre un sous-ensemble de Javascript [#rfc-" -"errata]_ )." +"que ce ne soit pas un sous-ensemble de Javascript [#rfc-errata]_ )." #: library/json.rst:21 msgid "" @@ -112,10 +111,10 @@ msgid "" "`collections.OrderedDict` for JSON generation and parsing." msgstr "" "Avant Python 3.7, :class:`dict` n'était pas garanti d'être ordonné, donc les " -"entrées et sorties étaient généralement mélangées à moins d'utiliser " -"explicitement un :class:`collections.OrderedDict`. À partir de Python 3.7, un :" -"class:`dict` conserve son ordre, il n'est donc plus nécessaire d'utiliser un :" -"class:`collections.OrderedDict` pour générer et analyser du JSON." +"entrées et sorties étaient mélangées à moins d'utiliser explicitement un :" +"class:`collections.OrderedDict`. Depuis Python 3.7, un :class:`dict` conserve " +"son ordre, il n'est donc plus nécessaire d'utiliser un :class:`collections." +"OrderedDict` pour générer et analyser du JSON." #: library/json.rst:137 msgid "Basic Usage" @@ -126,9 +125,9 @@ msgid "" "Serialize *obj* as a JSON formatted stream to *fp* (a ``.write()``-supporting :" "term:`file-like object`) using this :ref:`conversion table `." msgstr "" -"Sérialise *obj* en un flux JSON dans *fp* (un :term:`objet compatible fichier " -"` prenant en charge ``.write()``), en utilisant cette :ref:" -"`table de conversion `." +"Sérialise *obj* en un flux JSON dans *fp* (un :term:`objet fichier ` prenant en charge ``.write()``), en utilisant cette :ref:`table de " +"conversion `." #: library/json.rst:148 msgid "" @@ -156,9 +155,9 @@ msgid "" "incoming non-ASCII characters escaped. If *ensure_ascii* is false, these " "characters will be output as-is." msgstr "" -"Si *ensure_ascii* vaut ``True`` (valeur par défaut), il est garanti que les " -"caractères non ASCII soient tous échappés à la sortie. Si *ensure_ascii* vaut " -"``False``, ces caractères sont écrits tels quels." +"Si *ensure_ascii* vaut ``True`` (valeur par défaut), les caractères non ASCII " +"sont tous échappés à la sortie. Si *ensure_ascii* vaut ``False``, ils sont " +"écrits tels quels." #: library/json.rst:160 msgid "" @@ -168,7 +167,7 @@ msgid "" msgstr "" "Si *check_circular* vaut ``False`` (``True`` par défaut), la vérification des " "références circulaires pour les conteneurs est ignorée, et une référence " -"circulaire résulte en une :exc:`OverflowError` (ou pire)." +"circulaire lève une :exc:`OverflowError` (ou pire)." #: library/json.rst:164 msgid "" @@ -180,9 +179,9 @@ msgid "" msgstr "" "Si *allow_nan* vaut ``False`` (``True`` par défaut), une :exc:`ValueError` est " "levée lors de la sérialisation de valeurs :class:`float` extérieures aux " -"bornes (``nan``, ``inf``, ``-inf``), en respect strict de la spécification " -"JSON. Si *allow_nan* vaut ``True``, leurs équivalents JavaScript (``NaN``, " -"``Infinity``, ``-Infinity``) sont utilisés." +"bornes (``nan``, ``inf``, ``-inf``), en respect avec la spécification JSON. Si " +"*allow_nan* vaut ``True``, les équivalents JavaScript (``NaN``, ``Infinity``, " +"``-Infinity``) sont utilisés." #: library/json.rst:448 msgid "" @@ -216,7 +215,7 @@ msgstr "" "Si spécifié, *separators* doit être un *n*-uplet ``(item_separator, " "key_separator)``. Sa valeur par défaut est ``(', ', ': ')`` si *indent* est " "``None``, et ``(',', ': ')`` autrement. Pour obtenir la représentation JSON " -"la plus compacte possible, passez ``(',', ':')`` pour éliminer les espacements." +"la plus compacte possible, passez ``(',', ':')`` pour éliminer les espaces." #: library/json.rst:463 msgid "Use ``(',', ': ')`` as default if *indent* is not ``None``." @@ -229,11 +228,10 @@ msgid "" "the object or raise a :exc:`TypeError`. If not specified, :exc:`TypeError` is " "raised." msgstr "" -"Si spécifié, *default* doit être une fonction qui sera appelée pour les objets " +"Si spécifié, *default* doit être une fonction qui est appelée pour les objets " "qui ne peuvent être sérialisés autrement. Elle doit renvoyer une " -"représentation de l'objet sérialisable en JSON ou lever une :exc:`TypeError`. " -"Si non spécifié, une :exc:`TypeError` est levée pour les types non " -"sérialisables." +"représentation de l'objet en JSON ou lever une :exc:`TypeError`. Si non " +"spécifié, une :exc:`TypeError` est levée." #: library/json.rst:193 msgid "" From 5ba60a3ee19fbc87d645841c792eefb177436d0c Mon Sep 17 00:00:00 2001 From: Caliendo Julien Date: Mon, 19 Apr 2021 17:18:47 +0200 Subject: [PATCH 10/19] =?UTF-8?q?Lignes=20<=2079=20caract=C3=A8res?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/json.po | 461 +++++++++++++++++++++++++----------------------- 1 file changed, 238 insertions(+), 223 deletions(-) diff --git a/library/json.po b/library/json.po index b8d9673e5..4cac2952b 100644 --- a/library/json.po +++ b/library/json.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-03-19 16:59+0100\n" -"PO-Revision-Date: 2021-04-19 01:33+0200\n" +"PO-Revision-Date: 2021-04-19 17:17+0200\n" "Last-Translator: Caliendo Julien \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -28,16 +28,16 @@ msgid "" "`JSON (JavaScript Object Notation) `_, specified by :rfc:" "`7159` (which obsoletes :rfc:`4627`) and by `ECMA-404 `_, is a lightweight " -"data interchange format inspired by `JavaScript `_ object literal syntax (although it is not a strict subset of " -"JavaScript [#rfc-errata]_ )." +"data interchange format inspired by `JavaScript `_ object literal syntax (although it is not a strict subset " +"of JavaScript [#rfc-errata]_ )." msgstr "" "`JSON (JavaScript Object Notation) `_, décrit par la :rfc:" -"`7159` (qui rend la :rfc:`4627` obsolète) et par le standard `ECMA-404 `_, est un " -"format très simple d'échange de données inspiré par la syntaxe des objets " -"littéraux de `JavaScript `_ (bien " -"que ce ne soit pas un sous-ensemble de Javascript [#rfc-errata]_ )." +"`7159` (qui rend la :rfc:`4627` obsolète) et par le standard `ECMA-404 " +"`_, " +"est un format très simple d'échange de données inspiré par la syntaxe des " +"objets littéraux de `JavaScript `_ " +"(bien que ce ne soit pas un sous-ensemble de Javascript [#rfc-errata]_ )." #: library/json.rst:21 msgid "" @@ -83,10 +83,10 @@ msgstr "Voir :ref:`json-commandline` pour une documentation détaillée." #: library/json.rst:118 msgid "" -"JSON is a subset of `YAML `_ 1.2. The JSON produced by this " -"module's default settings (in particular, the default *separators* value) is " -"also a subset of YAML 1.0 and 1.1. This module can thus also be used as a " -"YAML serializer." +"JSON is a subset of `YAML `_ 1.2. The JSON produced by " +"this module's default settings (in particular, the default *separators* " +"value) is also a subset of YAML 1.0 and 1.1. This module can thus also be " +"used as a YAML serializer." msgstr "" "JSON est un sous-ensemble de `YAML `_ 1.2. Le JSON produit " "par les paramètres par défaut de ce module (en particulier, la valeur par " @@ -104,17 +104,17 @@ msgstr "" #: library/json.rst:128 msgid "" -"Prior to Python 3.7, :class:`dict` was not guaranteed to be ordered, so inputs " -"and outputs were typically scrambled unless :class:`collections.OrderedDict` " -"was specifically requested. Starting with Python 3.7, the regular :class:" -"`dict` became order preserving, so it is no longer necessary to specify :class:" -"`collections.OrderedDict` for JSON generation and parsing." +"Prior to Python 3.7, :class:`dict` was not guaranteed to be ordered, so " +"inputs and outputs were typically scrambled unless :class:`collections." +"OrderedDict` was specifically requested. Starting with Python 3.7, the " +"regular :class:`dict` became order preserving, so it is no longer necessary " +"to specify :class:`collections.OrderedDict` for JSON generation and parsing." msgstr "" "Avant Python 3.7, :class:`dict` n'était pas garanti d'être ordonné, donc les " "entrées et sorties étaient mélangées à moins d'utiliser explicitement un :" -"class:`collections.OrderedDict`. Depuis Python 3.7, un :class:`dict` conserve " -"son ordre, il n'est donc plus nécessaire d'utiliser un :class:`collections." -"OrderedDict` pour générer et analyser du JSON." +"class:`collections.OrderedDict`. Depuis Python 3.7, un :class:`dict` " +"conserve son ordre, il n'est donc plus nécessaire d'utiliser un :class:" +"`collections.OrderedDict` pour générer et analyser du JSON." #: library/json.rst:137 msgid "Basic Usage" @@ -122,12 +122,13 @@ msgstr "Utilisation de base" #: library/json.rst:144 msgid "" -"Serialize *obj* as a JSON formatted stream to *fp* (a ``.write()``-supporting :" -"term:`file-like object`) using this :ref:`conversion table `." +"Serialize *obj* as a JSON formatted stream to *fp* (a ``.write()``-" +"supporting :term:`file-like object`) using this :ref:`conversion table `." msgstr "" -"Sérialise *obj* en un flux JSON dans *fp* (un :term:`objet fichier ` prenant en charge ``.write()``), en utilisant cette :ref:`table de " -"conversion `." +"Sérialise *obj* en un flux JSON dans *fp* (un :term:`objet fichier ` prenant en charge ``.write()``), en utilisant cette :ref:" +"`table de conversion `." #: library/json.rst:148 msgid "" @@ -151,22 +152,22 @@ msgstr "" #: library/json.rst:429 msgid "" -"If *ensure_ascii* is true (the default), the output is guaranteed to have all " -"incoming non-ASCII characters escaped. If *ensure_ascii* is false, these " -"characters will be output as-is." +"If *ensure_ascii* is true (the default), the output is guaranteed to have " +"all incoming non-ASCII characters escaped. If *ensure_ascii* is false, " +"these characters will be output as-is." msgstr "" -"Si *ensure_ascii* vaut ``True`` (valeur par défaut), les caractères non ASCII " -"sont tous échappés à la sortie. Si *ensure_ascii* vaut ``False``, ils sont " -"écrits tels quels." +"Si *ensure_ascii* vaut ``True`` (valeur par défaut), les caractères non " +"ASCII sont tous échappés à la sortie. Si *ensure_ascii* vaut ``False``, ils " +"sont écrits tels quels." #: library/json.rst:160 msgid "" -"If *check_circular* is false (default: ``True``), then the circular reference " -"check for container types will be skipped and a circular reference will result " -"in an :exc:`OverflowError` (or worse)." +"If *check_circular* is false (default: ``True``), then the circular " +"reference check for container types will be skipped and a circular reference " +"will result in an :exc:`OverflowError` (or worse)." msgstr "" -"Si *check_circular* vaut ``False`` (``True`` par défaut), la vérification des " -"références circulaires pour les conteneurs est ignorée, et une référence " +"Si *check_circular* vaut ``False`` (``True`` par défaut), la vérification " +"des références circulaires pour les conteneurs est ignorée, et une référence " "circulaire lève une :exc:`OverflowError` (ou pire)." #: library/json.rst:164 @@ -177,20 +178,20 @@ msgid "" "*allow_nan* is true, their JavaScript equivalents (``NaN``, ``Infinity``, ``-" "Infinity``) will be used." msgstr "" -"Si *allow_nan* vaut ``False`` (``True`` par défaut), une :exc:`ValueError` est " -"levée lors de la sérialisation de valeurs :class:`float` extérieures aux " -"bornes (``nan``, ``inf``, ``-inf``), en respect avec la spécification JSON. Si " -"*allow_nan* vaut ``True``, les équivalents JavaScript (``NaN``, ``Infinity``, " -"``-Infinity``) sont utilisés." +"Si *allow_nan* vaut ``False`` (``True`` par défaut), une :exc:`ValueError` " +"est levée lors de la sérialisation de valeurs :class:`float` extérieures aux " +"bornes (``nan``, ``inf``, ``-inf``), en respect avec la spécification JSON. " +"Si *allow_nan* vaut ``True``, les équivalents JavaScript (``NaN``, " +"``Infinity``, ``-Infinity``) sont utilisés." #: library/json.rst:448 msgid "" -"If *indent* is a non-negative integer or string, then JSON array elements and " -"object members will be pretty-printed with that indent level. An indent level " -"of 0, negative, or ``\"\"`` will only insert newlines. ``None`` (the default) " -"selects the most compact representation. Using a positive integer indent " -"indents that many spaces per level. If *indent* is a string (such as ``\"\\t" -"\"``), that string is used to indent each level." +"If *indent* is a non-negative integer or string, then JSON array elements " +"and object members will be pretty-printed with that indent level. An indent " +"level of 0, negative, or ``\"\"`` will only insert newlines. ``None`` (the " +"default) selects the most compact representation. Using a positive integer " +"indent indents that many spaces per level. If *indent* is a string (such as " +"``\"\\t\"``), that string is used to indent each level." msgstr "" "Si *indent* est un nombre entier positif ou une chaîne de caractères, les " "éléments de tableaux et les membres d'objets JSON sont affichés élégamment " @@ -208,8 +209,8 @@ msgstr "Autorise les chaînes en plus des nombres entiers pour *indent*." #: library/json.rst:458 msgid "" "If specified, *separators* should be an ``(item_separator, key_separator)`` " -"tuple. The default is ``(', ', ': ')`` if *indent* is ``None`` and ``(',', ': " -"')`` otherwise. To get the most compact JSON representation, you should " +"tuple. The default is ``(', ', ': ')`` if *indent* is ``None`` and ``(',', " +"': ')`` otherwise. To get the most compact JSON representation, you should " "specify ``(',', ':')`` to eliminate whitespace." msgstr "" "Si spécifié, *separators* doit être un *n*-uplet ``(item_separator, " @@ -223,13 +224,13 @@ msgstr "Utilise ``(',', ': ')`` par défaut si *indent* n'est pas ``None``." #: library/json.rst:466 msgid "" -"If specified, *default* should be a function that gets called for objects that " -"can't otherwise be serialized. It should return a JSON encodable version of " -"the object or raise a :exc:`TypeError`. If not specified, :exc:`TypeError` is " -"raised." +"If specified, *default* should be a function that gets called for objects " +"that can't otherwise be serialized. It should return a JSON encodable " +"version of the object or raise a :exc:`TypeError`. If not specified, :exc:" +"`TypeError` is raised." msgstr "" -"Si spécifié, *default* doit être une fonction qui est appelée pour les objets " -"qui ne peuvent être sérialisés autrement. Elle doit renvoyer une " +"Si spécifié, *default* doit être une fonction qui est appelée pour les " +"objets qui ne peuvent être sérialisés autrement. Elle doit renvoyer une " "représentation de l'objet en JSON ou lever une :exc:`TypeError`. Si non " "spécifié, une :exc:`TypeError` est levée." @@ -249,25 +250,26 @@ msgid "" msgstr "" "Pour utiliser une sous-classe :class:`JSONEncoder` personnalisée (p. ex. une " "qui redéfinit la méthode :meth:`default` pour sérialiser des types " -"additionnels), spécifiez-la avec le paramètre nommé *cls* ; autrement, :class:" -"`JSONEncoder` est utilisée." +"additionnels), spécifiez-la avec le paramètre nommé *cls* ; autrement, :" +"class:`JSONEncoder` est utilisée." #: library/json.rst:273 msgid "" "All optional parameters are now :ref:`keyword-only `." msgstr "" -"Tous les paramètres optionnels sont maintenant des :ref:`keyword-only `." +"Tous les paramètres optionnels sont maintenant des :ref:`keyword-only " +"`." #: library/json.rst:205 msgid "" "Unlike :mod:`pickle` and :mod:`marshal`, JSON is not a framed protocol, so " -"trying to serialize multiple objects with repeated calls to :func:`dump` using " -"the same *fp* will result in an invalid JSON file." +"trying to serialize multiple objects with repeated calls to :func:`dump` " +"using the same *fp* will result in an invalid JSON file." msgstr "" "À l'inverse de :mod:`pickle` et :mod:`marshal`, JSON n'est pas un protocole " -"par trames, donc essayer de sérialiser plusieurs objets par des appels répétés " -"à :func:`dump` en utilisant le même *fp* résulte en un fichier JSON invalide." +"par trames, donc essayer de sérialiser plusieurs objets par des appels " +"répétés à :func:`dump` en utilisant le même *fp* résulte en un fichier JSON " +"invalide." #: library/json.rst:214 msgid "" @@ -275,48 +277,49 @@ msgid "" "table `. The arguments have the same meaning as in :func:" "`dump`." msgstr "" -"Sérialise *obj* en une :class:`str` formatée en JSON, en utilisant cette :ref:" -"`table de conversion `. Les arguments ont la même " +"Sérialise *obj* en une :class:`str` formatée en JSON, en utilisant cette :" +"ref:`table de conversion `. Les arguments ont la même " "signification que ceux de :func:`dump`." #: library/json.rst:220 msgid "" "Keys in key/value pairs of JSON are always of the type :class:`str`. When a " -"dictionary is converted into JSON, all the keys of the dictionary are coerced " -"to strings. As a result of this, if a dictionary is converted into JSON and " -"then back into a dictionary, the dictionary may not equal the original one. " -"That is, ``loads(dumps(x)) != x`` if x has non-string keys." -msgstr "" -"Les clés dans les couples JSON clé-valeur sont toujours de type :class:`str`. " -"Quand un dictionnaire est converti en JSON, toutes les clés du dictionnaire " -"sont transformées en chaînes de caractères. Ce qui fait que si un dictionnaire " -"est converti en JSON et reconverti en dictionnaire, le résultat peut ne pas " -"être égal à l'original. Ainsi, ``loads(dumps(x)) != x`` si x contient des clés " -"qui ne sont pas des chaînes." +"dictionary is converted into JSON, all the keys of the dictionary are " +"coerced to strings. As a result of this, if a dictionary is converted into " +"JSON and then back into a dictionary, the dictionary may not equal the " +"original one. That is, ``loads(dumps(x)) != x`` if x has non-string keys." +msgstr "" +"Les clés dans les couples JSON clé-valeur sont toujours de type :class:" +"`str`. Quand un dictionnaire est converti en JSON, toutes les clés du " +"dictionnaire sont transformées en chaînes de caractères. Ce qui fait que si " +"un dictionnaire est converti en JSON et reconverti en dictionnaire, le " +"résultat peut ne pas être égal à l'original. Ainsi, ``loads(dumps(x)) != x`` " +"si x contient des clés qui ne sont pas des chaînes." #: library/json.rst:229 msgid "" -"Deserialize *fp* (a ``.read()``-supporting :term:`text file` or :term:`binary " -"file` containing a JSON document) to a Python object using this :ref:" +"Deserialize *fp* (a ``.read()``-supporting :term:`text file` or :term:" +"`binary file` containing a JSON document) to a Python object using this :ref:" "`conversion table `." msgstr "" -"Déserialise *fp* (un :term:`text file` ou un :term:`binary file` supportant ``." -"read()`` et contenant un document JSON) vers un objet Python en utilisant " +"Déserialise *fp* (un :term:`text file` ou un :term:`binary file` supportant " +"``.read()`` et contenant un document JSON) vers un objet Python en utilisant " "cette :ref:`table de conversion `." #: library/json.rst:233 msgid "" "*object_hook* is an optional function that will be called with the result of " "any object literal decoded (a :class:`dict`). The return value of " -"*object_hook* will be used instead of the :class:`dict`. This feature can be " -"used to implement custom decoders (e.g. `JSON-RPC `_ " -"class hinting)." +"*object_hook* will be used instead of the :class:`dict`. This feature can " +"be used to implement custom decoders (e.g. `JSON-RPC `_ class hinting)." msgstr "" -"*object_hook* est une fonction optionnelle qui est appelée avec le résultat de " -"chaque objet littéral décodé (chaque :class:`dict`). La valeur de retour de " -"*object_hook* est utilisée à la place du :class:`dict`. Cette fonctionnalité " -"peut être utilisée pour implémenter des décodeurs personnalisés (p. ex. les " -"*class hinting* de `JSON-RPC `_)." +"*object_hook* est une fonction optionnelle qui est appelée avec le résultat " +"de chaque objet littéral décodé (chaque :class:`dict`). La valeur de retour " +"de *object_hook* est utilisée à la place du :class:`dict`. Cette " +"fonctionnalité peut être utilisée pour implémenter des décodeurs " +"personnalisés (p. ex. les *class hinting* de `JSON-RPC `_)." #: library/json.rst:239 msgid "" @@ -328,8 +331,8 @@ msgid "" msgstr "" "*object_pairs_hook* est une fonction optionnelle qui est appelée pour chaque " "objet littéral décodé, avec une liste ordonnée de couples. La valeur de " -"retour de *object_pairs_hook* est utilisée à la place du :class:`dict`. Cette " -"fonctionnalité peut être utilisée pour implémenter des décodeurs " +"retour de *object_pairs_hook* est utilisée à la place du :class:`dict`. " +"Cette fonctionnalité peut être utilisée pour implémenter des décodeurs " "personnalisés. *object_pairs_hook* prend la priorité sur *object_hook*, si " "cette dernière est aussi définie." @@ -344,29 +347,30 @@ msgid "" "This can be used to use another datatype or parser for JSON floats (e.g. :" "class:`decimal.Decimal`)." msgstr "" -"Si *parse_float* est définie, elle est appelée avec chaque nombre réel JSON à " -"décoder, sous forme d'une chaîne de caractères, en argument. Par défaut, elle " -"est équivalente à ``float(num_str)``. Cela peut servir à utiliser un autre " -"type de données ou un autre analyseur pour les nombres réels JSON (p. ex. :" -"class:`decimal.Decimal`)." +"Si *parse_float* est définie, elle est appelée avec chaque nombre réel JSON " +"à décoder, sous forme d'une chaîne de caractères, en argument. Par défaut, " +"elle est équivalente à ``float(num_str)``. Cela peut servir à utiliser un " +"autre type de données ou un autre analyseur pour les nombres réels JSON (p. " +"ex. :class:`decimal.Decimal`)." #: library/json.rst:352 msgid "" -"*parse_int*, if specified, will be called with the string of every JSON int to " -"be decoded. By default, this is equivalent to ``int(num_str)``. This can be " -"used to use another datatype or parser for JSON integers (e.g. :class:`float`)." -msgstr "" -"Si *parse_int* est définie, elle est appelée avec chaque nombre entier JSON à " -"décoder, sous forme d'une chaîne de caractères, en argument. Par défaut, elle " -"est équivalente à ``int(num_str)``. Cela peut servir à utiliser un autre type " -"de données ou un autre analyseur pour les nombres entiers JSON (p. ex. :class:" +"*parse_int*, if specified, will be called with the string of every JSON int " +"to be decoded. By default, this is equivalent to ``int(num_str)``. This " +"can be used to use another datatype or parser for JSON integers (e.g. :class:" "`float`)." +msgstr "" +"Si *parse_int* est définie, elle est appelée avec chaque nombre entier JSON " +"à décoder, sous forme d'une chaîne de caractères, en argument. Par défaut, " +"elle est équivalente à ``int(num_str)``. Cela peut servir à utiliser un " +"autre type de données ou un autre analyseur pour les nombres entiers JSON " +"(p. ex. :class:`float`)." #: library/json.rst:357 msgid "" "*parse_constant*, if specified, will be called with one of the following " -"strings: ``'-Infinity'``, ``'Infinity'``, ``'NaN'``. This can be used to raise " -"an exception if invalid JSON numbers are encountered." +"strings: ``'-Infinity'``, ``'Infinity'``, ``'NaN'``. This can be used to " +"raise an exception if invalid JSON numbers are encountered." msgstr "" "Si *parse_constant* est définie, elle est quand l'une des chaînes de " "caractères suivantes est rencontrée : ``'-Infinity'``, ``'Infinity'`` ou " @@ -383,9 +387,10 @@ msgid "" "kwarg; otherwise :class:`JSONDecoder` is used. Additional keyword arguments " "will be passed to the constructor of the class." msgstr "" -"Pour utiliser une sous-classe :class:`JSONDecoder` personnalisée, spécifiez-la " -"avec l'argument nommé ``cls`` ; autrement, :class:`JSONDecoder` est utilisée. " -"Les arguments nommés additionnels sont passés au constructeur de cette classe." +"Pour utiliser une sous-classe :class:`JSONDecoder` personnalisée, spécifiez-" +"la avec l'argument nommé ``cls`` ; autrement, :class:`JSONDecoder` est " +"utilisée. Les arguments nommés additionnels sont passés au constructeur de " +"cette classe." #: library/json.rst:288 library/json.rst:367 msgid "" @@ -405,9 +410,9 @@ msgstr "" #: library/json.rst:282 msgid "" -"Deserialize *s* (a :class:`str`, :class:`bytes` or :class:`bytearray` instance " -"containing a JSON document) to a Python object using this :ref:`conversion " -"table `." +"Deserialize *s* (a :class:`str`, :class:`bytes` or :class:`bytearray` " +"instance containing a JSON document) to a Python object using this :ref:" +"`conversion table `." msgstr "" "Déserialise *s* (une instance de :class:`str`, :class:`bytes` ou :class:" "`bytearray` contenant un document JSON) vers un objet Python en utilisant " @@ -518,16 +523,16 @@ msgid "" "It also understands ``NaN``, ``Infinity``, and ``-Infinity`` as their " "corresponding ``float`` values, which is outside the JSON spec." msgstr "" -"Les valeurs ``NaN``, ``Infinity`` et ``-Infinity`` sont aussi comprises comme " -"leurs valeurs ``float`` correspondantes, bien que ne faisant pas partie de la " -"spécification JSON." +"Les valeurs ``NaN``, ``Infinity`` et ``-Infinity`` sont aussi comprises " +"comme leurs valeurs ``float`` correspondantes, bien que ne faisant pas " +"partie de la spécification JSON." #: library/json.rst:333 msgid "" "*object_hook*, if specified, will be called with the result of every JSON " -"object decoded and its return value will be used in place of the given :class:" -"`dict`. This can be used to provide custom deserializations (e.g. to support " -"`JSON-RPC `_ class hinting)." +"object decoded and its return value will be used in place of the given :" +"class:`dict`. This can be used to provide custom deserializations (e.g. to " +"support `JSON-RPC `_ class hinting)." msgstr "" "Si *object_hook* est spécifiée, elle est appelée avec le résultat de chaque " "objet JSON décodé et sa valeur de retour est utilisée à la place du :class:" @@ -537,8 +542,8 @@ msgstr "" #: library/json.rst:338 msgid "" -"*object_pairs_hook*, if specified will be called with the result of every JSON " -"object decoded with an ordered list of pairs. The return value of " +"*object_pairs_hook*, if specified will be called with the result of every " +"JSON object decoded with an ordered list of pairs. The return value of " "*object_pairs_hook* will be used instead of the :class:`dict`. This feature " "can be used to implement custom decoders. If *object_hook* is also defined, " "the *object_pairs_hook* takes priority." @@ -547,20 +552,20 @@ msgstr "" "chaque objet JSON décodé avec une liste ordonnée de couples. Sa valeur de " "retour est utilisée à la place du :class:`dict`. Cette fonctionnalité peut " "être utilisée pour implémenter des décodeurs personnalisés. " -"*object_pairs_hook* prend la priorité sur *object_hook*, si cette dernière est " -"aussi définie." +"*object_pairs_hook* prend la priorité sur *object_hook*, si cette dernière " +"est aussi définie." #: library/json.rst:362 msgid "" "If *strict* is false (``True`` is the default), then control characters will " -"be allowed inside strings. Control characters in this context are those with " -"character codes in the 0--31 range, including ``'\\t'`` (tab), ``'\\n'``, " -"``'\\r'`` and ``'\\0'``." +"be allowed inside strings. Control characters in this context are those " +"with character codes in the 0--31 range, including ``'\\t'`` (tab), " +"``'\\n'``, ``'\\r'`` and ``'\\0'``." msgstr "" "Si *strict* vaut ``False`` (``True`` par défaut), alors les caractères de " -"contrôle sont autorisés à l'intérieur des chaînes. Les caractères de contrôle " -"dans ce contexte sont ceux dont les codes sont dans l'intervalle 0--31, " -"incluant ``'\\t'`` (tabulation), ``'\\n'``, ``'\\r'`` et ``'\\0'``." +"contrôle sont autorisés à l'intérieur des chaînes. Les caractères de " +"contrôle dans ce contexte sont ceux dont les codes sont dans l'intervalle " +"0--31, incluant ``'\\t'`` (tabulation), ``'\\n'``, ``'\\r'`` et ``'\\0'``." #: library/json.rst:471 msgid "All parameters are now :ref:`keyword-only `." @@ -570,15 +575,16 @@ msgstr "" #: library/json.rst:375 msgid "" -"Return the Python representation of *s* (a :class:`str` instance containing a " -"JSON document)." +"Return the Python representation of *s* (a :class:`str` instance containing " +"a JSON document)." msgstr "" "Renvoie la représentation Python de *s* (une instance :class:`str` contenant " "un document JSON)." #: library/json.rst:378 msgid "" -":exc:`JSONDecodeError` will be raised if the given JSON document is not valid." +":exc:`JSONDecodeError` will be raised if the given JSON document is not " +"valid." msgstr "" "Une :exc:`JSONDecodeError` est levée si le document JSON donné n'est pas " "valide." @@ -589,8 +595,8 @@ msgid "" "document) and return a 2-tuple of the Python representation and the index in " "*s* where the document ended." msgstr "" -"Décode en document JSON depuis *s* (une instance :class:`str` débutant par un " -"document JSON) et renvoie un *n*-uplet de 2 éléments contenant la " +"Décode en document JSON depuis *s* (une instance :class:`str` débutant par " +"un document JSON) et renvoie un *n*-uplet de 2 éléments contenant la " "représentation Python de l'objet et l'index dans *s* où le document se " "terminait." @@ -625,31 +631,32 @@ msgstr "*number*" #: library/json.rst:417 msgid "Added support for int- and float-derived Enum classes." msgstr "" -"Ajout de la prise en charge des classes *Enum* dérivées d'*int* ou de *float*." +"Ajout de la prise en charge des classes *Enum* dérivées d'*int* ou de " +"*float*." #: library/json.rst:420 msgid "" "To extend this to recognize other objects, subclass and implement a :meth:" "`default` method with another method that returns a serializable object for " -"``o`` if possible, otherwise it should call the superclass implementation (to " -"raise :exc:`TypeError`)." +"``o`` if possible, otherwise it should call the superclass implementation " +"(to raise :exc:`TypeError`)." msgstr "" "Pour l'étendre afin de reconnaître d'autres types d'objets, il suffit d'en " "créer une sous-classe et d'implémenter une nouvelle méthode :meth:`default` " -"qui renvoie un objet sérialisable pour ``o`` si cela est possible, ou bien il " -"convient d'appeler l'implémentation de la classe mère (pour lever une :exc:" -"`TypeError`)." +"qui renvoie un objet sérialisable pour ``o`` si cela est possible, ou bien " +"il convient d'appeler l'implémentation de la classe mère (pour lever une :" +"exc:`TypeError`)." #: library/json.rst:425 msgid "" "If *skipkeys* is false (the default), a :exc:`TypeError` will be raised when " -"trying to encode keys that are not :class:`str`, :class:`int`, :class:`float` " -"or ``None``. If *skipkeys* is true, such items are simply skipped." +"trying to encode keys that are not :class:`str`, :class:`int`, :class:" +"`float` or ``None``. If *skipkeys* is true, such items are simply skipped." msgstr "" "Si *skipkeys* vaut ``False`` (valeur par défaut), une :exc:`TypeError` est " "levée si la clé encodée n'est pas de type :class:`str`, :class:`int`, :class:" -"`float` or ``None``. Si *skipkeys* vaut ``True``, ces éléments sont simplement " -"ignorés." +"`float` or ``None``. Si *skipkeys* vaut ``True``, ces éléments sont " +"simplement ignorés." #: library/json.rst:433 msgid "" @@ -658,10 +665,11 @@ msgid "" "prevent an infinite recursion (which would cause an :exc:`OverflowError`). " "Otherwise, no such check takes place." msgstr "" -"Si *check_circular* vaut ``True`` (valeur par défaut), une vérification a lieu " -"sur les listes, dictionnaires et objets personnalisés, afin de détecter les " -"références circulaires et éviter les récursions infinies (qui causeraient une :" -"exc:`OverflowError`). Autrement, la vérification n'a pas lieu." +"Si *check_circular* vaut ``True`` (valeur par défaut), une vérification a " +"lieu sur les listes, dictionnaires et objets personnalisés, afin de détecter " +"les références circulaires et éviter les récursions infinies (qui " +"causeraient une :exc:`OverflowError`). Autrement, la vérification n'a pas " +"lieu." #: library/json.rst:438 msgid "" @@ -670,16 +678,17 @@ msgid "" "compliant, but is consistent with most JavaScript based encoders and " "decoders. Otherwise, it will be a :exc:`ValueError` to encode such floats." msgstr "" -"Si *allow_nan* vaut ``True`` (valeur par défaut), alors ``NaN``, ``Infinity`` " -"et ``-Infinity`` sont encodés comme tels. Ce comportement ne respecte pas la " -"spécification JSON, mais est cohérent avec le majorité des encodeurs-décodeurs " -"JavaScript. Autrement, une :exc:`ValueError` est levée pour de telles valeurs." +"Si *allow_nan* vaut ``True`` (valeur par défaut), alors ``NaN``, " +"``Infinity`` et ``-Infinity`` sont encodés comme tels. Ce comportement ne " +"respecte pas la spécification JSON, mais est cohérent avec le majorité des " +"encodeurs-décodeurs JavaScript. Autrement, une :exc:`ValueError` est levée " +"pour de telles valeurs." #: library/json.rst:444 msgid "" "If *sort_keys* is true (default: ``False``), then the output of dictionaries " -"will be sorted by key; this is useful for regression tests to ensure that JSON " -"serializations can be compared on a day-to-day basis." +"will be sorted by key; this is useful for regression tests to ensure that " +"JSON serializations can be compared on a day-to-day basis." msgstr "" "Si *sort_keys* vaut ``True`` (``False`` par défaut), alors les dictionnaires " "sont triés par clés en sortie ; cela est utile lors de tests de régression " @@ -687,8 +696,9 @@ msgstr "" #: library/json.rst:477 msgid "" -"Implement this method in a subclass such that it returns a serializable object " -"for *o*, or calls the base implementation (to raise a :exc:`TypeError`)." +"Implement this method in a subclass such that it returns a serializable " +"object for *o*, or calls the base implementation (to raise a :exc:" +"`TypeError`)." msgstr "" "Implémentez cette méthode dans une sous-classe afin qu'elle renvoie un objet " "sérialisable pour *o*, ou appelle l'implémentation de base (qui lèvera une :" @@ -707,16 +717,16 @@ msgid "" "Return a JSON string representation of a Python data structure, *o*. For " "example::" msgstr "" -"Renvoie une chaîne JSON représentant la structure de données Python *o*. Par " -"exemple ::" +"Renvoie une chaîne JSON représentant la structure de données Python *o*. " +"Par exemple ::" #: library/json.rst:506 msgid "" "Encode the given object, *o*, and yield each string representation as " "available. For example::" msgstr "" -"Encode l'objet *o* donné, et produit chaque chaîne représentant l'objet selon " -"disponibilité. Par exemple ::" +"Encode l'objet *o* donné, et produit chaque chaîne représentant l'objet " +"selon disponibilité. Par exemple ::" #: library/json.rst:514 msgid "Exceptions" @@ -753,17 +763,18 @@ msgstr "Conformité au standard et Interopérabilité" #: library/json.rst:546 msgid "" -"The JSON format is specified by :rfc:`7159` and by `ECMA-404 `_. This section details " -"this module's level of compliance with the RFC. For simplicity, :class:" -"`JSONEncoder` and :class:`JSONDecoder` subclasses, and parameters other than " -"those explicitly mentioned, are not considered." +"The JSON format is specified by :rfc:`7159` and by `ECMA-404 `_. This section " +"details this module's level of compliance with the RFC. For simplicity, :" +"class:`JSONEncoder` and :class:`JSONDecoder` subclasses, and parameters " +"other than those explicitly mentioned, are not considered." msgstr "" -"Le format JSON est décrit par la :rfc:`7159` et le standard `ECMA-404 `_. Cette " -"section détaille la conformité à la RFC au niveau du module. Pour faire " -"simple, les sous-classes de :class:`JSONEncoder` et :class:`JSONDecoder`, et " -"les paramètres autres que ceux explicitement mentionnés ne sont pas considérés." +"Le format JSON est décrit par la :rfc:`7159` et le standard `ECMA-404 " +"`_. " +"Cette section détaille la conformité à la RFC au niveau du module. Pour " +"faire simple, les sous-classes de :class:`JSONEncoder` et :class:" +"`JSONDecoder`, et les paramètres autres que ceux explicitement mentionnés ne " +"sont pas considérés." #: library/json.rst:552 msgid "" @@ -782,14 +793,14 @@ msgid "" "Repeated names within an object are accepted, and only the value of the last " "name-value pair is used." msgstr "" -"Les noms répétés au sein d'un objet sont acceptés, seule la valeur du dernier " -"couple nom-valeur est utilisée." +"Les noms répétés au sein d'un objet sont acceptés, seule la valeur du " +"dernier couple nom-valeur est utilisée." #: library/json.rst:559 msgid "" -"Since the RFC permits RFC-compliant parsers to accept input texts that are not " -"RFC-compliant, this module's deserializer is technically RFC-compliant under " -"default settings." +"Since the RFC permits RFC-compliant parsers to accept input texts that are " +"not RFC-compliant, this module's deserializer is technically RFC-compliant " +"under default settings." msgstr "" "Comme la RFC permet aux analyseurs conformes d'accepter en entrée des textes " "non conformes, le désérialiseur de ce module avec ses paramètres par défaut " @@ -802,7 +813,8 @@ msgstr "Encodage des caractères" #: library/json.rst:566 msgid "" "The RFC requires that JSON be represented using either UTF-8, UTF-16, or " -"UTF-32, with UTF-8 being the recommended default for maximum interoperability." +"UTF-32, with UTF-8 being the recommended default for maximum " +"interoperability." msgstr "" "La RFC requiert que le JSON soit représenté en utilisant l'encodage UTF-8, " "UTF-16 ou UTF-32, avec UTF-8 recommandé par défaut pour une interopérabilité " @@ -811,18 +823,20 @@ msgstr "" #: library/json.rst:569 msgid "" "As permitted, though not required, by the RFC, this module's serializer sets " -"*ensure_ascii=True* by default, thus escaping the output so that the resulting " -"strings only contain ASCII characters." +"*ensure_ascii=True* by default, thus escaping the output so that the " +"resulting strings only contain ASCII characters." msgstr "" "Comme cela est permis par la RFC, bien que non requis, le sérialiseur du " "module active *ensure_ascii=True* par défaut, échappant ainsi la sortie de " -"façon à ce que les chaînes résultants ne contiennent que des caractères ASCII." +"façon à ce que les chaînes résultants ne contiennent que des caractères " +"ASCII." #: library/json.rst:573 msgid "" "Other than the *ensure_ascii* parameter, this module is defined strictly in " -"terms of conversion between Python objects and :class:`Unicode strings `, " -"and thus does not otherwise directly address the issue of character encodings." +"terms of conversion between Python objects and :class:`Unicode strings " +"`, and thus does not otherwise directly address the issue of character " +"encodings." msgstr "" "Outre le paramètre *ensure_ascii*, les conversions entre objets Python et :" "class:`chaînes Unicode ` de ce module sont strictement définies, et ne " @@ -830,17 +844,17 @@ msgstr "" #: library/json.rst:578 msgid "" -"The RFC prohibits adding a byte order mark (BOM) to the start of a JSON text, " -"and this module's serializer does not add a BOM to its output. The RFC " -"permits, but does not require, JSON deserializers to ignore an initial BOM in " -"their input. This module's deserializer raises a :exc:`ValueError` when an " -"initial BOM is present." +"The RFC prohibits adding a byte order mark (BOM) to the start of a JSON " +"text, and this module's serializer does not add a BOM to its output. The RFC " +"permits, but does not require, JSON deserializers to ignore an initial BOM " +"in their input. This module's deserializer raises a :exc:`ValueError` when " +"an initial BOM is present." msgstr "" -"La RFC interdit d'ajouter un octet marqueur d'ordre (*byte mark order* ou BOM) " -"au début du texte JSON, et le sérialiseur de ce module n'ajoute pas de tel " -"BOM. La RFC permet, mais ne requiert pas, que les désérialiseurs JSON ignorent " -"ces BOM. Le désérialiseur de ce module lève une :exc:`ValueError` quand un " -"BOM est présent au début du fichier." +"La RFC interdit d'ajouter un octet marqueur d'ordre (*byte mark order* ou " +"BOM) au début du texte JSON, et le sérialiseur de ce module n'ajoute pas de " +"tel BOM. La RFC permet, mais ne requiert pas, que les désérialiseurs JSON " +"ignorent ces BOM. Le désérialiseur de ce module lève une :exc:`ValueError` " +"quand un BOM est présent au début du fichier." #: library/json.rst:584 msgid "" @@ -853,9 +867,9 @@ msgstr "" "La RFC n'interdit pas explicitement les chaînes JSON contenant des séquences " "d'octets ne correspondant à aucun caractère Unicode valide (p. ex. les " "*surrogates* UTF-16 sans correspondance), mais précise que cela peut causer " -"des problèmes d'interopérabilité. Par défaut, ce module accepte et retranscrit " -"(quand présents dans la :class:`str` originale) les *code points* de telles " -"séquences." +"des problèmes d'interopérabilité. Par défaut, ce module accepte et " +"retranscrit (quand présents dans la :class:`str` originale) les *code " +"points* de telles séquences." #: library/json.rst:592 msgid "Infinite and NaN Number Values" @@ -875,8 +889,8 @@ msgstr "" #: library/json.rst:609 msgid "" "In the serializer, the *allow_nan* parameter can be used to alter this " -"behavior. In the deserializer, the *parse_constant* parameter can be used to " -"alter this behavior." +"behavior. In the deserializer, the *parse_constant* parameter can be used " +"to alter this behavior." msgstr "" "Dans le sérialiseur, le paramètre *allow_nan* peut être utilisé pour altérer " "ce comportement. Dans le désérialiseur, le paramètre *parse_constant* peut " @@ -890,13 +904,13 @@ msgstr "Noms répétés au sein d'un objet" msgid "" "The RFC specifies that the names within a JSON object should be unique, but " "does not mandate how repeated names in JSON objects should be handled. By " -"default, this module does not raise an exception; instead, it ignores all but " -"the last name-value pair for a given name::" +"default, this module does not raise an exception; instead, it ignores all " +"but the last name-value pair for a given name::" msgstr "" -"La RFC précise que les noms au sein d'un objet JSON doivent être uniques, mais " -"ne décrit pas comment les noms répétés doivent être gérés. Par défaut, ce " -"module ne lève pas d'exception ; à la place, il ignore tous les couples nom-" -"valeur sauf le dernier pour un nom donné ::" +"La RFC précise que les noms au sein d'un objet JSON doivent être uniques, " +"mais ne décrit pas comment les noms répétés doivent être gérés. Par défaut, " +"ce module ne lève pas d'exception ; à la place, il ignore tous les couples " +"nom-valeur sauf le dernier pour un nom donné ::" #: library/json.rst:626 msgid "The *object_pairs_hook* parameter can be used to alter this behavior." @@ -914,15 +928,15 @@ msgid "" "the top-level value of a JSON text must be either a JSON object or array " "(Python :class:`dict` or :class:`list`), and could not be a JSON null, " "boolean, number, or string value. :rfc:`7159` removed that restriction, and " -"this module does not and has never implemented that restriction in either its " -"serializer or its deserializer." +"this module does not and has never implemented that restriction in either " +"its serializer or its deserializer." msgstr "" "L'ancienne version de JSON définie par l'obsolète :rfc:`4627` demandait à ce " "que la valeur de plus haut niveau du texte JSON soit un objet ou un tableau " "JSON (:class:`dict` ou :class:`list` Python), et ne soit pas *null*, un " "nombre, ou une chaîne de caractères. La :rfc:`7159` a supprimé cette " -"restriction, jamais implémentée par ce module, que ce soit dans le sérialiseur " -"ou le désérialiseur." +"restriction, jamais implémentée par ce module, que ce soit dans le " +"sérialiseur ou le désérialiseur." #: library/json.rst:639 msgid "" @@ -968,13 +982,13 @@ msgstr "" #: library/json.rst:656 msgid "" -"When serializing to JSON, beware any such limitations in applications that may " -"consume your JSON. In particular, it is common for JSON numbers to be " +"When serializing to JSON, beware any such limitations in applications that " +"may consume your JSON. In particular, it is common for JSON numbers to be " "deserialized into IEEE 754 double precision numbers and thus subject to that " -"representation's range and precision limitations. This is especially relevant " -"when serializing Python :class:`int` values of extremely large magnitude, or " -"when serializing instances of \"exotic\" numerical types such as :class:" -"`decimal.Decimal`." +"representation's range and precision limitations. This is especially " +"relevant when serializing Python :class:`int` values of extremely large " +"magnitude, or when serializing instances of \"exotic\" numerical types such " +"as :class:`decimal.Decimal`." msgstr "" "Lors d'une sérialisation JSON, faites attention à ces limitations dans les " "applications qui utilisent votre JSON. En particulier, il est courant pour " @@ -1002,11 +1016,12 @@ msgstr "" #: library/json.rst:681 msgid "" -"If the optional ``infile`` and ``outfile`` arguments are not specified, :attr:" -"`sys.stdin` and :attr:`sys.stdout` will be used respectively:" +"If the optional ``infile`` and ``outfile`` arguments are not specified, :" +"attr:`sys.stdin` and :attr:`sys.stdout` will be used respectively:" msgstr "" -"Si les arguments optionnels ``infile`` et ``outfile`` ne sont pas spécifiés, :" -"attr:`sys.stdin` et :attr:`sys.stdout` sont utilisés respectivement :" +"Si les arguments optionnels ``infile`` et ``outfile`` ne sont pas " +"spécifiés, :attr:`sys.stdin` et :attr:`sys.stdout` sont utilisés " +"respectivement :" #: library/json.rst:693 msgid "" @@ -1047,8 +1062,8 @@ msgid "" "Disable escaping of non-ascii characters, see :func:`json.dumps` for more " "information." msgstr "" -"Désactive l’échappement des caractères non ASCII, voir :func:`json.dumps` pour " -"plus d'informations." +"Désactive l’échappement des caractères non ASCII, voir :func:`json.dumps` " +"pour plus d'informations." #: library/json.rst:741 msgid "Parse every input line as separate JSON object." @@ -1068,16 +1083,16 @@ msgstr "Notes" #: library/json.rst:758 msgid "" -"As noted in `the errata for RFC 7159 `_, JSON permits literal U+2028 (LINE SEPARATOR) and U+2029 " -"(PARAGRAPH SEPARATOR) characters in strings, whereas JavaScript (as of " -"ECMAScript Edition 5.1) does not." +"As noted in `the errata for RFC 7159 `_, JSON permits literal U+2028 (LINE SEPARATOR) " +"and U+2029 (PARAGRAPH SEPARATOR) characters in strings, whereas JavaScript " +"(as of ECMAScript Edition 5.1) does not." msgstr "" "Comme noté dans `l'errata de la RFC 7159 `_, JSON autorise les caractères littéraux U+2028 " "(*LINE SEPARATOR*) et U+2029 (*PARAGRAPH SEPARATOR*) dans les chaînes de " -"caractères, alors que Javascript (selon le standard ECMAScript édition 5.1) ne " -"le permet pas." +"caractères, alors que Javascript (selon le standard ECMAScript édition 5.1) " +"ne le permet pas." #~ msgid "*encoding* keyword argument." #~ msgstr "L'argument nommé *encodage*." From e8ef0f5c6b748f951654d4e3b16ad31f12b0c8be Mon Sep 17 00:00:00 2001 From: Caliendo Julien <34681928+caliendojulien@users.noreply.github.com> Date: Mon, 19 Apr 2021 18:27:19 +0200 Subject: [PATCH 11/19] Update library/json.po Co-authored-by: Julien Palard --- library/json.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/json.po b/library/json.po index 4cac2952b..116b4e403 100644 --- a/library/json.po +++ b/library/json.po @@ -111,7 +111,7 @@ msgid "" "to specify :class:`collections.OrderedDict` for JSON generation and parsing." msgstr "" "Avant Python 3.7, :class:`dict` n'était pas garanti d'être ordonné, donc les " -"entrées et sorties étaient mélangées à moins d'utiliser explicitement un :" +"entrées et sorties étaient mélangées à moins d'utiliser explicitement un :" "class:`collections.OrderedDict`. Depuis Python 3.7, un :class:`dict` " "conserve son ordre, il n'est donc plus nécessaire d'utiliser un :class:" "`collections.OrderedDict` pour générer et analyser du JSON." From 78c496a5aa6d8d0c959a6935d1e5459da0ac5f50 Mon Sep 17 00:00:00 2001 From: Caliendo Julien <34681928+caliendojulien@users.noreply.github.com> Date: Mon, 19 Apr 2021 18:27:25 +0200 Subject: [PATCH 12/19] Update library/json.po Co-authored-by: Julien Palard --- library/json.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/json.po b/library/json.po index 116b4e403..f3627b942 100644 --- a/library/json.po +++ b/library/json.po @@ -168,7 +168,7 @@ msgid "" msgstr "" "Si *check_circular* vaut ``False`` (``True`` par défaut), la vérification " "des références circulaires pour les conteneurs est ignorée, et une référence " -"circulaire lève une :exc:`OverflowError` (ou pire)." +"circulaire cause une :exc:`OverflowError` (ou pire)." #: library/json.rst:164 msgid "" From e6888b312f38245bfb7826dfb90294266293410c Mon Sep 17 00:00:00 2001 From: Caliendo Julien <34681928+caliendojulien@users.noreply.github.com> Date: Mon, 19 Apr 2021 18:27:36 +0200 Subject: [PATCH 13/19] Update library/json.po Co-authored-by: Julien Palard --- library/json.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/json.po b/library/json.po index f3627b942..8af643926 100644 --- a/library/json.po +++ b/library/json.po @@ -257,7 +257,7 @@ msgstr "" msgid "" "All optional parameters are now :ref:`keyword-only `." msgstr "" -"Tous les paramètres optionnels sont maintenant des :ref:`keyword-only " +"tous les paramètres optionnels sont maintenant des :ref:`keyword-only " "`." #: library/json.rst:205 From d3d755efda58d48a13b0391fa4c566eb66cccedf Mon Sep 17 00:00:00 2001 From: Caliendo Julien <34681928+caliendojulien@users.noreply.github.com> Date: Mon, 19 Apr 2021 18:27:43 +0200 Subject: [PATCH 14/19] Update library/json.po Co-authored-by: Julien Palard --- library/json.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/json.po b/library/json.po index 8af643926..8ed43c85f 100644 --- a/library/json.po +++ b/library/json.po @@ -537,7 +537,7 @@ msgstr "" "Si *object_hook* est spécifiée, elle est appelée avec le résultat de chaque " "objet JSON décodé et sa valeur de retour est utilisée à la place du :class:" "`dict` fourni. Cette fonctionnalité peut être utilisée pour implémenter des " -"décodeurs personnalisés (p. ex supporter les indices de classe de `JSON-RPC " +"décodeurs personnalisés (p. ex prendre en charge les indices de classe de `JSON-RPC " "`_." #: library/json.rst:338 From f805e64d40c3f5c72430537f66849ac1cef00927 Mon Sep 17 00:00:00 2001 From: Caliendo Julien Date: Mon, 19 Apr 2021 18:33:51 +0200 Subject: [PATCH 15/19] =?UTF-8?q?MaJ=20apr=C3=A8s=20review=20de=20JulienPa?= =?UTF-8?q?lard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/json.po | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/library/json.po b/library/json.po index 8ed43c85f..2d1c10e57 100644 --- a/library/json.po +++ b/library/json.po @@ -229,10 +229,10 @@ msgid "" "version of the object or raise a :exc:`TypeError`. If not specified, :exc:" "`TypeError` is raised." msgstr "" -"Si spécifié, *default* doit être une fonction qui est appelée pour les " +"Si spécifié, *default* doit être une fonction qui sera appelée pour les " "objets qui ne peuvent être sérialisés autrement. Elle doit renvoyer une " -"représentation de l'objet en JSON ou lever une :exc:`TypeError`. Si non " -"spécifié, une :exc:`TypeError` est levée." +"représentation composée d'objets Python sérialisable en JSON ou lever une :" +"exc:`TypeError`. Si non spécifié, une :exc:`TypeError` est levée." #: library/json.rst:193 msgid "" @@ -338,7 +338,7 @@ msgstr "" #: library/json.rst:344 msgid "Added support for *object_pairs_hook*." -msgstr "Ajout du support de *object_pairs_hook*." +msgstr "ajout du support de *object_pairs_hook*." #: library/json.rst:347 msgid "" @@ -432,7 +432,7 @@ msgstr "" #: library/json.rst:295 msgid "The keyword argument *encoding* has been removed." -msgstr "Suppression de l’argument nommé *encoding*." +msgstr "suppression de l’argument nommé *encoding*." #: library/json.rst:300 msgid "Encoders and Decoders" @@ -537,8 +537,8 @@ msgstr "" "Si *object_hook* est spécifiée, elle est appelée avec le résultat de chaque " "objet JSON décodé et sa valeur de retour est utilisée à la place du :class:" "`dict` fourni. Cette fonctionnalité peut être utilisée pour implémenter des " -"décodeurs personnalisés (p. ex prendre en charge les indices de classe de `JSON-RPC " -"`_." +"décodeurs personnalisés (p. ex prendre en charge les indices de classe de " +"`JSON-RPC `_." #: library/json.rst:338 msgid "" @@ -631,7 +631,7 @@ msgstr "*number*" #: library/json.rst:417 msgid "Added support for int- and float-derived Enum classes." msgstr "" -"Ajout de la prise en charge des classes *Enum* dérivées d'*int* ou de " +"ajout de la prise en charge des classes *Enum* dérivées d'*int* ou de " "*float*." #: library/json.rst:420 From 4d9419766015414406d95f2b1a990bcabfae6911 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Wed, 28 Jul 2021 18:58:15 +0200 Subject: [PATCH 16/19] Review. --- library/json.po | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/library/json.po b/library/json.po index 2d1c10e57..c932c9702 100644 --- a/library/json.po +++ b/library/json.po @@ -6,7 +6,7 @@ msgstr "" "Project-Id-Version: Python 3\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2021-03-19 16:59+0100\n" -"PO-Revision-Date: 2021-04-19 17:17+0200\n" +"PO-Revision-Date: 2021-07-28 18:57+0200\n" "Last-Translator: Caliendo Julien \n" "Language-Team: FRENCH \n" "Language: fr\n" @@ -534,11 +534,11 @@ msgid "" "class:`dict`. This can be used to provide custom deserializations (e.g. to " "support `JSON-RPC `_ class hinting)." msgstr "" -"Si *object_hook* est spécifiée, elle est appelée avec le résultat de chaque " +"Si *object_hook* est donnée, elle est appelée avec le résultat de chaque " "objet JSON décodé et sa valeur de retour est utilisée à la place du :class:" "`dict` fourni. Cette fonctionnalité peut être utilisée pour implémenter des " -"décodeurs personnalisés (p. ex prendre en charge les indices de classe de " -"`JSON-RPC `_." +"décodeurs personnalisés (p. ex prendre en charge les indications de classe " +"de `JSON-RPC `_)." #: library/json.rst:338 msgid "" @@ -655,7 +655,7 @@ msgid "" msgstr "" "Si *skipkeys* vaut ``False`` (valeur par défaut), une :exc:`TypeError` est " "levée si la clé encodée n'est pas de type :class:`str`, :class:`int`, :class:" -"`float` or ``None``. Si *skipkeys* vaut ``True``, ces éléments sont " +"`float` ou ``None``. Si *skipkeys* vaut ``True``, ces éléments sont " "simplement ignorés." #: library/json.rst:433 @@ -710,7 +710,7 @@ msgid "" "`default` like this::" msgstr "" "Par exemple, pour prendre en charge les itérations arbitraires, la :meth:" -"`default` peut être écrite ainsi::" +"`default` peut être écrite ainsi ::" #: library/json.rst:497 msgid "" @@ -1071,7 +1071,7 @@ msgstr "Transforme chaque ligne d'entrée en un objet JSON individuel." #: library/json.rst:747 msgid "Mutually exclusive options for whitespace control." -msgstr "Options groupées de contrôle des espaces." +msgstr "Options mutuellement exclusives de contrôle des espaces." #: library/json.rst:753 msgid "Show the help message." From 13389d7d2a7e6d5b7bd0f93b49cd60da34e2b4d4 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Wed, 28 Jul 2021 19:02:59 +0200 Subject: [PATCH 17/19] Apply suggestions from code review --- library/json.po | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/json.po b/library/json.po index c932c9702..48e284a17 100644 --- a/library/json.po +++ b/library/json.po @@ -958,19 +958,19 @@ msgstr "" #: library/json.rst:648 msgid "the size of accepted JSON texts" -msgstr "la taille des textes JSON acceptés" +msgstr "la taille des textes JSON acceptés ;" #: library/json.rst:649 msgid "the maximum level of nesting of JSON objects and arrays" -msgstr "le niveau maximum d'objets et tableaux JSON imbriqués" +msgstr "le niveau maximum d'objets et tableaux JSON imbriqués ;" #: library/json.rst:650 msgid "the range and precision of JSON numbers" -msgstr "l'intervalle et la précision des nombres JSON" +msgstr "l'intervalle et la précision des nombres JSON ;" #: library/json.rst:651 msgid "the content and maximum length of JSON strings" -msgstr "le contenu et la longueur maximale des chaînes JSON" +msgstr "le contenu et la longueur maximale des chaînes JSON ;" #: library/json.rst:653 msgid "" From 9bf9391792d4de347522863eb7fb355121f29ab7 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Wed, 28 Jul 2021 19:03:41 +0200 Subject: [PATCH 18/19] Update library/json.po --- library/json.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/json.po b/library/json.po index 48e284a17..92be1a926 100644 --- a/library/json.po +++ b/library/json.po @@ -970,7 +970,7 @@ msgstr "l'intervalle et la précision des nombres JSON ;" #: library/json.rst:651 msgid "the content and maximum length of JSON strings" -msgstr "le contenu et la longueur maximale des chaînes JSON ;" +msgstr "le contenu et la longueur maximale des chaînes JSON." #: library/json.rst:653 msgid "" From 8cec0753e1a86a964cc0d457fa7057ef2da137b1 Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Wed, 28 Jul 2021 19:05:09 +0200 Subject: [PATCH 19/19] Update library/json.po --- library/json.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/json.po b/library/json.po index 92be1a926..4a24c1af1 100644 --- a/library/json.po +++ b/library/json.po @@ -966,7 +966,7 @@ msgstr "le niveau maximum d'objets et tableaux JSON imbriqués ;" #: library/json.rst:650 msgid "the range and precision of JSON numbers" -msgstr "l'intervalle et la précision des nombres JSON ;" +msgstr "l'intervalle et la précision des nombres JSON ;" #: library/json.rst:651 msgid "the content and maximum length of JSON strings"