- Notifications
You must be signed in to change notification settings - Fork266
Translated howto/clinic up to Advanced part#187
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
1508409
19733a5
28cfc46
ab5e6b0
a41773a
0f06b87
b42b990
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -8,7 +8,7 @@ msgstr "" | ||
"Project-Id-Version: Python 3.6\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2018-04-29 00:24+0200\n" | ||
"PO-Revision-Date: 2018-06-17 09:10+0200\n" | ||
"Last-Translator: Julien Palard <julien@palard.fr>\n" | ||
"Language-Team: \n" | ||
"Language: fr\n" | ||
@@ -77,14 +77,14 @@ msgid "" | ||
"gets called at the bottom, with ``PyObject *args`` (and maybe ``PyObject " | ||
"*kwargs``) magically converted into the C variables and types you need." | ||
msgstr "" | ||
"Le premier objectif d'Argument Clinic est de prendreen charge toute " | ||
"l'analyse d'arguments à l'intérieur de CPython. Cela signifie que si vous " | ||
"convertissez une fonction pourfonctionner avecArgument Clinic, cette " | ||
"fonction n'aplus du toutbesion d'analyser ses propres arguments. Le code " | ||
"généré parArgument Clinicdoit être une « boîte noire » avec en entrée " | ||
"l'appel deCPython, et en sortie l'appel à votre code. Entre les deux, " | ||
"``PyObject*args`` (et éventuellement ``PyObject *kwargs``) sont convertis " | ||
"magiquementdans les variables et types C dont vous avez besoin." | ||
#: ../Doc/howto/clinic.rst:41 | ||
msgid "" | ||
@@ -129,7 +129,7 @@ msgid "" | ||
msgstr "" | ||
"De plus, Argument Clinic doit être suffisamment flexible pour s'accommoder " | ||
"d'approches différentes de l'analyse d'arguments. Il y a des fonctions dans " | ||
"Python dont le traitement des arguments est très étrange; le but d'Argument " | ||
"Clinic est de les gérer toutes. " | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Je remplacerais "toutes les supporter" par "les gérer toutes". | ||
#: ../Doc/howto/clinic.rst:64 | ||
@@ -156,9 +156,8 @@ msgstr "" | ||
"En travaillant avec Argument Clinic, il faut garder à l'esprit que plus vous " | ||
"lui donnez de détails, meilleur sera son boulot. Argument Clinic est bien " | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. je remplacerais "son boulot" (populaire) par "le résultat". There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Je voulait respecter le registre de l'auteur, qui emploie "the better job it'll be able to do", le "it'll" est vraiment populaire je pense. Ça casse un peu le coté pas hyper fun du tuto... | ||
"sûr assez simple pour le moment. Mais à mesure qu'il évoluera et deviendra " | ||
"plus sophistiqué, il sera capable de faire beaucoup de choses intéressantes " | ||
"et intelligentes à partir de l'information que vous lui fournissez." | ||
#: ../Doc/howto/clinic.rst:80 | ||
msgid "Basic Concepts And Usage" | ||
@@ -231,7 +230,7 @@ msgstr "" | ||
"Vous ne devez jamais modifier la sortie d'un bloc Argument Clinic. Changez " | ||
"plutôt l'entrée jusqu'à obtenir la sortie souhaitée (c'est précisément le " | ||
"but de la somme de contrôle, détecter si la sortie a été changée. En effet, " | ||
"ces modificationsseront perdues après que Argument Clinic a écrit une " | ||
"nouvelle sortie)." | ||
#: ../Doc/howto/clinic.rst:129 | ||
@@ -380,9 +379,9 @@ msgid "" | ||
msgstr "" | ||
"Coupez la docstring et collez la entre les lignes commençant par " | ||
"``[clinic]``, en enlevant tout le bazar qui en fait une chaîne de caractères " | ||
"correcte en C. Une fois que c'est fait, vousdevez avoir seulement le texte, " | ||
"aligné à gauche, sans ligne plus longue que 80 caractères (Argument Clinic " | ||
"préserve l'indentation à l'intérieur de la docstring)." | ||
#: ../Doc/howto/clinic.rst:199 | ||
msgid "" | ||
@@ -412,9 +411,9 @@ msgid "" | ||
"docstring." | ||
msgstr "" | ||
"Si votre docstring ne contient pas de ligne « résumé », Argument Clinic va " | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Là encore, je passerais le futur au présent et j'enlèverais le conditionnel | ||
"se plaindre. Assurons-nous donc qu'il y en a une. La ligne « résumé »doit" | ||
"être un paragraphe consistant en une seule ligne de 80 colonnes au début de " | ||
"la docstring." | ||
#: ../Doc/howto/clinic.rst:216 | ||
msgid "" | ||
@@ -481,9 +480,9 @@ msgid "" | ||
"its own line. All the parameter lines should be indented from the function " | ||
"name and the docstring." | ||
msgstr "" | ||
"Déclarez chacun des paramètres de la fonction. Chaque paramètredoit être " | ||
"sur une ligne séparée. Tous les paramètresdoivent être indentés par rapport " | ||
"au nom de la fonction et à la docstring." | ||
#: ../Doc/howto/clinic.rst:270 | ||
msgid "The general form of these parameter lines is as follows:" | ||
@@ -518,10 +517,10 @@ msgid "" | ||
"easier." | ||
msgstr "" | ||
"Que fait le « convertisseur » ? Il établit à la fois le type de variable " | ||
"utilisé en C et la méthode pour convertir la valeur Python en valeur C lors " | ||
"de l'exécution. Pour le moment, vous allez utiliser ce qui s'appelle un « " | ||
"convertisseur hérité » - une syntaxe de convenance qui facilite le portage " | ||
"de vieux code dans Argument Clinic." | ||
#: ../Doc/howto/clinic.rst:296 | ||
msgid "" | ||
@@ -754,7 +753,7 @@ msgid "" | ||
"used different names for these variables, fix it." | ||
msgstr "" | ||
"Notez que la dernière ligne de cette sortie est la déclaration de votre " | ||
"fonction « impl ». C'est là que va l'implémentation de la fonction native. " | ||
"Supprimez le prototype de la fonction que vous modifiez, mais laissez " | ||
"l'accolade ouverte. Maintenant, supprimez tout le code d'analyse d'argument " | ||
"et les déclarations de toutes les variables auxquelles il assigne les " | ||