Skip to content

Conversation

@Abdur-rahmaanJ
Copy link
Contributor

No description provided.

@JulienPalard
Copy link
Member

Selon travis :

c-api/buffer.rst:121:Inline literal start-string without end-string. 

Tu peux retrouver l'erreur dans le ".po" en cherchant la chaîne "buffer.rst:121".

msgstr ""
"Pour de brèves instructions sur l'écriture d'un objet exportateur, voir :ref:"
"`Buffer Object Structures <buffer-structs>`. Pour obtenir un tampon, voir :"
"c: func:`PyObject_GetBuffer`."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il n'y a pas d'espace entre le c: et le func: c'est :

:c:func:`PyObject_GetBuffer` 
@Abdur-rahmaanJ
Copy link
Contributor Author

en passant en anglais see NUL instead of NULL @JulienPalard

@Abdur-rahmaanJ
Copy link
Contributor Author

L'accès ((char *) buf) [0] up to ((char *) buf) [len-1] n'est valide que si le tampon a été obtenu par une requête qui garantit la contiguïté. Dans la plupart des cas, une telle requête sera :c:macro: PyBUF_SIMPLE ou :c:macro:PyBUF_WRITABLE.

pas d'idee ou se trouve l'erreur

msgstr ""
"L'accès ``((char *) buf) [0] up to ((char *) buf) [len-1] `` n'est valide "
"que si le tampon a été obtenu par une requête qui garantit la contiguïté. "
"Dans la plupart des cas, une telle requête sera :c:macro: `PyBUF_SIMPLE` ou :"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il y a une espace en trop après :c:macro: et avant `PyBUF8SIMPLE`.
Puis, il y a une espace en trop après :c:macro:` et avant PyBUF_WRITABLE`

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah @christopheNan ok je vois

@JulienPalard
Copy link
Member

On est aux sprints à la PyCon Fr je vais essayer de fixer et de merger :)

msgstr ""
"Un pointeur vers le début de la structure logique décrite par les champs "
"tampons. Cela peut être n'importe quel emplacement dans le bloc de mémoire "
"physique sous-jacente de l'exportateur. Par exemple, avec negative :c:member:"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"avec negative" ?

"Un pointeur vers le début de la structure logique décrite par les champs "
"tampons. Cela peut être n'importe quel emplacement dans le bloc de mémoire "
"physique sous-jacente de l'exportateur. Par exemple, avec negative :c:member:"
"`~ Py_buffer.strides`, la valeur peut pointer vers la fin du bloc de mémoire."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il y a un espace de trop entre ~ et Py_buffer.strides.

"For :term:`contiguous` arrays, the value points to the beginning of the "
"memory block."
msgstr ""
"Pour tableaux :term:`contiguous`, la valeur pointe vers le début du bloc "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Pour tableaux" ???

"standard C-API function."
msgstr ""
"Une nouvelle référence à l'objet exportateur. La référence appartient au "
"consommateur et est automatiquement décrémentée et définie sur * NULL* par :"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"définie sur * NULL *" ? → s/sur/à/ et pas d'espaces entre les étoiles et NULL.

"Une nouvelle référence à l'objet exportateur. La référence appartient au "
"consommateur et est automatiquement décrémentée et définie sur * NULL* par :"
"c:func:`PyBuffer_Release`. Le champ est l'équivalent de la valeur de retour "
"de toute fonction C-API standard."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"de toute fonction C-API standard" -> "De toute fonction de l'API C" ?

msgstr ""
"Comme cas particulier, pour les tampons * temporaires* qui sont enveloppés "
"par :c:func:`PyMemoryView_FromBuffer` ou :c:func:` PyBuffer_FillInfo` ce "
"champ est * NULL*. En général, l'exportation d'objets NE DOIT PAS utiliser "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Un espace de trop avant NULL.

"most cases such a request will be :c:macro:`PyBUF_SIMPLE` or :c:macro:"
"`PyBUF_WRITABLE`."
msgstr ""
"L'accès ``((char *) buf) [0] up to ((char *) buf) [len-1] `` n'est valide "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Un espace de trop avant le `` fermant.

"An indicator of whether the buffer is read-only. This field is controlled by "
"the :c:macro:`PyBUF_WRITABLE` flag."
msgstr ""
"Un indicateur indiquant si le tampon est en mode lecture seule. Ce champ est "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/Un indicateur/Indicateur/

"Item size in bytes of a single element. Same as the value of :func:`struct."
"calcsize` called on non-NULL :c:member:`~Py_buffer.format` values."
msgstr ""
"Taille de l'élément en octets d'un seul élément. Identique à la valeur de :"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Taille de l'élément d'un seul élément" me semble redondant.

"but :c:member:`~Py_buffer.itemsize` still has the value for the original "
"format."
msgstr ""
"Exception importante: Si un consommateur demande un tampon sans "
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il manque un espace après "importante".

@JulienPalard
Copy link
Member

Trop de choses à corriger, j'abandonne de fixer moi même et de merger aujourd'hui, je te laisse fixer @Abdur-rahmaanJ .

@Abdur-rahmaanJ
Copy link
Contributor Author

Abdur-rahmaanJ commented Oct 4, 2018

@JulienPalard
Copy link
Member

Je te laisse ré-ouvrir une PR une fois fixé.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants