Skip to content
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

'Reference - Simple Statements' Translation #186

Merged
merged 2 commits into from Jun 17, 2018

Conversation

@christopheNan
Copy link
Collaborator

christopheNan commented Jun 4, 2018

Completed.
Requires proofreading.

@christopheNan christopheNan force-pushed the christopheNan:refsmpstmt branch from fd119d3 to 7c857d0 Jun 9, 2018

#: ../Doc/reference/simple_stmts.rst:35
msgid "Expression statements"
msgstr ""
msgstr "Les instructions expressions"

This comment has been minimized.

@JulienPalard

JulienPalard Jun 16, 2018

Member

Pourquoi pas "Les expressions" ?

Une expression je le voit comme quelque chose qui a une valeur, comme 2 * x + 1, une instruction n'a pas de valeur, une instruction c'est "fait ça", comme x = 42.

Donc bien qu'une expression soit un statement, je suis géné par le fait qu'une expression soit une instruction.

Je pense qu'en traduisant statement en "instruction" on rajoute un poil de sens qui n'existe pas dans statement. Peut être que quand ils écrivent statement ils pensent quelque chose comme "énoncé", sans penser "instruction".

Effectivement 1 * 2 + x est un énoncé, comme return 42 est un énoncé. return 42 est une instruction (Renvoie 42 !) mais 1 * 2 + x ne me semble pas en être une, c'est juste un énonce, juste une expression, qui vaut quelque chose, mais qui ne "fait" rien.

This comment has been minimized.

@christopheNan

christopheNan Jun 17, 2018

Author Collaborator

Je vais dans ton sens.


#: ../Doc/reference/simple_stmts.rst:71
msgid "Assignment statements"
msgstr ""
msgstr "Les instructions assignations"

This comment has been minimized.

@JulienPalard

JulienPalard Jun 16, 2018

Member

ou "Les instructions d'assignation" ? Mais si on part par là il faut vérifier qu'on peut le faire pour chaque titre.

This comment has been minimized.

@christopheNan

christopheNan Jun 17, 2018

Author Collaborator

ok


#: ../Doc/reference/simple_stmts.rst:81
msgid ""
"Assignment statements are used to (re)bind names to values and to modify "
"attributes or items of mutable objects:"
msgstr ""
"Les instructions assignations sont utilisées pour (re-)lier des noms à des "

This comment has been minimized.

@JulienPalard

JulienPalard Jun 16, 2018

Member

Et là on peut probablement prendre le raccourci "Les assignations sont utilisées"... ?

This comment has been minimized.

@christopheNan

christopheNan Jun 17, 2018

Author Collaborator

Je simplifie partout.


#: ../Doc/reference/simple_stmts.rst:95
msgid ""
"(See section :ref:`primaries` for the syntax definitions for *attributeref*, "
"*subscription*, and *slicing*.)"
msgstr ""
"Voir la section :ref:`primaries` pour la définition de la syntaxe pour "
"*attributeref*, *subscription*, and *slicing*."

This comment has been minimized.

@JulienPalard

JulienPalard Jun 16, 2018

Member

s/and/et/


#: ../Doc/reference/simple_stmts.rst:95
msgid ""
"(See section :ref:`primaries` for the syntax definitions for *attributeref*, "
"*subscription*, and *slicing*.)"
msgstr ""
"Voir la section :ref:`primaries` pour la définition de la syntaxe pour "

This comment has been minimized.

@JulienPalard

JulienPalard Jun 16, 2018

Member

Peut être "des syntaxes de" ? Ce sont trois syntaxes qui sont derrière primaries.

This comment has been minimized.

@christopheNan

christopheNan Jun 17, 2018

Author Collaborator

Fait pour la ligne.


#: ../Doc/reference/simple_stmts.rst:121
msgid ""
"If the target list is a single target in parentheses: The object is assigned "
"to that target."
msgstr ""
"si la liste cible est une simple cible en parenthèses : l'objet est assigné "

This comment has been minimized.

@JulienPalard

JulienPalard Jun 16, 2018

Member

s/en/entre/ ? Ils parlent de :

(foo) = 42

This comment has been minimized.

@christopheNan

christopheNan Jun 17, 2018

Author Collaborator

ok

@@ -113,6 +147,11 @@ msgid ""
"items as there are targets in the target list, and the items are assigned, "
"from left to right, to the corresponding targets."
msgstr ""
"Si la liste cible est une liste de cibles dont les éléments sont séparés par "

This comment has been minimized.

@JulienPalard

JulienPalard Jun 16, 2018

Member

J'ai ouvert un bug upstream parce que la phrase ne me plaît pas à l'origine : https://bugs.python.org/issue33878 voyons comment ça réagit. Mais ça ne nous empêche pas de merger, on "corrigera" si ça bouge upstream.

This comment has been minimized.

@christopheNan

christopheNan Jun 17, 2018

Author Collaborator

Wait and see.

This comment has been minimized.

This comment has been minimized.

@JulienPalard

JulienPalard Jun 17, 2018

Member

Je merge, elle sera marquée fuzzy de toute façons si elle est modifiée upstream, pas besoin de les attendre.


#: ../Doc/reference/simple_stmts.rst:216
msgid ""
"For user-defined objects, the :meth:`__setitem__` method is called with "
"appropriate arguments."
msgstr ""
"Pour les objets allogènes, la méthode :meth:`__setitem__` est appelée avec "

This comment has been minimized.

@JulienPalard

JulienPalard Jun 16, 2018

Member

"allogènes" ?

This comment has been minimized.

@christopheNan

christopheNan Jun 17, 2018

Author Collaborator

J'ai proposé cette traduction pour tout ce qui n'est pas natif, c'est-à-dire pour traduire "user-defined".
La définition dans le wiktionnaire (je sais que tu n'es pas fan) est : "D'une origine différente de celle de la population autochtone".

This comment has been minimized.

@JulienPalard

JulienPalard Jun 17, 2018

Member

Si on ne trouve pas "plus accessible" prennons ça.


#: ../Doc/reference/simple_stmts.rst:369
msgid ""
"Assert statements are a convenient way to insert debugging assertions into a "
"program:"
msgstr ""
"Les instructions assert sont une manière pratique d'insérer des tests de "

This comment has been minimized.

@JulienPalard

JulienPalard Jun 16, 2018

Member

s/assert/``assert``/

This comment has been minimized.

@christopheNan

christopheNan Jun 17, 2018

Author Collaborator

Ok

"Sinon, :keyword:`raise` évalue la première expression en tant qu'objet "
"exception. Ce doit être une sous-classe ou une instance de :class:"
"`BaseException`. Si c'est une classe, l'instance de l'exception est obtenue "
"en tant que de besoin en instanciant la classe sans argument."

This comment has been minimized.

@JulienPalard

JulienPalard Jun 16, 2018

Member

"en tant que de besoin" ?

This comment has been minimized.

@christopheNan

christopheNan Jun 17, 2018

Author Collaborator

Archaïque d'après l'Académie française mais a priori correct (http://www.academie-francaise.fr/questions-de-langue#31_strong-em-en-tant-que-de-ou-autant-que-de-besoin-raison-em-strong).
Je reformule.

This comment has been minimized.

@JulienPalard

JulienPalard Jun 17, 2018

Member

Wah c'est correct en plus :] J'ai vraiment cru que tu t'étais mélangé les doigts sur le clavier ! Cool si tu reformule.

This comment has been minimized.

@christopheNan

christopheNan Jun 17, 2018

Author Collaborator

Gamin !

This comment has been minimized.

@christopheNan
Copy link
Collaborator Author

christopheNan commented Jun 17, 2018

@JulienPalard
Copy link
Member

JulienPalard commented Jun 17, 2018

On pourra toujours s/allogène/nouveau terme/.

Oui pas de souci.

@JulienPalard JulienPalard merged commit e5bc613 into python:3.6 Jun 17, 2018
@christopheNan christopheNan deleted the christopheNan:refsmpstmt branch Jul 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.