-
Notifications
You must be signed in to change notification settings - Fork 266
Je travaille sur c-api/memoryview.po #1173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Traduction difficile, mais dans c-api/ c'est pas surprenant :)
c-api/memoryview.po
Outdated
@@ -32,19 +36,28 @@ msgid "" | |||
"will be read/write, otherwise it may be either read-only or read/write at " | |||
"the discretion of the exporter." | |||
msgstr "" | |||
"Crée un objet memoryview à partir d'un objet qui fournit l'interface tampon. " | |||
"si *obj* permet des exports d'interface tampon, l'objet memoryview peut être " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If *obj* supports writable buffer exports
n'est pas évident à traduire. Dans ta traduction il manque la notion de writable
.
Dans tous les cas l'objet permet l'export, sans quoi on ne peut pas créer un memoryview. L'export c'est le fait d'exposer un buffer via une API. Cette API fournit un buffer, ce buffer exporté peut soit etre en lecture seule, en ce cas la memoryview sera en lecture seule, soit être en lecture/écriture en ce cas la memoryview sera en lecture/écriture.
Il faut, je pense, lire https://docs.python.org/3/c-api/buffer.html avant, qui explique ce que signifie "exporter un buffer" :
a type can export a “buffer interface” which allows objects of that type to expose information about their underlying buffer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
La doc dit Any object that can export a series of bytes through the buffer interface can be written to a file
.
On pourrait faire cela : Si *obj* permet les exports d'interfaces tampon en lecture comme en écriture notamment lors d'un write()
. Qu'en penses-tu ?
@kw-andy tu reprends :) ? Tu as vu que pospell n'accepte pas le mot memoryview ? |
@awecx @christopheNan votre avis sur le "memoryview" ? Entre astérisques ou traduit ? |
Je ne vois pas de traduction satisfaisante (« vue mèmoire » ?). Je mettrais entre astèrisques. On pourra toujours le reprendre plus tard. |
je fais les corrections ce weekend. |
on y va ;) ? |
9a4d36b
to
0defe0e
Compare
J'ai changé la base de cette PR de 3.8 à 3.9. |
c-api/memoryview.po
Outdated
@@ -24,6 +25,9 @@ msgid "" | |||
"<bufferobjects>` as a Python object which can then be passed around like any " | |||
"other object." | |||
msgstr "" | |||
"Un objet :class:`memoryview` démontre / montre :ref:`buffer interface " | |||
"<bufferobjects>` comme un objet python via le niveau C. Cet objet peut être " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Plutot Expose le xxx du niveau C comme un objet Python
c-api/memoryview.po
Outdated
@@ -32,19 +36,28 @@ msgid "" | |||
"will be read/write, otherwise it may be either read-only or read/write at " | |||
"the discretion of the exporter." | |||
msgstr "" | |||
"Crée un objet memoryview à partir d'un objet qui fournit l'interface tampon. " | |||
"si *obj* permet des exports d'interface tampon, l'objet memoryview peut être " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"si *obj* permet des exports d'interface tampon, l'objet memoryview peut être " | |
"Si *obj* permet des exports d'interface *writable*, l'objet memoryview peut être " |
0defe0e
to
41f11cd
Compare
Co-authored-by: Jules Lasne (jlasne) <jlasne@student.42.fr>
No description provided.