10000 translation of c-api/arg.po (#893) · python/python-docs-fr@d4fc53d · GitHub
[go: up one dir, main page]

Skip to content

Commit d4fc53d

Browse files
laenNoCodechristopheNanderonnax
authored
translation of c-api/arg.po (#893)
* translation of 8% of c-api/arg * fix of pospell issues * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * Update c-api/arg.po Co-Authored-By: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> * resolve of conflict * spelling errors + wrapping * suggestions Christophe * retrait tiret entre "lecture" et "seule" * Apply suggestions from code review Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> Co-authored-by: Christophe Nanteuil <35002064+christopheNan@users.noreply.github.com> Co-authored-by: Mathieu Dupuy <deronnax@gmail.com>
1 parent 2d025ea commit d4fc53d

File tree

2 files changed

+63
-4
lines changed

2 files changed

+63
-4
lines changed

TRANSLATORS

Lines changed: 1 addition & 0 deletions
Valériane Venance
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ Vivien Lambert
1313
Andy Kwok
1414
Aya Keddam
1515
Antoine Wecxsteen
16+
Youen 'laën' Froger
1617
Sascha Salles
1718

c-api/arg.po

Lines changed: 62 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ msgstr ""
1313
"MIME-Version: 1.0\n"
1414
"Content-Type: text/plain; charset=UTF-8\n"
1515
"Content-Transfer-Encoding: 8bit\n"
16-
"X-Generator: Poedit 1.8.11\n"
16+
"X-Generator: Poedit 2.2.1\n"
1717

1818
#: ../Doc/c-api/arg.rst:6
1919
msgid "Parsing arguments and building values"
@@ -88,6 +88,10 @@ msgid ""
8888
"this object. You won't have to release any memory yourself. The only "
8989
"exceptions are ``es``, ``es#``, ``et`` and ``et#``."
9090
msgstr ""
91+
"En général, lorsqu'un format définit un pointeur vers un tampon, le tampon "
92+
"est géré par l'objet Python correspondant et le tampon partage la durée de "
93+
"vie de cet objet. vous n'avez pas à libérer de mémoire. Les seules "
94+
"exceptions sont ``es``, ``es#``, ``et`` et ``et#``."
9195

9296
#: ../Doc/c-api/arg.rst:42
9397
msgid ""
@@ -117,6 +121,11 @@ msgid ""
117121
"object's :c:member:`PyBufferProcs.bf_releasebuffer` field is ``NULL``, which "
118122
"disallows mutable objects such as :class:`bytearray`."
119123
msgstr ""
124+
"Certains formats requièrent un :term:`objet compatible avec une chaîne "
125+
"d'octets <bytes-like object>` en lecture seule, et définissent un pointeur à "
126+
"la place d'une structure tampon. Ils fonctionnent en vérifiant que le champ :"
127+
"c:member:`PyBufferProcs.bf_releasebuffer` de l'objet est *NULL*, ce qui "
128+
"n'autorise pas les objets muables tels que :class:`bytearray`."
120129

121130
#: ../Doc/c-api/arg.rst:58
122131
msgid ""
@@ -150,6 +159,13 @@ msgid ""
150159
"is raised. Unicode objects are converted to C strings using ``'utf-8'`` "
151160
"encoding. If this conversion fails, a :exc:`UnicodeError` is raised."
152161
msgstr ""
162+
"Convertit un objet Unicode en un pointeur vers une chaîne de caractères. "
163+
"S'il s'agit d'un pointeur vers une chaîne de caractères déjà existante, il "
164+
"est stocké dans la variable de type pointeur vers un caractère dont vous "
165+
"avez donné l'adresse. Une chaîne de caractères en C se termine par *NULL*. "
166+
"La chaîne de caractères Python ne doit donc pas contenir de caractère dont "
167+
"le code est *null*. Si elle en contient, une exception :exc:`ValueError` est "
168+
"levée. Si la conversion échoue, une :exc:`UnicodeError` est levée."
153169

154170
#: ../Doc/c-api/arg.rst:77
155171
msgid ""
@@ -158,12 +174,19 @@ msgid ""
158174
"strings, it is preferable to use the ``O&`` format with :c:func:"
159175
"`PyUnicode_FSConverter` as *converter*."
160176
msgstr ""
177+
"Ce format n'accepte pas les :term:`objets compatibles avec une chaîne "
178+
"d'octets <bytes-like object>`. Si vous voulez accepter les chemins du "
179+
"système de fichiers et les convertir vers des chaînes de caractères C, il "
180+
"est préférable d'utiliser le format ``O&`` avec :c:func:"
181+
"`PyUnicode_FSConverter` en tant que *converter*."
161182

162183
#: ../Doc/c-api/arg.rst:83 ../Doc/c-api/arg.rst:150
163184
msgid ""
164185
"Previously, :exc:`TypeError` was raised when embedded null code points were "
165186
"encountered in the Python string."
166187
msgstr ""
188+
"Auparavant, une :exc:`TypeError` était levée quand la chaîne de caractères "
189+
"Python contenait des codes NULL."
167190

168191
#: ../Doc/c-api/arg.rst:91
169192
msgid "``s*`` (:class:`str` or :term:`bytes-like object`) [Py_buffer]"
@@ -176,12 +199,19 @@ msgid ""
176199
"resulting C string may contain embedded NUL bytes. Unicode objects are "
177200
"converted to C strings using ``'utf-8'`` encoding."
178201
msgstr ""
202+
"Ce format accepte les objets Unicode et les *bytes-like object*. Cela "
203+
"remplit une structure :c:type:`Py_buffer` qui est fournie par l'appelant. "
204+
"Dans ce cas, la chaîne de caractères C qui en résulte peut contenir des "
205+
"octets NULL. Les objets Unicode sont convertis en chaînes de caractères C en "
206+
"utilisant l'encodage ``'utf-8'``."
179207

180208
#: ../Doc/c-api/arg.rst:98
181209
msgid ""
182210
"``s#`` (:class:`str`, read-only :term:`bytes-like object`) [const char \\*, "
183211
"int or :c:type:`Py_ssize_t`]"
184212
msgstr ""
213+
"``s#`` (:class:`str`, :term:`bytes-like object` en lecture seule) [``const "
214+
"char \\*``, ``int`` ou :c:type:`Py_ssize_t`]"
185215

186216
#: ../Doc/c-api/arg.rst:94
187217
msgid ""
@@ -190,6 +220,11 @@ msgid ""
190220
"second one its length. The string may contain embedded null bytes. Unicode "
191221
"objects are converted to C strings using ``'utf-8'`` encoding."
192222
msgstr ""
223+
"La même chose que ``s*``, mais n'accepte pas les objets muables. Le résultat "
224+
"est stocké dans deux variables C, la première est un pointeur vers une "
225+
"chaîne de caractères C, la seconde contient sa taille. La chaîne de "
226+
"caractères peut contenir des octets NULL. Les objets Unicode sont convertis "
227+
"vers des chaînes de caractères C utilisant l'encodage ``'utf-8'``."
193228

194229
#: ../Doc/c-api/arg.rst:102 ../Doc/c-api/arg.rst:566
195230
msgid "``z`` (:class:`str` or ``None``) [const char \\*]"
@@ -211,19 +246,21 @@ msgstr ""
211246
"``z*`` (:class:`str`, :term:`bytes-like object` ou ``None``) [``Py_buffer``]"
212247

213248
#: ../Doc/c-api/arg.rst:105
214-
#, fuzzy
215249
msgid ""
216250
"Like ``s*``, but the Python object may also be ``None``, in which case the "
217251
"``buf`` member of the :c:type:`Py_buffer` structure is set to ``NULL``."
218252
msgstr ""
219-
"Comme ``u``, mais l'objet Python peut aussi être ``None``, auquel cas le "
220-
"pointeur :c:type:`Py_UNICODE` vaut *NULL*."
253+
"Comme ``s*``, mais l'objet Python peut aussi être ``None``, auquel cas le "
254+
"membre ``buf``, dont la structure est :c:type:`Py_buffer` est fixée à *NULL*."
221255

222256
#: ../Doc/c-api/arg.rst:110
223257
msgid ""
224258
"``z#`` (:class:`str`, read-only :term:`bytes-like object` or ``None``) "
225259
"[const char \\*, int]"
226260
msgstr ""
261+
"``z#`` (:class:`str`, :term:`objet compatible avec une chaîne d'octets "
262+
"<bytes-like object>` en lecture seule ou ``None``) [constante char \\*, "
263+
"entier]"
227264

228265
#: ../Doc/c-api/arg.rst:109
229266
#, fuzzy
@@ -237,6 +274,8 @@ msgstr ""
237274
#: ../Doc/c-api/arg.rst:120
238275
msgid "``y`` (read-only :term:`bytes-like object`) [const char \\*]"
239276
msgstr ""
277+
"``y`` (lecture seule :term:`objet compatible avec une chaîne d'octets <bytes-"
278+
"like object>`) [constante char \\*]"
240279

241280
#: ../Doc/c-api/arg.rst:113
242281
msgid ""
@@ -245,12 +284,18 @@ msgid ""
245284
"contain embedded null bytes; if it does, a :exc:`ValueError` exception is "
246285
"raised."
247286
msgstr ""
287+
"Ce format convertit un *objet compatible avec une chaîne d'octets* en un "
288+
"pointeur C vers une chaîne de caractères ; il n'accepte pas les objets "
289+
"Unicode. Le tampon d'octets ne doit pas contenir d'octets *null* ; si c'est "
290+
"le cas, une exception :exc:`ValueError` est levée."
248291

249292
#: ../Doc/c-api/arg.rst:118
250293
msgid ""
251294
"Previously, :exc:`TypeError` was raised when embedded null bytes were "
252295
"encountered in the bytes buffer."
253296
msgstr ""
297+
"Auparavant, :exc:`TypeError` était levée lorsque des octets *null* étaient "
298+
"rencontrés dans le tampon d'octets."
254299

255300
#: ../Doc/c-api/arg.rst:125
256301
msgid "``y*`` (:term:`bytes-like object`) [Py_buffer]"
@@ -265,6 +310,8 @@ msgstr ""
265310
#: ../Doc/c-api/arg.rst:129
266311
msgid "``y#`` (read-only :term:`bytes-like object`) [const char \\*, int]"
267312
msgstr ""
313+
"``y#`` (lecture seule :term:`objet compatible avec une chaîne d'octets "
314+
"<bytes-like object>`) [constante char \\*, entier]"
268315

269316
#: ../Doc/c-api/arg.rst:128
270317
msgid ""
@@ -284,6 +331,10 @@ msgid ""
284331
"attempting any conversion. Raises :exc:`TypeError` if the object is not a "
285332
"bytes object. The C variable may also be declared as :c:type:`PyObject\\*`."
286333
msgstr ""
334+
"Nécessite que l'objet Python soit de type :class:`bytes`, sans avoir tenté "
335+
"de conversion. :exc:`TypeError` est levée si l'objet n'est pas un objet de "
336+
"type *bytes*. La variable C doit aussi être déclarée en tant que :c:type:"
337+
"`PyObject\\*`."
287338

288339
#: ../Doc/c-api/arg.rst:139
289340
msgid "``Y`` (:class:`bytearray`) [PyByteArrayObject \\*]"
@@ -311,6 +362,13 @@ msgid ""
311362
"Python string must not contain embedded null code points; if it does, a :exc:"
312363
"`ValueError` exception is raised."
313364
msgstr ""
365+
"Convertit un objet Python Unicode en un pointeur C vers un tampon de "
366+
"caractères Unicode terminé par *NULL*. Vous devez passer l'adresse d'un "
367+
"pointeur :c:type:`Py_UNICODE`, qui sera rempli avec le pointeur vers un "
368+
"tampon Unicode existant. Veuillez noter que la taille d'un :c:type:"
369+
"`Py_UNICODE` dépend des options de compilation (soit 16, soit 32 bits). La "
370+
"chaîne de caractères Python ne doit pas contenir de code *NULL*. Si elle en "
371+
"contient, une exception :exc:`ValueError` est levée."
314372

315373
#: ../Doc/c-api/arg.rst:157 ../Doc/c-api/arg.rst:166 ../Doc/c-api/arg.rst:174
316374
#: ../Doc/c-api/arg.rst:182

0 commit comments

Comments
 (0)
0