Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Premier jet pour la traduction de library/argparse.po #1410

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 14 commits into from
Sep 13, 2020

Conversation

ygingras
Copy link
Contributor

@ygingras ygingras commented Sep 7, 2020

En cours de révision par le groupe de Montréal-Python

@vpoulailleau
Copy link
Contributor

Merci pour cette grosse contribution !

Je n'ai pas relu, mais j'ai regardé le résultat de l'intégration continue (https://travis-ci.com/github/python/python-docs-fr/builds/183254920) et j'y vois qu'une vieille version de padpo est utilisée donc il ne faut pas tout prendre à la lettre, mais des ajustements doivent être faits.

Les messages de padpo sont tout en bas en couleur. Par exemple :

2020-09-08 00:53:51,951 [WARNING ]            pofile.py(156):display_warnings     :: library/argparse.po: 185 [ Grammalecte  ] Il manque un trait d’union. => ###mètre a sa propre description détaillée ci dessous, mais en ###

« ci dessous » devient « ci-dessous »

Voici ce qui ce passe quand j'appelle le dernier padpo pour cette pull request :

$ padpo -p 1410
/tmp/padpo__gaun_ij/library/argparse.po:156: error: There should be a non-breakable space before ":": between ###ysés dans la ligne de commande ### and ###:###
/tmp/padpo__gaun_ij/library/argparse.po:185: warning: Il manque un trait d’union. => ###mètre a sa propre description détaillée ci dessous, mais en ###
/tmp/padpo__gaun_ij/library/argparse.po:185: error: There should be a non-breakable space before ":": between ###ssous, mais en résumé ils sont ### and ###:###
/tmp/padpo__gaun_ij/library/argparse.po:195: error: There should be a non-breakable space before ":": between ###e nom du programme (par défaut ### and ###: « sys.argv[0] »)###
/tmp/padpo__gaun_ij/library/argparse.po:199: error: There should be a non-breakable space before ":": between ###ation du programme (par défaut ### and ###: générée à partir des argument###
/tmp/padpo__gaun_ij/library/argparse.po:207: error: There should be a non-breakable space before ":": between ###aide des arguments (par défaut ### and ###: vide)###
/tmp/padpo__gaun_ij/library/argparse.po:213: error: There should be a non-breakable space before ":": between ###aide des arguments (par défaut ### and ###: vide)###
/tmp/padpo__gaun_ij/library/argparse.po:231: error: There should be a non-breakable space before ":": between ###guments optionnels (par défaut ### and ###: '-')###
/tmp/padpo__gaun_ij/library/argparse.po:239: warning: Tiret d’incise : un tiret demi-cadratin [1] ou cadratin [2] est requis. (Ou éventuellement le signe “moins” [3], s’il s’agit d’une soustraction.) => ###fromfile_prefix_chars_ - Le jeu de ###
/tmp/padpo__gaun_ij/library/argparse.po:239: error: There should be a non-breakable space before ":": between ###s doivent être lus (par défaut ### and ###: « None »)###
/tmp/padpo__gaun_ij/library/argparse.po:247: warning: Tiret d’incise : un tiret demi-cadratin [1] ou cadratin [2] est requis. (Ou éventuellement le signe “moins” [3], s’il s’agit d’une soustraction.) => ###argument_default_ - La valeur ###
/tmp/padpo__gaun_ij/library/argparse.po:247: error: There should be a non-breakable space before ":": between ###pour les arguments (par défaut ### and ###: « None »)###
/tmp/padpo__gaun_ij/library/argparse.po:263: warning: Tiret d’incise : un tiret demi-cadratin [1] ou cadratin [2] est requis. (Ou éventuellement le signe “moins” [3], s’il s’agit d’une soustraction.) => ###add_help_ - Ajoute une###
/tmp/padpo__gaun_ij/library/argparse.po:263: error: There should be a non-breakable space before ":": between ###lp » à l'analyseur (par défaut ### and ###: « True »)###
/tmp/padpo__gaun_ij/library/argparse.po:270: warning: Tiret d’incise : un tiret demi-cadratin [1] ou cadratin [2] est requis. (Ou éventuellement le signe “moins” [3], s’il s’agit d’une soustraction.) => ###allow_abbrev_ - Permet l'a###
/tmp/padpo__gaun_ij/library/argparse.po:270: error: There should be a non-breakable space before ":": between ###es options longues (par défaut ### and ###: « True »)###
/tmp/padpo__gaun_ij/library/argparse.po:278: error: There should be a non-breakable space before ":": between ###eur est rencontrée (par défaut ### and ###: « True »)###
/tmp/padpo__gaun_ij/library/argparse.po:311: warning: Si « car » est la conjonction de coordination, une virgule est peut-être souhaitable. => ###ar défaut est presque toujours désirable car elle prod###
/tmp/padpo__gaun_ij/library/argparse.po:311: error: There should be a non-breakable space before ":": between ###ogram.py » avec le code suivant### and ###:###
/tmp/padpo__gaun_ij/library/argparse.po:326: error: There should be a non-breakable space before ":": between ###te d'où le programme est lancé)### and ###:###
/tmp/padpo__gaun_ij/library/argparse.po:334: error: There should be a non-breakable space before ":": between ###nstructeur d'« ArgumentParser »### and ###:###
/tmp/padpo__gaun_ij/library/argparse.po:356: error: There should be a non-breakable space before ":": between ###r des arguments qu'il contient ### and ###:###
/tmp/padpo__gaun_ij/library/argparse.po:364: error: There should be a non-breakable space before ":": between ### à l'argument nommé « usage= » ### and ###:###
/tmp/padpo__gaun_ij/library/argparse.po:383: error: There should be a non-breakable space before ":": between ### messages d'aide des arguments ### and ###:###
/tmp/padpo__gaun_ij/library/argparse.po:410: warning: Mot inconnu : suplémentaire => ###ins programmes aiment afficher un texte suplémentaire après la ###
/tmp/padpo__gaun_ij/library/argparse.po:410: error: Line too long (83 > 79): la description des arguments. Un tel texte peut être spécifié grâce à l'argument 
/tmp/padpo__gaun_ij/library/argparse.po:410: error: There should be a non-breakable space before ":": between ###structeur d'« ArgumentParser » ### and ###:###
/tmp/padpo__gaun_ij/library/argparse.po:434: error: There should be a non-breakable space before ":": between ###tParser » en cours de création ### and ###:###
/tmp/padpo__gaun_ij/library/argparse.po:453: warning: Confusion probable. Une cour… Un cours… Adjectif : court(e). => ###e pour le parent et une pour l'instance en cour de créati###
/tmp/padpo__gaun_ij/library/argparse.po:464: warning: Accord de nombre erroné : « changement » est au singulier. => ###près la création de l'analyseur enfant, ces changemen###
/tmp/padpo__gaun_ij/library/argparse.po:464: warning: Accord de nombre erroné : « changement » devrait être au pluriel. => ### la création de l'analyseur enfant, ces changement ne seront###
/tmp/padpo__gaun_ij/library/argparse.po:478: error: There should be a non-breakable space before ":": between ###nt quatre classes de formatage ### and ###:###
/tmp/padpo__gaun_ij/library/argparse.po:488: warning: Accord de nombre erroné avec « les descriptions » : « textuelle » devrait être au pluriel. => ###e contrôle sur comment les descriptions textuelle sont affi###
/tmp/padpo__gaun_ij/library/argparse.po:488: error: There should be a non-breakable space before ":": between ###tique dans les messages d'aide ### and ###:###
/tmp/padpo__gaun_ij/library/argparse.po:501: error: There should be a non-breakable space before ":": between ### retour à la ligne automatique ### and ###:###
/tmp/padpo__gaun_ij/library/argparse.po:512: warning: Accord de genre erroné : « la ligne » est féminin, « consécutifs » est masculin. => ###z bien que plusieurs retours à la ligne consécutifs sont remp###
/tmp/padpo__gaun_ij/library/argparse.po:525: error: There should be a non-breakable space before ":": between ###s d'aide de tous les arguments ### and ###:###
/tmp/padpo__gaun_ij/library/argparse.po:533: warning: Accord de nombre erroné : « argument » devrait être au pluriel. => ### du type_ de l'argument pour chacun des argument comme nom###
/tmp/padpo__gaun_ij/library/argparse.po:533: error: There should be a non-breakable space before ":": between ###ur standard qui utilise dest_) ### and ###:###
/tmp/padpo__gaun_ij/library/argparse.po:547: error: Line too long (80 > 79): accepter des caractères préfixes autres ou additionnels (par exemple pour les 
/tmp/padpo__gaun_ij/library/argparse.po:547: error: There should be a non-breakable space before ":": between ###- » comme préfixe (par exemple ### and ###: « -f/--foo »). Pour les analy###
/tmp/padpo__gaun_ij/library/argparse.po:547: error: There should be a non-breakable space before ":": between ###structeur d'« ArgumentParser » ### and ###:###
/tmp/padpo__gaun_ij/library/argparse.po:574: error: There should be a non-breakable space before ":": between ###dans ces fichiers. Par exemple ### and ###:###
/tmp/padpo__gaun_ij/library/argparse.po:1490: error: There should be a non-breakable space before ":": between ###Description des paramètres ### and ###:###

J'ai vu qu'il y a aussi une petite erreur de rST :

/home/travis/build/python/python-docs-fr/venv/worktrees/760552ceb8c5f5ca4f1bf13f47543b42b25e0b83/Doc/library/argparse.rst:182:inconsistent term references in translated message. original: [], translated: [':class:`ArgumentParser`']

Copy link
Contributor

@vpoulailleau vpoulailleau left a comment

Choose a reason for hiding this comment

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

Bon boulot dans l'ensemble !

J'ai (et padpo aussi) quelques petites remarques et questions.

@vpoulailleau
Copy link
Contributor

Pas de nouvelles remarques pour moi. Juste celles déjà présentes ici : https://github.com/python/python-docs-fr/pull/1410/files. J'ai vu que tu ne les avais pas toutes prises en compte, n'hésite pas à commenter les remarques (ou les accepter 😉)

@ygingras
Copy link
Contributor Author

Merci pour les commentaires. Je finalise le tout demain.

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.

Merci pour cette très bonne contribution.
On utilise un style type « dictionnaire » pour les commentaires des paramètres. Donc pas d'article en règle générale (par exemple « Liste d'objets ») et verbe conjugué sans sujet (par exemple « crée un nouvel objet »).

@vpoulailleau
Copy link
Contributor

Il faudra passer un petit coup de powrap

L'intégration continue (https://travis-ci.com/github/python/python-docs-fr/builds/183816248) nous dit des messages comme :

$ if [ -n "$CHANGED_FILES" ]; then powrap --check --quiet $CHANGED_FILES; fi

Would rewrap:

- library/argparse.po

The command "if [ -n "$CHANGED_FILES" ]; then powrap --check --quiet $CHANGED_FILES; fi" exited with 1.

ou

2020-09-10 23:59:10,416 [ERROR   ]            pofile.py(153):display_warnings     :: library/argparse.po: 422 [ Line length  ] Line too long (83 > 79): De même que pour l'argument description_, le texte passé à ``epilog=`` est sujet 

@JulienPalard JulienPalard merged commit 33745ab into python:3.9 Sep 13, 2020
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.

4 participants