-
Notifications
You must be signed in to change notification settings - Fork 266
Translate Library/shelve #236
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
library/shelve.po
Outdated
@@ -62,31 +79,52 @@ msgid "" | |||
"determine which accessed entries are mutable, nor which ones were actually " | |||
"mutated)." | |||
msgstr "" | |||
"À cause de la sémantique Python, une \"shelf\" ne peut pas savoir lorsqu'une " | |||
"entrée mutable de dictionnaire-persistant est modifiée. Par défaut les " |
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/mutable/muable ou simplement modifiable.
library/shelve.po
Outdated
@@ -62,31 +79,52 @@ msgid "" | |||
"determine which accessed entries are mutable, nor which ones were actually " | |||
"mutated)." | |||
msgstr "" | |||
"À cause de la sémantique Python, une \"shelf\" ne peut pas savoir lorsqu'une " | |||
"entrée mutable de dictionnaire-persistant est modifiée. Par défaut les " |
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.
quoi un trait d'union entre dictionnaire et persistant ?
library/shelve.po
Outdated
"entrée mutable de dictionnaire-persistant est modifiée. Par défaut les " | ||
"objets modifiés sont écris *seulement* lorsqu'ils sont assignés à une \"shelf" | ||
"\" (voir :ref:`shelve-example`). Si le paramètre optionnel *writeback* est " | ||
"mis à ``True``, toutes les entrées déjà accédées sont aussi misent en cache " |
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.
*mises
library/shelve.po
Outdated
"objets modifiés sont écris *seulement* lorsqu'ils sont assignés à une \"shelf" | ||
"\" (voir :ref:`shelve-example`). Si le paramètre optionnel *writeback* est " | ||
"mis à ``True``, toutes les entrées déjà accédées sont aussi misent en cache " | ||
"en mémoire, et ré-écrite sur :meth:`~Shelf.sync` et :meth:`~Shelf.close`; " |
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 un espace insécable avant le ;
.
library/shelve.po
Outdated
"\" (voir :ref:`shelve-example`). Si le paramètre optionnel *writeback* est " | ||
"mis à ``True``, toutes les entrées déjà accédées sont aussi misent en cache " | ||
"en mémoire, et ré-écrite sur :meth:`~Shelf.sync` et :meth:`~Shelf.close`; " | ||
"cela peut faciliter la mutation des entrées mutables dans le dictionnaire " |
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/mutation/modification/ ?
s/mutables/modifiables ?
library/shelve.po
Outdated
"Si le paramètre *writeback* est ``True``, l'objet va garder en cache toutes " | ||
"les entrées accédées et les écrire dans le *dict* aux moments de " | ||
"synchronisation et de fermeture. Cela permet des opérations naturelles sur " | ||
"les entrées mutables, mais peut consommer beaucoup plus de mémoire et rendre " |
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.
muables / modifiables
library/shelve.po
Outdated
|
||
#: ../Doc/library/shelve.rst:120 | ||
msgid "" | ||
"The *keyencoding* parameter is the encoding used to encode keys before they " | ||
"are used with the underlying dict." | ||
msgstr "" | ||
"Le paramètre *keyencoding* est l'encodage utilisé pour encoder les clés " | ||
"avant qu'elles soient utilisées avec le dictionnaire sous-jasent." |
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.
*jacent
library/shelve.po
Outdated
|
||
#: ../Doc/library/shelve.rst:123 | ||
msgid "" | ||
"A :class:`Shelf` object can also be used as a context manager, in which case " | ||
"it will be automatically closed when the :keyword:`with` block ends." | ||
msgstr "" | ||
"Un objet :class:`Shelf` peut également être utilisé comme un manager de " |
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/manager/gestionnaire/ (ou manager en italique, c'est un mot anglais).
library/shelve.po
Outdated
@@ -199,6 +288,13 @@ msgid "" | |||
"open` function. The optional *protocol* and *writeback* parameters have the " | |||
"same interpretation as for the :class:`Shelf` class." | |||
msgstr "" | |||
"Une sous-classe de :class:`Shelf` qui accète un *filename* au lieu d'un " |
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 un p à accepte, et il y a un accent de trop.
library/shelve.po
Outdated
@@ -209,19 +305,21 @@ msgid "" | |||
"To summarize the interface (``key`` is a string, ``data`` is an arbitrary " | |||
"object)::" | |||
msgstr "" | |||
"Pour résumer l'interface (``key`` est une chaîne de caractère, ``data`` est " | |||
"un objet arbitraire)::" |
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 ::
→ : ::
ou <espace insécable><deux points><deux points>
.
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 cette contribution.
library/shelve.po
Outdated
msgstr "" | ||
"Un *shelf* est un objet persistant, dictionnaire-compatible. La différence avec " | ||
"les bases de données \"dbm\" est que les valeurs (et non la clés !) dans un " |
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/et non la clés/pas les clés/ ?
library/shelve.po
Outdated
msgstr "" | ||
"Un *shelf* est un objet persistant, dictionnaire-compatible. La différence avec " | ||
"les bases de données \"dbm\" est que les valeurs (et non la clés !) dans un " | ||
"*shelf* peuvent être des objets Python, essentiellement arbitraires --- " |
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.
"peuvent être des objets Python arbitraires" ? le "essentiellement" étant "par essence".
library/shelve.po
Outdated
"Un *shelf* est un objet persistant, dictionnaire-compatible. La différence avec " | ||
"les bases de données \"dbm\" est que les valeurs (et non la clés !) dans un " | ||
"*shelf* peuvent être des objets Python, essentiellement arbitraires --- " | ||
"n'importe quoi que le module :mod:`pickle` peut gérer. Cela inclus la plupart " |
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/inclus/inclut/
library/shelve.po
Outdated
msgstr "" | ||
"Ouvre un dictionnaire persistant. Le nom de fichier spécifié est le nom de " | ||
"fichier de base pour la base de données sous-jacente. Comme effet de bord, une " |
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.
"basename" est le nom de fichier sans (son) extension. Par exemple, pour "fichier.txt", basename est "fichier".
library/shelve.po
Outdated
msgstr "" | ||
"À cause de la sémantique Python, un *shelf* ne peut pas savoir lorsqu'une entrée " | ||
"modifiable de dictionnaire persistant est modifiée. Par défaut les objets " | ||
"modifiés sont écris *seulement* lorsqu'ils sont assignés à une \"shelf\" (voir :" |
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/ecris/écrits/
library/shelve.po
Outdated
msgstr "" | ||
"Un objet :class:`Shelf` peut également être utilisé comme un gestionnaire de " | ||
"contexte, auquel cas il sera automatiquement fermé lorsque le block :keyword:" |
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 remplacerais "auquel cas" par un point-virgule.
library/shelve.po
Outdated
msgstr "" | ||
"Une sous-classe de :class:`Shelf` qui propose :meth:`first`, :meth:`!next`, :" |
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.
Dans la documentation, nous ne mettons généralement pas d'article indéfini dans ce cas (remarque générale). Ici :
"Sous-classe de ..."
library/shelve.po
Outdated
"le module tiers :mod:`bsddb` de `pybsddb <https://www.jcea.es/programacion/" | ||
"pybsddb.htm>`_ mais non dans les autres modules de base de données. L'objet " | ||
"*dict* passé au constructeur ne doit pas supporter ces méthodes. Cela est " | ||
"généralement fait en appeleant une des fonctions suivantes : :func:`bsddb." |
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/appeleant/appelant/
library/shelve.po
Outdated
msgstr "" | ||
"Une sous-classe de :class:`Shelf` qui accepte un *filename* au lieu d'un objet " | ||
"dictionnaire-compatible. Le fichier sous-jacent va être ouvert avec :func:`dbm." |
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 être/est/
et je mettrais le reste de la phrase aussi au présent.
library/shelve.po
Outdated
"open`. Par défaut le fichier va être créé en lecture et en écriture. Le " | ||
"paramètre optionnel *flag* peut être interprété de la même manière que pour la " | ||
"fonction :func:`.open`. Les paramètres optionnels *protocol* et *writeback* " | ||
"s'interprète de la même manière que pour la classe :class:`Shelf`." |
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/interprète/interprètent/ (les paramètres).
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.
J'ai fait encore quelques remarques.
library/shelve.po
Outdated
"dictionnaire persistant sur le disque, si faisable. Cela est appelé " | ||
"automatiquement quand le *shelf* est fermé avec :meth:`close`." | ||
"Réécrit toutes les entrées dans le cache si le *shelf* a été ouvert avec *writeback* passé " | ||
"à :const:`True`. Vide le cache et synchroniser le dictionnaire persistant sur le disque, si " |
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/synchroniser/synchronise/
library/shelve.po
Outdated
"dépend de l'interface disponible. Donc c'est risqué d'ouvrir la base de données directement " | ||
"en utilisant :mod:`dbm`. La base de données est également (malheureusement) sujette à des " | ||
"limitations de :mod:`dbm`, si c'est utilisé --- cela signifie que (la représentation " | ||
"*pickled* de) l'objet stocké dans la base de données doit être assez petit, et dans de rare " |
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.
doit être assez petit et, dans de rares cas, des collisions ...
library/shelve.po
Outdated
"nécessite des connaissances à propos de l'implémentation de la base de données " | ||
"utilisée." | ||
"Le module :mod:`shelve` ne gère pas l'accès *concurrent* en lecture/écriture sur les objets " | ||
"stockés (les accès multiples simultanés sont sûrs). Lorsqu'un programme a un *shelf* ouvert " |
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.
les accès simultanés en lecture sont sûrs.
library/shelve.po
Outdated
"mais peut consommer beaucoup plus de mémoire et rendre les temps de " | ||
"synchronisation et de fermeture très long." | ||
"Si le paramètre *writeback* est ``True``, l'objet garde en cache toutes les entrées " | ||
"accédées et les écrire dans le *dict* aux moments de synchronisation et de fermeture. Cela " |
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/les écrire/les écrit/
library/shelve.po
Outdated
"contexte, auquel cas il sera automatiquement fermé lorsque le block :keyword:" | ||
"`with` sera terminé." | ||
"Un objet :class:`Shelf` peut également être utilisé comme un gestionnaire de contexte ; il " | ||
"sera automatiquement fermé lorsque le block :keyword:`with` sera terminé." |
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 cette phrase au présent.
library/shelve.po
Outdated
msgstr "" | ||
"Ajout du paramètre *keyencoding* ; précédemment, les clés étaient toujours " | ||
"encodés en UTF-8." | ||
"Ajout du paramètre *keyencoding* ; précédemment, les clés étaient toujours encodés en UTF-8." |
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/encodés/encodées/ (les clés)
library/shelve.po
Outdated
"optionnels *protocol*, *writeback*, et *keyencoding* ont la même signification " | ||
"que pour la classe :class:`Shelf`." | ||
"Sous-classe de :class:`Shelf` qui propose :meth:`first`, :meth:`!next`, :meth:`previous`, :" | ||
"meth:`last` and :meth:`set_location` qui sont disponible dans le module tiers :mod:`bsddb` " |
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/and/et/
s/disponible/disponibles/ (les méthodes)
library/shelve.po
Outdated
"Sous-classe de :class:`Shelf` qui propose :meth:`first`, :meth:`!next`, :meth:`previous`, :" | ||
"meth:`last` and :meth:`set_location` qui sont disponible dans le module tiers :mod:`bsddb` " | ||
"de `pybsddb <https://www.jcea.es/programacion/pybsddb.htm>`_ mais non dans les autres " | ||
"modules de base de données. L'objet *dict* passé au constructeur ne doit pas supporter 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.
Nous traduisons "to support" par "gérer".
Il me semble que la phrase originale dit l'inverse : l'objet doit (savoir) gérer ces méthodes.
Fix #119