Skip to content

Collections#305

Merged
JulienPalard merged 15 commits into
python:3.7from
Arkelis:collections
Oct 5, 2018
Merged

Collections#305
JulienPalard merged 15 commits into
python:3.7from
Arkelis:collections

Conversation

@Arkelis

@Arkelis Arkelis commented Sep 18, 2018

Copy link
Copy Markdown
Contributor

La traduction n'est pas encore terminée, mais je mets à disposition ce qui été fait pour relecture

@JulienPalard JulienPalard left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Les commentaires faits se répètent sur le reste de la traduction.

Comment thread library/collections.po Outdated
#: ../Doc/library/collections.rst:32
msgid "wrapper around list objects for easier list subclassing"
msgstr ""
msgstr "enrobeur autour des objets listes pour faciliter l'héritage de list"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

surcouche ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Encapsulation (valable pour les précédent/suivant aussi) ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

J'ai opté pour surcouche

Comment thread library/collections.po Outdated
#: ../Doc/library/collections.rst:31
msgid "wrapper around dictionary objects for easier dict subclassing"
msgstr ""
"enrobeur autour des objets dictionnaires pour faciliter l'héritage de dict"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tu peux mettre dict entre double backticks, comme ça :

``dict``

ça montre que c'est du code.

Comment thread library/collections.po Outdated
msgstr ""
"Un objet :class:`ChainMap` regroupe plusieurs dictionnaires ou autres "
"tableaux de correspondance (*mappings*) en une vue que l'on peut mettre à "
"jour. Si l'on ne pas de *maps*, un dictionnaire vide est fourni de telle "

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

s/Si l'on ne pas de/Si le paramètre maps est vide/

Comment thread library/collections.po Outdated
"The underlying mappings are stored in a list. That list is public and can "
"be accessed or updated using the *maps* attribute. There is no other state."
msgstr ""
"Les *mappings* sous-jacentes sont stockées dans une liste. Celle-ci est "

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

tu peut probablement traduire mappings par dictionnaires. Ils disent mapping pour pas dire dict, pour faire la séparation entre le type et le protocole. Dictionnaire en francais n'est pas le type, donc je pense qu'il convient pour décrire l'idée, si on fait un peu le raccourci idée → protocole.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

D'accord pour écrire dictionnaire au lieu de mapping, ça permet d'éviter le terme "tableau de correspondance" qui est un peu lourd

Comment thread library/collections.po Outdated
#: ../Doc/library/collections.rst:26
msgid "list-like container with fast appends and pops on either end"
msgstr ""
"conteneur se comportant comme une liste avec des ajouts et *pop* rapides à "

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

s/pop/retraits ?

Comment thread library/collections.po Outdated
msgid "dict-like class for creating a single view of multiple mappings"
msgstr ""
"classe semblable aux dictionnaires qui crée une unique vue à partir de "
"plusieurs tableaux de correspondance"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

s/tableaux de correspondance/dictionnaires/ ?

@christopheNan christopheNan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Gros travail effectué ! Merci.

Comment thread library/collections.po Outdated
#: ../Doc/library/collections.rst:26
msgid "list-like container with fast appends and pops on either end"
msgstr ""
"conteneur se comportant comme une liste avec des ajouts et *pop* rapides à "

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/pop/retraits/ ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

J'ai opté pour "éjection", je ne sais pas quel terme est plus adapté

@christopheNan christopheNan Sep 30, 2018

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Je pense qu'il faut trouver un mélange entre le vocabulaire des files et celui des des piles

Comment thread library/collections.po Outdated
#: ../Doc/library/collections.rst:28
msgid "dict subclass for counting hashable objects"
msgstr ""
msgstr "sous-classe de dictionnaire pour compter les objets hachables"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/les/des/ ?

Comment thread library/collections.po Outdated
#: ../Doc/library/collections.rst:30
msgid "dict subclass that calls a factory function to supply missing values"
msgstr ""
"sous-classe de dictionnaire qui appelle une fonction de fabrication pour "

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/pour fournir .../en cas de valeur manquante/

Comment thread library/collections.po Outdated
#: ../Doc/library/collections.rst:32
msgid "wrapper around list objects for easier list subclassing"
msgstr ""
msgstr "enrobeur autour des objets listes pour faciliter l'héritage de list"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Encapsulation (valable pour les précédent/suivant aussi) ?

Comment thread library/collections.po Outdated
"calls."
msgstr ""
"Le module fournit une classe :class:`ChainMap` afin de réunir rapidement un "
"certain nombre de tableaux de correspondance en une unique entité. Cela est "

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/un certain nombre/plusieurs/ ?

Comment thread library/collections.po Outdated
#: ../Doc/library/collections.rst:507
msgid "Reverse the elements of the deque in-place and then return ``None``."
msgstr ""
"Inverse le sens des éléments de la *deque* en les remplaçant et retourne "

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Inverse l'ordre des éléments de la deque (sans créer de copie) et renvoie None ?

Comment thread library/collections.po Outdated
"``d.appendleft(d.pop())``, and rotating one step to the left is equivalent "
"to ``d.append(d.popleft())``."
msgstr ""
"Quand la *deque* n'est pas vide, décaler d'une place ves la droite est "

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/décaler/un décalage/ ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/ves/vers/
Le verbe "est" est en trop.

Comment thread library/collections.po Outdated
"middle. For fast random access, use lists instead."
msgstr ""
"En plus des méthodes précédentes, les *deques* gèrent l'itération, le "
"*pickling*, ``len(d)``, ``reversed(d)``, ``copy.copy(d)``, ``copy."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

pickling : la sérialisation ?

Comment thread library/collections.po Outdated
"En plus des méthodes précédentes, les *deques* gèrent l'itération, le "
"*pickling*, ``len(d)``, ``reversed(d)``, ``copy.copy(d)``, ``copy."
"deepcopy(d)``, le test d'appartenance avec l'opérateur :keyword:`in`, et les "
"références en indice comme ``d[-1]``. L'accès par index est en O(1) aux "

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/index/indice/

Comment thread library/collections.po Outdated
"in Unix::"
msgstr ""
"Les *deques* à taille limitée apportent une fonctionnalité similaire au "
"filitre ``tail`` d'Unix : ::"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

filtre

@Arkelis

Arkelis commented Sep 30, 2018

Copy link
Copy Markdown
Contributor Author

Traduction terminée, je me penche maintenant sur vos remarques. (Je viens de les voir !)

@JulienPalard

Copy link
Copy Markdown
Member

@Arkelis Travis a trouvé des fautes d'orthographe aussi :
library/collections.po:99:dict
library/collections.po:108:list
library/collections.po:197:attrbiut
library/collections.po:241:fontion
library/collections.po:361:multiensembles
library/collections.po:433:intérable
library/collections.po:476:multiensembles
library/collections.po:505:multiensembles.
library/collections.po:558:multiensembles
library/collections.po:594:tutoriaux
library/collections.po:602:multiensembles
library/collections.po:612:multiensembles
library/collections.po:635:dèque
library/collections.po:635:l'abbréviation
library/collections.po:635:double-ended
library/collections.po:635:deques
library/collections.po:635:deque
library/collections.po:783:ves
library/collections.po:838:filitre
library/collections.po:903:méthde
library/collections.po:1033:multiensembles
library/collections.po:1043:recontrée
library/collections.po:1055:foncitons
library/collections.po:1075:-uplets
library/collections.po:1289:d'isntance.
library/collections.po:1299:nouveaut
library/collections.po:1389:dicitonnaires
library/collections.po:1530:oprérations
library/collections.po:1617:réimplémentées.

Généralement c'est des lettres qui manque, pour "-uplets" si c'est "3-uplet" tu peux traduire par triplet etc, (c.f. article wikipedia sur n-uplet qui en liste 5), pour les types du langage (dict, list) tu peux les mettre entre double backtick, ça fait "code", ce qui est vrai.

@Arkelis

Arkelis commented Sep 30, 2018

Copy link
Copy Markdown
Contributor Author

Je viens de réussir à utiliser pospell :) il fallait que j'indique fr_FR comme langue, fr donnait une erreur.
Pour -uplets, c'est parce que j'ai marqué une fois *n*-uplets.

Comment thread library/collections.po Outdated
"selon l'ordre de recherche. Il s'agit de l'unique état stocké et peut être "
"modifié pour changer l'ordre de recherche. La liste doit toujours contenir "
"au moins un dictionnaire."
"Liste de dictionnaires éditable par l'utilisateur et ordonnée selon l'ordre "

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/ordonnée/classée/ pour éviter la répétition avec ordre de recherche.

Comment thread library/collections.po Outdated
"modifié pour changer l'ordre de recherche. La liste doit toujours contenir "
"au moins un dictionnaire."
"Liste de dictionnaires éditable par l'utilisateur et ordonnée selon l'ordre "
"de recherche. Il s'agit de l'unique état stocké et elle peut être modifié "

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/modifié/modifiée/

Comment thread library/collections.po Outdated
msgstr ""
"En plus des méthodes précédentes, les *deques* gèrent l'itération, le "
"*pickling*, ``len(d)``, ``reversed(d)``, ``copy.copy(d)``, ``copy."
"En plus des méthodes précédentes, les *deques* gèrent l'itération, "

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/lé/la/

@Arkelis

Arkelis commented Oct 1, 2018

Copy link
Copy Markdown
Contributor Author

Hunspell ne reconnait pas les mots "multiensemble" et "réimplémenter".

Pour "dèque", c'est pour indiquer la prononciation de deque, comment résoudre ce problème ?

@christopheNan christopheNan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Très bonne contribution en quantité et qualité (juste des remarques mineures).
Merci beaucoup !

Comment thread library/collections.po Outdated
"que celle-ci est atteinte, un ajout d'un ou plusieurs éléments engendrera la "
"suppression du nombre correspondant d'éléments à l'autre extrémité de la *deque*. Les "
"*deques* à longueur limitée apportent des fonctionnalités similaire au filtre ``tail`` "
"d'Unix. Elles sont aussi utile pour le suivi de transactions et autres lots de données "

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/utile/utiles/

Comment thread library/collections.po Outdated
msgstr ""
"La méthode :meth:`~deque.rotate` apporte une façon d'implémenter le *slicing* et les "

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

pour slicing : la sélection d'un intervalle (slicing en anglais)

Comment thread library/collections.po Outdated
"Pour implémenter le *slicing* pour les :class:`deques <deque>`, il est possible "
"d'utiliser une approche similaire en appliquant :meth:`~deque.rotate` pour apporter un "
"élément cible à l'extrémité gauche de la *deque*. On éjecte les anciennes entrées avec :"
"meth:`~deque.popleft` et ajouter les nouvelles avec :meth:`~deque.extend`, puis on "

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/et ajouter/, on ajoute/

Comment thread library/collections.po Outdated
msgstr ""
"Renvoie un nouvel objet qui se comporte comme un dictionnaire. :class:`defaultdic` est "
"une sous-classe de la la classe native :class:`dict`. Elle surcharge une méthode et "
"ajoute une variable d'instance inscriptible. Les autres fonctionnalités sont les même "

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/inscriptible/accessible en lecture-écriture/ ?

@Arkelis Arkelis Oct 4, 2018

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

"modifiable" ?

Comment thread library/collections.po Outdated
msgstr ""
"Renvoie un nouvel objet qui se comporte comme un dictionnaire. :class:`defaultdic` est "
"une sous-classe de la la classe native :class:`dict`. Elle surcharge une méthode et "
"ajoute une variable d'instance inscriptible. Les autres fonctionnalités sont les même "

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/même/mêmes que/

Comment thread library/collections.po Outdated
msgid ""
"Retur

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/le tri/un classement/ (pour les puristes)

Comment thread library/collections.po Outdated
msgid ""
"Retur

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/ordre de tri/classement/

Comment thread library/collections.po Outdated
msgid ""
"Retur

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

le classement est perdu.

@Arkelis Arkelis Oct 4, 2018

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

et s/t/et/

Comment thread library/collections.po Outdated
msgid ""
"Retur

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

futur inutile à mon avis.

Comment thread library/collections.po Outdated
msgid ""
"Retur

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/supporter/gérer/

@JulienPalard

Copy link
Copy Markdown
Member

Travis a trouvé quelques erreurs :

library/collections.po:335:multiensembles
library/collections.po:442:multiensembles
library/collections.po:468:multiensembles.
library/collections.po:518:multiensembles
library/collections.po:562:multiensembles
library/collections.po:570:multiensembles
library/collections.po:591:dèque
library/collections.po:1001:-uplets
library/collections.po:1505:réimplémentées.

Pour *n*-uplets (tuples) tu peux soit mettre *n-uplets* (tuples), soit carrément *tuples*.

Pour deque tu peux probablement traduire *deque*, je doute que dèque soit légitime : deque est l'abbréviation de double ended queue.

multiensembles tu peux l'ajouter au fichier dict (https://fr.wikipedia.org/wiki/Multiensemble)

@JulienPalard JulienPalard merged commit d4a0d02 into python:3.7 Oct 5, 2018
@JulienPalard

Copy link
Copy Markdown
Member

👍

@Arkelis

Arkelis commented Oct 5, 2018

Copy link
Copy Markdown
Contributor Author

Super ! Merci pour vos relectures :)

@Arkelis Arkelis deleted the collections branch October 8, 2018 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants