Skip to content

Commit 832ce41

Browse files
AveheuzedawecxchristopheNan
committed
Proposition de traduction pour c-api/mapping.po (#982)
* Proposition de traduction pour mapping.po * Corrections de fautes de frappe : object=>objet et c:func:=>:c:func: * "supporte" => "prend en charge" dans c-api/ampping.po Co-Authored-By: Antoine <[email protected]> * Update c-api/mapping.po Co-Authored-By: Antoine <[email protected]> * Update c-api/mapping.po Co-Authored-By: Antoine <[email protected]> * correction d'un accord, reformulation pour introduire l'idée de str *temporaire* * Update c-api/mapping.po : liste => tuple Co-Authored-By: Antoine <[email protected]> * objet->object en VO * Update c-api/mapping.po : 'tuple'->'n-uplet' ; 'k/v'->'k-v' Co-Authored-By: Antoine <[email protected]> * Update c-api/mapping.po Co-Authored-By: Christophe Nanteuil <[email protected]> * Suppression des commentaires résolus * Suppression des vigules avant les 'et' * Update c-api/mapping.po Co-Authored-By: Antoine <[email protected]> * Update c-api/mapping.po correction de la traduction de _slicing_ Co-Authored-By: Antoine <[email protected]> * powrap sur c-api/mapping.po * Correction d'un accord dans c-api/mapping.po et ajout d'une espace Co-authored-by: Antoine <[email protected]> Co-authored-by: Christophe Nanteuil <[email protected]>
1 parent bd7b9f9 commit 832ce41

File tree

1 file changed

+45
-5
lines changed

1 file changed

+45
-5
lines changed

c-api/mapping.po

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,106 +5,146 @@ msgid ""
55
msgstr ""
66
"Project-Id-Version: Python 3\n"
77
"Report-Msgid-Bugs-To: \n"
8-
"POT-Creation-Date: 2019-12-05 23:16+0100\n"
9-
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
10-
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8+
"POT-Creation-Date: 2018-12-21 09:48+0100\n"
9+
"PO-Revision-Date: 2019-11-17 21:20+0100\n"
1110
"Language-Team: FRENCH <[email protected]>\n"
1211
"Language: fr\n"
1312
"MIME-Version: 1.0\n"
1413
"Content-Type: text/plain; charset=UTF-8\n"
1514
"Content-Transfer-Encoding: 8bit\n"
15+
"Last-Translator: Aveheuzed <[email protected]>\n"
16+
"X-Generator: Poedit 2.2.4\n"
1617

1718
#: ../Doc/c-api/mapping.rst:6
1819
msgid "Mapping Protocol"
19-
msgstr ""
20+
msgstr "Protocole de correspondance"
2021

2122
#: ../Doc/c-api/mapping.rst:8
2223
msgid ""
2324
"See also :c:func:`PyObject_GetItem`, :c:func:`PyObject_SetItem` and :c:func:"
2425
"`PyObject_DelItem`."
2526
msgstr ""
27+
"Voir aussi :c:func:`PyObject_GetItem`, :c:func:`PyObject_SetItem` et :c:func:"
28+
"`PyObject_DelItem`."
2629

30+
# - " in general case it is impossible to determine what the type of keys it supports."
31+
# → pas correct en VO !
32+
# - "This function always succeeds." équivaut-il à "jamais d'erreur" ?
2733
#: ../Doc/c-api/mapping.rst:14
2834
msgid ""
2935
"Return ``1`` if the object provides mapping protocol or supports slicing, "
3036
"and ``0`` otherwise. Note that it returns ``1`` for Python classes with a :"
3137
"meth:`__getitem__` method since in general case it is impossible to "
3238
"determine what type of keys it supports. This function always succeeds."
3339
msgstr ""
40+
"Renvoie ``1`` si l'objet prend en charge le protocole de correspondance ou "
41+
"le découpage en tranches et ``0`` sinon. Notez qu'elle renvoie ``1`` pour "
42+
"les classes Python avec une méthode :meth:`__getitem__` puisque, dans le cas "
43+
"général, il est impossible de déterminer quel type de clef est pris en "
44+
"charge. Cette fonction ne provoque jamais d'erreur."
3445

3546
#: ../Doc/c-api/mapping.rst:25
3647
msgid ""
3748
"Returns the number of keys in object *o* on success, and ``-1`` on failure. "
3849
"This is equivalent to the Python expression ``len(o)``."
3950
msgstr ""
51+
"Renvoie le nombre de clefs dans l'objet *o* et ``-1`` en cas d'échec. C'est "
52+
"l'équivalent de l'expression Python ``len(o)``."
4053

4154
#: ../Doc/c-api/mapping.rst:31
4255
msgid ""
4356
"Return element of *o* corresponding to the string *key* or ``NULL`` on "
4457
"failure. This is the equivalent of the Python expression ``o[key]``. See "
4558
"also :c:func:`PyObject_GetItem`."
4659
msgstr ""
60+
"Renvoie les éléments de *o* qui correspondent à la chaîne *key* ou *NULL* en "
61+
"cas d'échec. C'est l'équivalent de l'expression Python ``o[key]``. Voir "
62+
"aussi :c:func:`PyObject_GetItem`."
4763

4864
#: ../Doc/c-api/mapping.rst:38
4965
msgid ""
5066
"Map the string *key* to the value *v* in object *o*. Returns ``-1`` on "
5167
"failure. This is the equivalent of the Python statement ``o[key] = v``. See "
5268
"also :c:func:`PyObject_SetItem`."
5369
msgstr ""
70+
"Fait correspondre la chaîne *key* à la valeur *v* dans l'objet *o*. Renvoie "
71+
"``-1`` en cas d'échec. C'est l'équivalent de la commande Python ``o[key] = "
72+
"v``. Voir aussi :c:func:`PyObject_SetItem`."
5473

5574
#: ../Doc/c-api/mapping.rst:45
5675
msgid ""
5776
"Remove the mapping for the object *key* from the object *o*. Return ``-1`` "
5877
"on failure. This is equivalent to the Python statement ``del o[key]``. This "
5978
"is an alias of :c:func:`PyObject_DelItem`."
6079
msgstr ""
80+
"Supprime la correspondance associée à l'objet *key* dans l'objet *o*. "
81+
"Renvoie ``-1`` en cas d'échec. C'est l'équivalent de la commande Python "
82+
"``del o[key]``. C'est un alias pour :c:func:`PyObject_DelItem`."
6183

6284
#: ../Doc/c-api/mapping.rst:52
6385
msgid ""
6486
"Remove the mapping for the string *key* from the object *o*. Return ``-1`` "
6587
"on failure. This is equivalent to the Python statement ``del o[key]``."
6688
msgstr ""
89+
"Supprime la correspondance associée à la chaîne *key* dans l'objet *o*. "
90+
"Renvoie ``-1`` en cas d'échec. C'est l'équivalent de la commande Python "
91+
"``del o[key]``."
6792

6893
#: ../Doc/c-api/mapping.rst:58 ../Doc/c-api/mapping.rst:69
6994
msgid ""
7095
"Return ``1`` if the mapping object has the key *key* and ``0`` otherwise. "
7196
"This is equivalent to the Python expression ``key in o``. This function "
7297
"always succeeds."
7398
msgstr ""
99+
"Renvoie ``1`` si l'objet de correspondance possède une clef *key* et ``0`` "
100+
"sinon. C'est l'équivalent de l'expression Python ``key in o``. Cette "
101+
"fonction ne provoque jamais d'erreur."
74102

75103
#: ../Doc/c-api/mapping.rst:62
76104
msgid ""
77105
"Note that exceptions which occur while calling the :meth:`__getitem__` "
78106
"method will get suppressed. To get error reporting use :c:func:"
79107
"`PyObject_GetItem()` instead."
80108
msgstr ""
109+
"Notez que les exceptions qui surviennent pendant l'appel de la méthode :meth:"
110+
"`__getitem__` seront supprimées. Pour obtenir le rapport d'erreur, utilisez "
111+
"plutôt :c:func:`PyObject_GetItem()`."
81112

82113
#: ../Doc/c-api/mapping.rst:73
83114
msgid ""
84115
"Note that exceptions which occur while calling the :meth:`__getitem__` "
85116
"method and creating a temporary string object will get suppressed. To get "
86117
"error reporting use :c:func:`PyMapping_GetItemString()` instead."
87118
msgstr ""
119+
"Notez que les exceptions qui surviennent en créant une chaîne de caractères "
120+
"temporaire pendant l'appel de la méthode :meth:`__getitem__` seront "
121+
"supprimées. Pour obtenir le rapport d'erreur, utilisez plutôt :c:func:"
122+
"`PyMapping_GetItemString()`."
88123

89124
#: ../Doc/c-api/mapping.rst:80
90125
msgid ""
91126
"On success, return a list of the keys in object *o*. On failure, return "
92127
"``NULL``."
93128
msgstr ""
129+
"Renvoie la liste des clefs dans l'objet *o*. En cas d'échec, renvoie *NULL*."
94130

95131
#: ../Doc/c-api/mapping.rst:83 ../Doc/c-api/mapping.rst:92
96132
#: ../Doc/c-api/mapping.rst:101
97133
msgid "Previously, the function returned a list or a tuple."
98-
msgstr ""
134+
msgstr "Auparavant, la fonction renvoyait une liste ou un n-uplet."
99135

100136
#: ../Doc/c-api/mapping.rst:89
101137
msgid ""
102138
"On success, return a list of the values in object *o*. On failure, return "
103139
"``NULL``."
104140
msgstr ""
141+
"Renvoie la liste des valeurs dans l'objet *o*. En cas d'échec, renvoie "
142+
"*NULL*."
105143

106144
#: ../Doc/c-api/mapping.rst:98
107145
msgid ""
108146
"On success, return a list of the items in object *o*, where each item is a "
109147
"tuple containing a key-value pair. On failure, return ``NULL``."
110148
msgstr ""
149+
"Renvoie la liste des éléments dans l'objet *o*, où chaque élément est un n-"
150+
"uplet contenant une paire clef-valeur. En cas d'échec, renvoie *NULL*."

0 commit comments

Comments
 (0)