8000 Traduction de library/json.po by caliendojulien · Pull Request #1596 · python/python-docs-fr · GitHub
[go: up one dir, main page]

Skip to content

Traduction de library/json.po #1596

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? 10000 Sign in to your account

Closed
wants to merge 15 commits into from
Closed

Traduction de library/json.po #1596

wants to merge 15 commits into from

Conversation

caliendojulien
Copy link
Contributor

Closes #1595

@PyDocTeur
Copy link

Hello @caliendojulien ! Bienvenue dans le monde merveilleux de la traduction de la documentation de Python !
Je suis PyDocTeur, le robot amical qui s'occupe d'automatiser certaines tâches.
Si tu as des questions, n'hésite pas à ping @JulienPalard ou @Seluj78


Disclaimer

Je suis un robot fait par l'équipe de l'AFPy et de Traduction
sur leur temps libre. Je risque de dire des bétises. Ne me blâmez pas, blamez les développeurs.

Code source

I'm a bot made by the Translation and AFPy teams on their free
time. I might say or do dumb things sometimes. Don't blame me, blame the developer !

Source code

(state: greetings)
PyDocTeur v1.11.1

@caliendojulien
Copy link
Contributor Author

Impossible de passer les tests powrap.
Une idée @christopheNan ?

@JulienPalard
Copy link
Member

@caliendojulien quel éditeur utilise-tu ? Si c'est poedit, tu peux le configurer pour rewrapper correctemet (c.f. le fichier CONTRIBUTING), sinon si comme moi tu utilise autre chose, passe un coup de powrap localement avant de commit.

  • pip install powrap
  • powrap ton_fichier.po

powrap depend de msgcat (du paquet gettext sous Debian).

@caliendojulien
Copy link
Contributor Author

@JulienPalard J'utilise POedit.
Je m'occupe de ça ce soir. Merci.

@caliendojulien
Copy link
Contributor Author

Merci @JulienPalard ^^

caliendojulien and others added 5 commits April 19, 2021 18:27
Co-authored-by: Julien Palard <julien@palard.fr>
Co-authored-by: Julien Palard <julien@palard.fr>
Co-authored-by: Julien Palard <julien@palard.fr>
Co-authored-by: Julien Palard <julien@palard.fr>
@@ -964,19 +958,19 @@ msgstr ""

#: library/json.rst:648
msgid "the size of accepted JSON texts"
msgstr "la taille des textes JSON acceptés ;"
msgstr "la taille des textes JSON acceptés"
Copy link
Member

Choose a reason for hiding this comment

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

Je trouve que ce tableau rendait bien avec des ; et un point final :

Certaines implémentations de désérialiseurs JSON peuvent avoir des limites sur :

  • la taille des textes JSON acceptés ;
  • le niveau maximum d'objets et tableaux JSON imbriqués ;
  • l'intervalle et la précision des nombres JSON ;
  • le contenu et la longueur maximale des chaînes JSON.

pourquoi le changer ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

C'est POedit qui me mettait des alertes la dessus.

Copy link
Member

Choose a reason for hiding this comment

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

N'hésite pas à vérifier sur le rendu HTML sur docs.python.org/fr/ quand POEdit te dit quelque chose. Le cerveau humain est meilleur que l'algo de poedit ☺

Copy link
Member

Choose a reason for hiding this comment

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

Aussi n'hésite pas à poser une note sur ces traductions, qqch comme : "c'est dans une liste, ignorez les warnings poedit", que le prochain ne se fasse pas avoir.

msgstr ""
"Options mutuellement exclusives pour le contrôle des caractères "
"d’espacements (caractères « blancs »)."
msgstr "Options groupées de contrôle des espaces."
Copy link
Member
@JulienPalard JulienPalard Apr 19, 2021

Choose a reason for hiding this comment

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

On perd la notion de "mutuellement exclusif" ici.

C'est ici : https://docs.python.org/fr/3/library/json.html#cmdoption-json-tool-indent

Ça parle de --indent, --tab, --no-indent, --compact¶ qui en effet n'auraient pas de sens à être mélangées.

@caliendojulien
Copy link
Contributor Author

J'ai l'impression que POedit m'a un peu fait faire n'importe quoi. Est ce que je peux supprimer toute cette PR et refaire un truc propre ?
@JulienPalard ?

@JulienPalard
Copy link
Member

J'ai l'impression que POedit m'a un peu fait faire n'importe quoi. Est ce que je peux supprimer toute cette PR et refaire un truc propre ?
@JulienPalard ?

Tu n'es pas le premier à te faire mordre par poedit ne t'en fais pas. Les outils automatique restent moins bons que les humains.

Tu as deux moyens de "recommencer" :

  • Soit tu garde ta branche et donc ta PR, mais tu repars de 3.9, ça se fait comme ça :
    • git fetch upstream # Pour récupérer les derniers commits de python/python-docs-fr
    • git reset --hard upstream/3.9 # Pour dire "je veux que ma branche soit comme upstream/3.9"
    • git push --force # "force" car tu as changé l'histoire de la branche library-json, mais c'est la tienne, pas de souci
  • Soit tu repars sur une autre branche et donc une autre PR :
    • Ferme cette PR
    • git switch 3.9 # Reviens à la 3.9, surtout pour pouvoir supprimer library-json, on ne peut scier la branche sur laquelle on est.
    • git branch -D library-json # Ça supprime la branche abandonnée
    • git push --delete origin library-json # Ça supprime la branche abandonnée côté github
    • git fetch upstream # Récupère les derniers commits de github.com/python/python-docs-fr/
    • git switch -c library-json-reborn upstream/3.9 # Recrée une branche, fraîchement basée sur la 3.9 de python/python-docs-fr

Copy link
@awecx awecx 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 PR.
Quelques remarques de mon côté.

"Sérialise *obj* en un flux JSON dans *fp* (un :term:`objet compatible "
"fichier <file-like object>` prenant en charge ``.write()``), en utilisant "
"cette :ref:`table de conversion <py-to-json-table>`."
"Sérialise *obj* en un flux JSON dans *fp* (un :term:`objet fichier <file-"
Copy link

Choose a reason for hiding this comment

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

« file-like object » n'est pas tout à fait « un objet fichier ». On traduit par « objet fichier-compatibble » ou « objet simili-fichier ».

@@ -170,7 +168,7 @@ msgid ""
msgstr ""
"Si *check_circular* vaut ``False`` (``True`` par défaut), la vérification "
"des références circulaires pour les conteneurs est ignorée, et une référence "
"circulaire résulte en une :exc:`OverflowError` (ou pire)."
"circulaire cause une :exc:`OverflowError` (ou pire)."
Copy link

Choose a reason for hiding this comment

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

Suggested change
"circulaire cause une :exc:`OverflowError` (ou pire)."
"circulaire lève une :exc:`OverflowError` (ou pire)."

@@ -182,8 +180,8 @@ msgid ""
msgstr ""
"Si *allow_nan* vaut ``False`` (``True`` par défaut), une :exc:`ValueError` "
"est levée lors de la sérialisation de valeurs :class:`float` extérieures aux "
"bornes (``nan``, ``inf``, ``-inf``), en respect strict de la spécification "
"JSON. Si *allow_nan* vaut ``True``, leurs équivalents JavaScript (``NaN``, "
"bornes (``nan``, ``inf``, ``-inf``), en respect avec la spécification JSON. "
Copy link

Choose a reason for hiding this comment

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

Pourquoi supprimer le « strict » ?

@@ -37,8 +37,7 @@ msgstr ""
"<http://www.ecma-international.org/publications/standards/Ecma-404.htm>`_, "
"est un format très simple d'échange de données inspiré par la syntaxe des "
"objets littéraux de `JavaScript <https://fr.wikipedia.org/wiki/JavaScript>`_ "
"(bien que ce ne soit pas au sens propre un sous-ensemble de Javascript [#rfc-"
"errata]_ )."
"(bien que ce ne soit pas un sous-ensemble de Javascript [#rfc-errata]_ )."
Copy link

Choose a reason for hiding this comment

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

Pourquoi supprimer l'idée de « strict » ?

@JulienPalard
Copy link
Member

@caliendojulien on dirait que ta branche n'existe plus ? oO

PyDocTeur pushed a commit that referenced this pull request Aug 5, 2021
Automerge of PR #1674 by @JulienPalard

Remplace #1596 (upstream n'a plus le repo).

Co-authored-by: Julien Palard <julien@palard.fr>
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.

Je travaille sur library/json.po
4 participants
0