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>
This commit is contained in:
laenNoCode 2020-05-09 11:12:45 +02:00 committed by GitHub
parent 2d025ea9f0
commit d4fc53df49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 63 additions and 4 deletions

View File

@ -13,5 +13,6 @@ Vivien Lambert
Andy Kwok Andy Kwok
Aya Keddam Aya Keddam
Antoine Wecxsteen Antoine Wecxsteen
Youen 'laën' Froger
Sascha Salles Sascha Salles
Valériane Venance Valériane Venance

View File

@ -13,7 +13,7 @@ msgstr ""
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.11\n" "X-Generator: Poedit 2.2.1\n"
#: ../Doc/c-api/arg.rst:6 #: ../Doc/c-api/arg.rst:6
msgid "Parsing arguments and building values" msgid "Parsing arguments and building values"
@ -88,6 +88,10 @@ msgid ""
"this object. You won't have to release any memory yourself. The only " "this object. You won't have to release any memory yourself. The only "
"exceptions are ``es``, ``es#``, ``et`` and ``et#``." "exceptions are ``es``, ``es#``, ``et`` and ``et#``."
msgstr "" msgstr ""
"En général, lorsqu'un format définit un pointeur vers un tampon, le tampon "
"est géré par l'objet Python correspondant et le tampon partage la durée de "
"vie de cet objet. vous n'avez pas à libérer de mémoire. Les seules "
"exceptions sont ``es``, ``es#``, ``et`` et ``et#``."
#: ../Doc/c-api/arg.rst:42 #: ../Doc/c-api/arg.rst:42
msgid "" msgid ""
@ -117,6 +121,11 @@ msgid ""
"object's :c:member:`PyBufferProcs.bf_releasebuffer` field is ``NULL``, which " "object's :c:member:`PyBufferProcs.bf_releasebuffer` field is ``NULL``, which "
"disallows mutable objects such as :class:`bytearray`." "disallows mutable objects such as :class:`bytearray`."
msgstr "" msgstr ""
"Certains formats requièrent un :term:`objet compatible avec une chaîne "
"d'octets <bytes-like object>` en lecture seule, et définissent un pointeur à "
"la place d'une structure tampon. Ils fonctionnent en vérifiant que le champ :"
"c:member:`PyBufferProcs.bf_releasebuffer` de l'objet est *NULL*, ce qui "
"n'autorise pas les objets muables tels que :class:`bytearray`."
#: ../Doc/c-api/arg.rst:58 #: ../Doc/c-api/arg.rst:58
msgid "" msgid ""
@ -150,6 +159,13 @@ msgid ""
"is raised. Unicode objects are converted to C strings using ``'utf-8'`` " "is raised. Unicode objects are converted to C strings using ``'utf-8'`` "
"encoding. If this conversion fails, a :exc:`UnicodeError` is raised." "encoding. If this conversion fails, a :exc:`UnicodeError` is raised."
msgstr "" msgstr ""
"Convertit un objet Unicode en un pointeur vers une chaîne de caractères. "
"S'il s'agit d'un pointeur vers une chaîne de caractères déjà existante, il "
"est stocké dans la variable de type pointeur vers un caractère dont vous "
"avez donné l'adresse. Une chaîne de caractères en C se termine par *NULL*. "
"La chaîne de caractères Python ne doit donc pas contenir de caractère dont "
"le code est *null*. Si elle en contient, une exception :exc:`ValueError` est "
"levée. Si la conversion échoue, une :exc:`UnicodeError` est levée."
#: ../Doc/c-api/arg.rst:77 #: ../Doc/c-api/arg.rst:77
msgid "" msgid ""
@ -158,12 +174,19 @@ msgid ""
"strings, it is preferable to use the ``O&`` format with :c:func:" "strings, it is preferable to use the ``O&`` format with :c:func:"
"`PyUnicode_FSConverter` as *converter*." "`PyUnicode_FSConverter` as *converter*."
msgstr "" msgstr ""
"Ce format n'accepte pas les :term:`objets compatibles avec une chaîne "
"d'octets <bytes-like object>`. Si vous voulez accepter les chemins du "
"système de fichiers et les convertir vers des chaînes de caractères C, il "
"est préférable d'utiliser le format ``O&`` avec :c:func:"
"`PyUnicode_FSConverter` en tant que *converter*."
#: ../Doc/c-api/arg.rst:83 ../Doc/c-api/arg.rst:150 #: ../Doc/c-api/arg.rst:83 ../Doc/c-api/arg.rst:150
msgid "" msgid ""
"Previously, :exc:`TypeError` was raised when embedded null code points were " "Previously, :exc:`TypeError` was raised when embedded null code points were "
"encountered in the Python string." "encountered in the Python string."
msgstr "" msgstr ""
"Auparavant, une :exc:`TypeError` était levée quand la chaîne de caractères "
"Python contenait des codes NULL."
#: ../Doc/c-api/arg.rst:91 #: ../Doc/c-api/arg.rst:91
msgid "``s*`` (:class:`str` or :term:`bytes-like object`) [Py_buffer]" msgid "``s*`` (:class:`str` or :term:`bytes-like object`) [Py_buffer]"
@ -176,12 +199,19 @@ msgid ""
"resulting C string may contain embedded NUL bytes. Unicode objects are " "resulting C string may contain embedded NUL bytes. Unicode objects are "
"converted to C strings using ``'utf-8'`` encoding." "converted to C strings using ``'utf-8'`` encoding."
msgstr "" msgstr ""
"Ce format accepte les objets Unicode et les *bytes-like object*. Cela "
"remplit une structure :c:type:`Py_buffer` qui est fournie par l'appelant. "
"Dans ce cas, la chaîne de caractères C qui en résulte peut contenir des "
"octets NULL. Les objets Unicode sont convertis en chaînes de caractères C en "
"utilisant l'encodage ``'utf-8'``."
#: ../Doc/c-api/arg.rst:98 #: ../Doc/c-api/arg.rst:98
msgid "" msgid ""
"``s#`` (:class:`str`, read-only :term:`bytes-like object`) [const char \\*, " "``s#`` (:class:`str`, read-only :term:`bytes-like object`) [const char \\*, "
"int or :c:type:`Py_ssize_t`]" "int or :c:type:`Py_ssize_t`]"
msgstr "" msgstr ""
"``s#`` (:class:`str`, :term:`bytes-like object` en lecture seule) [``const "
"char \\*``, ``int`` ou :c:type:`Py_ssize_t`]"
#: ../Doc/c-api/arg.rst:94 #: ../Doc/c-api/arg.rst:94
msgid "" msgid ""
@ -190,6 +220,11 @@ msgid ""
"second one its length. The string may contain embedded null bytes. Unicode " "second one its length. The string may contain embedded null bytes. Unicode "
"objects are converted to C strings using ``'utf-8'`` encoding." "objects are converted to C strings using ``'utf-8'`` encoding."
msgstr "" msgstr ""
"La même chose que ``s*``, mais n'accepte pas les objets muables. Le résultat "
"est stocké dans deux variables C, la première est un pointeur vers une "
"chaîne de caractères C, la seconde contient sa taille. La chaîne de "
"caractères peut contenir des octets NULL. Les objets Unicode sont convertis "
"vers des chaînes de caractères C utilisant l'encodage ``'utf-8'``."
#: ../Doc/c-api/arg.rst:102 ../Doc/c-api/arg.rst:566 #: ../Doc/c-api/arg.rst:102 ../Doc/c-api/arg.rst:566
msgid "``z`` (:class:`str` or ``None``) [const char \\*]" msgid "``z`` (:class:`str` or ``None``) [const char \\*]"
@ -211,19 +246,21 @@ msgstr ""
"``z*`` (:class:`str`, :term:`bytes-like object` ou ``None``) [``Py_buffer``]" "``z*`` (:class:`str`, :term:`bytes-like object` ou ``None``) [``Py_buffer``]"
#: ../Doc/c-api/arg.rst:105 #: ../Doc/c-api/arg.rst:105
#, fuzzy
msgid "" msgid ""
"Like ``s*``, but the Python object may also be ``None``, in which case the " "Like ``s*``, but the Python object may also be ``None``, in which case the "
"``buf`` member of the :c:type:`Py_buffer` structure is set to ``NULL``." "``buf`` member of the :c:type:`Py_buffer` structure is set to ``NULL``."
msgstr "" msgstr ""
"Comme ``u``, mais l'objet Python peut aussi être ``None``, auquel cas le " "Comme ``s*``, mais l'objet Python peut aussi être ``None``, auquel cas le "
"pointeur :c:type:`Py_UNICODE` vaut *NULL*." "membre ``buf``, dont la structure est :c:type:`Py_buffer` est fixée à *NULL*."
#: ../Doc/c-api/arg.rst:110 #: ../Doc/c-api/arg.rst:110
msgid "" msgid ""
"``z#`` (:class:`str`, read-only :term:`bytes-like object` or ``None``) " "``z#`` (:class:`str`, read-only :term:`bytes-like object` or ``None``) "
"[const char \\*, int]" "[const char \\*, int]"
msgstr "" msgstr ""
"``z#`` (:class:`str`, :term:`objet compatible avec une chaîne d'octets "
"<bytes-like object>` en lecture seule ou ``None``) [constante char \\*, "
"entier]"
#: ../Doc/c-api/arg.rst:109 #: ../Doc/c-api/arg.rst:109
#, fuzzy #, fuzzy
@ -237,6 +274,8 @@ msgstr ""
#: ../Doc/c-api/arg.rst:120 #: ../Doc/c-api/arg.rst:120
msgid "``y`` (read-only :term:`bytes-like object`) [const char \\*]" msgid "``y`` (read-only :term:`bytes-like object`) [const char \\*]"
msgstr "" msgstr ""
"``y`` (lecture seule :term:`objet compatible avec une chaîne d'octets <bytes-"
"like object>`) [constante char \\*]"
#: ../Doc/c-api/arg.rst:113 #: ../Doc/c-api/arg.rst:113
msgid "" msgid ""
@ -245,12 +284,18 @@ msgid ""
"contain embedded null bytes; if it does, a :exc:`ValueError` exception is " "contain embedded null bytes; if it does, a :exc:`ValueError` exception is "
"raised." "raised."
msgstr "" msgstr ""
"Ce format convertit un *objet compatible avec une chaîne d'octets* en un "
"pointeur C vers une chaîne de caractères ; il n'accepte pas les objets "
"Unicode. Le tampon d'octets ne doit pas contenir d'octets *null* ; si c'est "
"le cas, une exception :exc:`ValueError` est levée."
#: ../Doc/c-api/arg.rst:118 #: ../Doc/c-api/arg.rst:118
msgid "" msgid ""
"Previously, :exc:`TypeError` was raised when embedded null bytes were " "Previously, :exc:`TypeError` was raised when embedded null bytes were "
"encountered in the bytes buffer." "encountered in the bytes buffer."
msgstr "" msgstr ""
"Auparavant, :exc:`TypeError` était levée lorsque des octets *null* étaient "
"rencontrés dans le tampon d'octets."
#: ../Doc/c-api/arg.rst:125 #: ../Doc/c-api/arg.rst:125
msgid "``y*`` (:term:`bytes-like object`) [Py_buffer]" msgid "``y*`` (:term:`bytes-like object`) [Py_buffer]"
@ -265,6 +310,8 @@ msgstr ""
#: ../Doc/c-api/arg.rst:129 #: ../Doc/c-api/arg.rst:129
msgid "``y#`` (read-only :term:`bytes-like object`) [const char \\*, int]" msgid "``y#`` (read-only :term:`bytes-like object`) [const char \\*, int]"
msgstr "" msgstr ""
"``y#`` (lecture seule :term:`objet compatible avec une chaîne d'octets "
"<bytes-like object>`) [constante char \\*, entier]"
#: ../Doc/c-api/arg.rst:128 #: ../Doc/c-api/arg.rst:128
msgid "" msgid ""
@ -284,6 +331,10 @@ msgid ""
"attempting any conversion. Raises :exc:`TypeError` if the object is not a " "attempting any conversion. Raises :exc:`TypeError` if the object is not a "
"bytes object. The C variable may also be declared as :c:type:`PyObject\\*`." "bytes object. The C variable may also be declared as :c:type:`PyObject\\*`."
msgstr "" msgstr ""
"Nécessite que l'objet Python soit de type :class:`bytes`, sans avoir tenté "
"de conversion. :exc:`TypeError` est levée si l'objet n'est pas un objet de "
"type *bytes*. La variable C doit aussi être déclarée en tant que :c:type:"
"`PyObject\\*`."
#: ../Doc/c-api/arg.rst:139 #: ../Doc/c-api/arg.rst:139
msgid "``Y`` (:class:`bytearray`) [PyByteArrayObject \\*]" msgid "``Y`` (:class:`bytearray`) [PyByteArrayObject \\*]"
@ -311,6 +362,13 @@ msgid ""
"Python string must not contain embedded null code points; if it does, a :exc:" "Python string must not contain embedded null code points; if it does, a :exc:"
"`ValueError` exception is raised." "`ValueError` exception is raised."
msgstr "" msgstr ""
"Convertit un objet Python Unicode en un pointeur C vers un tampon de "
"caractères Unicode terminé par *NULL*. Vous devez passer l'adresse d'un "
"pointeur :c:type:`Py_UNICODE`, qui sera rempli avec le pointeur vers un "
"tampon Unicode existant. Veuillez noter que la taille d'un :c:type:"
"`Py_UNICODE` dépend des options de compilation (soit 16, soit 32 bits). La "
"chaîne de caractères Python ne doit pas contenir de code *NULL*. Si elle en "
"contient, une exception :exc:`ValueError` est levée."
#: ../Doc/c-api/arg.rst:157 ../Doc/c-api/arg.rst:166 ../Doc/c-api/arg.rst:174 #: ../Doc/c-api/arg.rst:157 ../Doc/c-api/arg.rst:166 ../Doc/c-api/arg.rst:174
#: ../Doc/c-api/arg.rst:182 #: ../Doc/c-api/arg.rst:182