Skip to content

Collections #305

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

Merged
merged 15 commits into from
Oct 5, 2018
Merged

Collections #305

merged 15 commits into from
Oct 5, 2018

Conversation

Arkelis
Copy link
Contributor

@Arkelis Arkelis commented Sep 18, 2018

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

Copy link
Member

@JulienPalard JulienPalard left a comment

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.


#: ../Doc/library/collections.rst:32
msgid ":class:`UserList`"
msgstr ":class:`UserList`"

#: ../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
Member

Choose a reason for hiding this comment

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

surcouche ?

Copy link
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
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

@@ -84,14 +97,15 @@ msgstr ":class:`UserDict`"
#: ../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
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.

@@ -132,33 +158,50 @@ msgid ""
"empty dictionary is provided so that a new chain always has at least one "
"mapping."
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
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/


#: ../Doc/library/collections.rst:59
msgid ""
"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
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
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

@@ -44,6 +49,8 @@ msgstr ":class:`deque`"
#: ../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
Member

Choose a reason for hiding this comment

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

s/pop/retraits ?

@@ -52,14 +59,16 @@ msgstr ":class:`ChainMap`"
#: ../Doc/library/collections.rst:27
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
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/ ?

Copy link
Contributor

@christopheNan christopheNan left a comment

Choose a reason for hiding this comment

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

Gros travail effectué ! Merci.

@@ -44,6 +49,8 @@ msgstr ":class:`deque`"
#: ../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
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
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é

Copy link
Contributor

@christopheNan christopheNan Sep 30, 2018

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


#: ../Doc/library/collections.rst:28
msgid ":class:`Counter`"
msgstr ":class:`Counter`"

#: ../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
Contributor

Choose a reason for hiding this comment

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

s/les/des/ ?

@@ -76,6 +87,8 @@ msgstr ":class:`defaultdict`"
#: ../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
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/


#: ../Doc/library/collections.rst:32
msgid ":class:`UserList`"
msgstr ":class:`UserList`"

#: ../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
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) ?

@@ -119,11 +139,17 @@ msgid ""
"than creating a new dictionary and running multiple :meth:`~dict.update` "
"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
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/ ?

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
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 ?

msgid ""
"When the deque is not empty, rotating one step to the right is equivalent to "
"``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
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
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.

msgid ""
"In addition to the above, deques support iteration, pickling, ``len(d)``, "
"``reversed(d)``, ``copy.copy(d)``, ``copy.deepcopy(d)``, membership testing "
"with the :keyword:`in` operator, and subscript references such as "
"``d[-1]``. Indexed access is O(1) at both ends but slows to O(n) in the "
"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
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 ?

"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
Contributor

Choose a reason for hiding this comment

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

s/index/indice/

msgid ""
"Bounded length deques provide functionality similar to the ``tail`` filter "
"in Unix::"
msgstr ""
"Les *deques* à taille limitée apportent une fonctionnalité similaire au "
"filitre ``tail`` d'Unix : ::"
Copy link
Contributor

Choose a reason for hiding this comment

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

filtre

@Arkelis
Copy link
Contributor Author

Arkelis commented Sep 30, 2018

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

@JulienPalard
Copy link
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
Copy link
Contributor Author

Arkelis commented Sep 30, 2018

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.

"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
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.

"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
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/

@@ -806,11 +811,11 @@ msgid ""
"``d[-1]``. Indexed access is O(1) at both ends but slows to O(n) in the "
"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."
"En plus des méthodes précédentes, les *deques* gèrent l'itération, lé "
Copy link
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
Copy link
Contributor Author

Arkelis commented Oct 1, 2018

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 ?

Copy link
Contributor

@christopheNan christopheNan left a comment

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 !

"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
Contributor

Choose a reason for hiding this comment

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

s/utile/utiles/

msgstr ""
"La méthode :meth:`~deque.rotate` apporte une façon d'implémenter le *slicing* et les "
Copy link
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)

"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
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/

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
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/ ?

Copy link
Contributor Author

@Arkelis Arkelis Oct 4, 2018

Choose a reason for hiding this comment

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

"modifiable" ?

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
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/

msgid ""
"Retur
Copy link
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)

msgid ""
"Retur
Copy link
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/

msgid ""
"Retur
Copy link
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.

Copy link
Contributor Author

@Arkelis Arkelis Oct 4, 2018

Choose a reason for hiding this comment

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

et s/t/et/

msgid ""
"Retur
Copy link
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.

msgid ""
"Retur
Copy link
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
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
Member

👍

@Arkelis
Copy link
Contributor Author

Arkelis commented Oct 5, 2018

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