Skip to content

Conversation

@matrixise
Copy link
Member

No description provided.

@matrixise matrixise changed the title Translate Pdb Translate library/pdb.po Jan 30, 2018
library/pdb.po Outdated
msgstr ""
"Le module :mod:`pdb` définit un débogueur de code source interactif pour les "
"programmes Python. Il supporte le paramétrage (conditionnel) de points "
"d'arrêt et des pas simples au niveau de la ligne source, l'inspection des "
Copy link
Member

Choose a reason for hiding this comment

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

"des pas simples au niveau de la ligne source" c'est "pas simple" à lire, peut être "l'exécution du code source ligne par ligne" ?

library/pdb.po Outdated
"d'arrêt et des pas simples au niveau de la ligne source, l'inspection des "
"trames de la pile, la liste du code source, et l'évaluation arbitraire de "
"code Python dans le contexte de n'importe quelle trame de la pile. Il "
"supporte aussi le débogage post-mortem et peut être appelé sous contrôle de "
Copy link
Member

Choose a reason for hiding this comment

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

"et peut être appelé sous contrôle de programme." me parait un peu litéral, pourquoi pas quelque chose comme "et peut être controllé depuis un programme." ?

library/pdb.po Outdated
"control of the debugger is::"
msgstr ""
"L'invite du débogueur est ``(Pdb)``. L'usage typique pour exécuter un "
"programme sous le contrôle du débogueur est::"
Copy link
Member

Choose a reason for hiding this comment

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

Le :: est un peu compliqué en rst, il se transforme en : mais sans l'espace que les francophones aiment bien.

On pourrait penser que :: (avec l'espace) fonctionne, mais non, en ce cas restructureText ne met rien du tout (enfin il interprète quand même la suite comme un bloc, mais il n'affiche pas les deux points).

Il reste donc deux solutions, la solution bourrine de mettre : :: (espace deux-points pour les francophones puis espace deux-points-deux-points pour rst), visuellement c'est le bon rendu, mais à taper c'est lourd.

La dernière solution c'est espace-insécable-deux-points-deux-points ( ::) c'est élégant à relire, c'est interprété correctement par rst, et ça sort un espace insécable avant le : qui est une très bonne chose.

Copy link
Member Author

Choose a reason for hiding this comment

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

+1 pour l'espace insecable, ctrl+k N S dans vim

library/pdb.po Outdated
"arguments of the ``p`` command."
msgstr ""
"La complétion via le module :mod:`readline' est disponible pour les "
"commandes et les arguments de commande, par exemple les noms global et local "
Copy link
Member

Choose a reason for hiding this comment

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

Lorsqu'on laisse des mots non traduits dans la doc de Python on les met en italique, donc entre * dans le rst (pour global et local).

library/pdb.po Outdated
":file:`pdb.py` can also be invoked as a script to debug other scripts. For "
"example::"
msgstr ""
"Le fichier :file:`pdb.py` peut aussi être invoquer comme un script pour "
Copy link
Member

Choose a reason for hiding this comment

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

invoqué

library/pdb.po Outdated
"the ``!`` command."
msgstr ""
"Sans argument, affiche la liste des commandes disponibles. Avec une "
"*commande* comme argument, imprime l'aide de cette commande. ``help pdb`` "
Copy link
Member

Choose a reason for hiding this comment

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

Je préfère affiche à imprime, imprime me fait penser a du papier.

library/pdb.po Outdated
"Move the current frame *count* (default one) levels down in the stack trace "
"(to a newer frame)."
msgstr ""
"Déplace le niveau de la trame courante *count* (par défaut un) vers le bas "
Copy link
Member

Choose a reason for hiding this comment

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

Tu traduit frame parfois par trame parfois par cadre, j'ignore lequel est le meilleur, j'aurais presque laissé frame en italique. Si on veut vraiment le traduire, pourquoi pas bloc ? Si on prend bloc, pour plus de clareté on devra peut être utiliser "bloc de la pile" ?

Copy link
Member Author

Choose a reason for hiding this comment

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

je vais utiliser frame

library/pdb.po Outdated
"exécutable dans cette fonction. Le numéro de ligne peut être préfixé d'un "
"nom de fichier et d'un deux-points, pour spécifier un point d'arrêt dans un "
"autre fichier (probablement celui qui n'a pas encore été chargé). Le fichier "
"est recherché sur :data:`sys. path`. Notez que chaque point d'arrêt reçoit "
Copy link
Member

Choose a reason for hiding this comment

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

Un espace de trop après le point entre sys et path.

library/pdb.po Outdated
"true before the breakpoint is honored."
msgstr ""
"Si un second argument est présent, c'est une expression qui doit évaluer à "
"true avant que le point d'arrêt ne soit honoré."
Copy link
Member

Choose a reason for hiding this comment

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

vrai ou True en italique, plutôt que true.

"breakpoint is reached and the breakpoint is not disabled and any associated "
"condition evaluates to true."
msgstr ""
"Définit le nombre d'ignore pour le numéro de point d'arrêt donné. Si le "
Copy link
Member

Choose a reason for hiding this comment

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

"le nombre d'ignore" ?

@matrixise
Copy link
Member Author

Fixé, peux-tu y regarder ;-)

@JulienPalard JulienPalard merged commit e6527ee into python:3.6 Jan 30, 2018
@JulienPalard
Copy link
Member

Merci pour la PR :))

JulienPalard pushed a commit that referenced this pull request May 23, 2023
Co-authored-by: Benjamin Loison <benjamin.loison@orange.fr> Reviewed-on: https://git.afpy.org/AFPy/python-docs-fr/pulls/141 Reviewed-by: Christophe Nanteuil <christophenan@noreply.localhost> Co-authored-by: Benjamin_Loison <benjamin.loison@orange.fr> Co-committed-by: Benjamin_Loison <benjamin.loison@orange.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants