-
-
Notifications
You must be signed in to change notification settings - Fork 262
WIP: Translation of library/dataclasses.po (#306) #322
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.
Je pense qu'on peut mettre un maximum de phrases au présent, sans que le sens n'en soit changé. Cela facilite la lecture (j'aurais pu mettre cette phrase au futur, mais le présent est plus concis).
library/dataclasses.po
Outdated
@@ -29,32 +30,45 @@ msgid "" | |||
"`__repr__` to user-defined classes. It was originally described in :pep:" | |||
"`557`." | |||
msgstr "" | |||
"Ce module fournit un décorateur et des fonctions pour générer " | |||
"automatiquement les :term:`special method`\\s comme :meth:`__init__` et :" |
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.
Je pense qu'on peut traduire "special methods" par "méthodes spéciales".
library/dataclasses.po
Outdated
@@ -29,32 +30,45 @@ msgid "" | |||
"`__repr__` to user-defined classes. It was originally described in :pep:" | |||
"`557`." | |||
msgstr "" | |||
"Ce module fournit un décorateur et des fonctions pour générer " | |||
"automatiquement les :term:`special method`\\s comme :meth:`__init__` et :" | |||
"meth:`__repr__` dans les *Data Classes* définies par l’utilisateur. Ces " |
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.
Data Classes : classes de données ?
library/dataclasses.po
Outdated
|
||
#: ../Doc/library/dataclasses.rst:32 | ||
msgid "Will add, among other things, a :meth:`__init__` that looks like::" | ||
msgstr "" | ||
"Va ajouter, entre autres choses, une méthode :meth:`__init__` qui ressemble " |
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.
On peut mettre au présent beaucoup de futurs utilisés en anglais.
library/dataclasses.po
Outdated
@@ -63,12 +77,19 @@ msgid "" | |||
"exceptions described below, nothing in :func:`dataclass` examines the type " | |||
"specified in the variable annotation." | |||
msgstr "" | |||
"Le décorateur :func:`dataclass` examine la classe pour trouver des ``field``" |
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.
Je pense qu'on peut traduire "field" par "champ".
library/dataclasses.po
Outdated
"Le décorateur :func:`dataclass` va ajouter diverses méthodes « spéciales » à " | ||
"la classe, décrites ci-après. Si l’une des méthodes ajoutées existe déjà " | ||
"dans la classe, le comportement va dépendre du paramètre, comme documenté ci-" | ||
"dessous. Le décorateur renvoie la classe sur laquelle il est appelé; il n’y " |
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.
il manque une espace insécable avant le point-virgule.
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.
Comment insère-t-on les espaces insécables ?
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.
Ça dépend du système d'exploitation et de la configuration du clavier. Une recherche avec un moteur de recherche devrait fournir la réponse pour ta configuration.
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.
Personellement j'utilise une Compose Key, et pour moi c'est Compose-Espace-Espace
. Mais aux dernières nouvelles, Microsoft n'a toujours pas implémenté de compose key sur Windows.
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.
Merci pour vos réponses, je me demandais juste s'il existait un "code" en RST pour en insérer un à la manière du
en HTML
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.
Je n'en ai jamais cherché, mais si tu le trouve, dis le nous, ça aidera tous ceux qui ne savent pas faire d'espaces insécables.
library/dataclasses.po
Outdated
"la classe, décrites ci-après. Si l’une des méthodes ajoutées existe déjà " | ||
"dans la classe, le comportement va dépendre du paramètre, comme documenté ci-" | ||
"dessous. Le décorateur renvoie la classe sur laquelle il est appelé; il n’y " | ||
"a pas de nouvelle classe crée." |
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.
s/crée/créée/
library/dataclasses.po
Outdated
@@ -133,18 +180,29 @@ msgid "" | |||
"instances in the comparison must be of the identical type. If ``order`` is " | |||
"true and ``eq`` is false, a :exc:`ValueError` is raised." | |||
msgstr "" | |||
"``order``: Si vrai (``False`` par défaut), les méthodes :meth:`__lt__`, :" | |||
"meth:`__le__`, :meth:`__gt__`, et :meth:`__ge__` seront générées. Elles " | |||
"permettent de comparer les instances de la classe comme si c’était des " |
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.
comme si elles étaient (les instances)
library/dataclasses.po
Outdated
|
||
#: ../Doc/library/dataclasses.rst:121 | ||
msgid "" | ||
"``unsafe_hash``: If ``False`` (the default), a :meth:`__hash__` method is " | ||
"generated according to how ``eq`` and ``frozen`` are set." | ||
msgstr "" | ||
"``unsafe_hash``: Si ``False`` (par défaut), une méthode :meth:`__hash__` est " | ||
"générée et son comportement va dépendre des valeurs de ``eq`` et ``frozen``." |
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.
s/va dépendre/dépend/
"que lorsqu’un objet est inséré dans une collection utilisant du hachage, tel " | ||
"qu’un dictionnaire ou un ensemble. Avoir une méthode :meth:`__hash__` " | ||
"implique que les instances de la classe sont immuables. La muabilité est une " | ||
"propriété complexe qui dépends des intentions du programmeur, de l’existence " |
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.
s/dépends/dépend/
library/dataclasses.po
Outdated
"`__hash__`, sauf s’il n’existe aucun risque sous-jacent. Il n’ajoutera ou " | ||
"ne modifiera pas non plus la méthode :meth:`__hash__` method si elle a été " | ||
"définie de manière explicite. Définir l’attribut de classe ``__hash__ = " | ||
"None`` a une signification particulière en Python, comme documenté dans la " |
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.
s/documenté/précisé/
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.
Le vocabulaire des DataClasses doit être validé et consolidé dans le glossaire.
Merci pour la relecture. Bien noté pour l'utilisation du présent, je vais faire les changements. Une simple question de néophyte, que veut dire la phrase "Le vocabulaire des DataClasses doit être validé et consolidé dans le glossaire." ? Comment est-ce qu'on fait ça ? J'ai commencé cette traduction dans l'atelier de traduction de l'afpy, les personnes présentes étaient plutôt pour laisser "DataClasses" mais s'il faut traduire en "Classes de Données", pas de problème, je ne sais juste pas quel est le process de décision et comment "consolider dans le glossaire" comme tu dis. Merci ! |
Je pense qu'il faut que, au sein de ta PR, tu ajoutes dans le glossaire de README.rst (à la racine) les termes nouvellement introduits par les DataClasses. Les commentaires sur la PR permettront, j'espère, d'obtenir un consensus. |
library/dataclasses.po
Outdated
|
||
#: ../Doc/library/dataclasses.rst:45 | ||
msgid "Module-level decorators, classes, and functions" | ||
msgstr "" | ||
msgstr "Décorateurs au niveau du module, classes, et fonctions" |
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.
Décorateurs, classes et fonctions au niveau du module
library/dataclasses.po
Outdated
|
||
#: ../Doc/library/dataclasses.rst:99 | ||
msgid "" | ||
"If the class already defines :meth:`__repr__`, this parameter is ignored." | ||
msgstr "" | ||
"Si la classe définit déjà une méthode :meth:`__repr__`, ce paramètre est " | ||
"idnoré." |
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.
idnoré -> ignoré
Je serai au sprint pyconfr et je m'occuperai de faire tous les changements (ainsi que les 2/3 manquants) à ce moment. |
987882d
to
a59fb76
Compare
Tous les changements requis sur le premier tiers de la doc ont été traduits, mergez si vous le souhaitez et j'essaierai de travailler sur la suite, je ne sais juste pas quand. |
|
||
#: ../Doc/library/dataclasses.rst:32 | ||
msgid "Will add, among other things, a :meth:`__init__` that looks like::" | ||
msgstr "" | ||
"Ajoute, entre autres choses, une méthode :meth:`__init__` qui ressemble à ::" |
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.
s/ressemble à/est de la forme/ ?
|
||
#: ../Doc/library/dataclasses.rst:67 | ||
msgid "" | ||
"If :func:`dataclass` is used just as a simple decorator with no parameters, " | ||
"it acts as if it has the default values documented in this signature. That " | ||
"is, these three uses of :func:`dataclass` are equivalent::" | ||
msgstr "" | ||
"Si :func:`dataclass` est utilisé comme simple décorateur sans paramètres, il " |
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.
s/utilisé/utilisée/ (c'est une fonction)
Environ 1/3 du fichier traduit, je vais faire une passe d'harmonisation avant de demander un merge.