Skip to content

lib/doctest.po : de zéro à 72% #1663

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 21 commits into from
Sep 16, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
7%
  • Loading branch information
eviau committed May 18, 2021
commit 48b098f9a492dffb682750eb990d6a21480c5be4
42 changes: 37 additions & 5 deletions library/doctest.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-07-20 10:51+0200\n"
"PO-Revision-Date: 2021-05-16 13:24-0400\n"
"PO-Revision-Date: 2021-05-18 06:17-0400\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -98,26 +98,37 @@ msgid ""
"libraries. Especially useful examples can be found in the standard test "
"file :file:`Lib/test/test_doctest.py`."
msgstr ""
"C'est tout ce que vous avez besoin de savoir pour pouvoir commencer une "
"utilisation productive de :mod:`doctest` ! Allez-y. Les sections suivantes "
"donnent tous les détails. Notez qu'il y a plusieurs exemples de *doctests* "
"dans la suite de tests de la bibliothèque standard de Python et dans les "
"autres bibliothèques. Des exemples particulièrement utiles se situent dans "
"le fichier de test standard :file:`Lib/test/test_doctest.py`."

#: library/doctest.rst:143
msgid "Simple Usage: Checking Examples in Docstrings"
msgstr ""
msgstr "Utilisation simple: vérifier des exemples en Docstrings"

#: library/doctest.rst:145
msgid ""
"The simplest way to start using doctest (but not necessarily the way you'll "
"continue to do it) is to end each module :mod:`M` with::"
msgstr ""
"La façon la plus simple de commencer à utiliser doctest ( mais pas "
"nécessairement la façon avec laquelle vous continuerez ) est de terminer "
"chaque module :mod:`M` avec::"

#: library/doctest.rst:152
msgid ":mod:`doctest` then examines docstrings in module :mod:`M`."
msgstr ""
msgstr ":mod:`doctest`puis examinez les docstrings dans le module :mod:`M`."

#: library/doctest.rst:154
msgid ""
"Running the module as a script causes the examples in the docstrings to get "
"executed and verified::"
msgstr ""
"Exécuter le module comme un script a comme conséquence d'exécuter et de "
"vérifier les exemples dans les docstrings::"

#: library/doctest.rst:159
msgid ""
Expand All @@ -126,16 +137,23 @@ msgid ""
"and the final line of output is ``***Test Failed*** N failures.``, where *N* "
"is the number of examples that failed."
msgstr ""
"Ceci n'affichera rien à moins qu'un exemple échoue; le cas échéant, les "
"exemples défaillants et les causes de leur(s) échec(s) sont afficher sur "
"stdout, et la ligne finale de la sortie est ``***Test Failed*** N failures."
"``, où *N* est le nombre d'exemples défaillants."

#: library/doctest.rst:164
#, fuzzy
msgid "Run it with the ``-v`` switch instead::"
msgstr ""
msgstr "À la place, exécutez-la en activant ``-v`` ::"

#: library/doctest.rst:168
msgid ""
"and a detailed report of all examples tried is printed to standard output, "
"along with assorted summaries at the end."
msgstr ""
"puis un rapport détaillé de tous les exemples faisant partie de l'essai est "
"affiché sur standard output, accompagné à la fin de leurs résumés."

#: library/doctest.rst:171
msgid ""
Expand All @@ -144,30 +162,44 @@ msgid ""
"``sys.argv`` is not examined by :func:`testmod` (so passing ``-v`` or not "
"has no effect)."
msgstr ""
"Vous activez le mode verbeux en passant ``verbose=True`` à :func:`testmod`, "
"ou le désactiver en lui passant``verbose=False``. Dans ces deux cas, ``sys."
"argv`` n'est pas inspecté par :func:`testmod` (ainsi, lui passer ``-v`` ou "
"pas n'a aucun effet)."

#: library/doctest.rst:176
msgid ""
"There is also a command line shortcut for running :func:`testmod`. You can "
"instruct the Python interpreter to run the doctest module directly from the "
"standard library and pass the module name(s) on the command line::"
msgstr ""
"Il y a un raccourci pour exécuter :func:`testmod` à partir de la ligne de "
"commande. Vous demandez à l'interprète Python d'exécuter le module doctest "
"directement à partir de la bibliothèque standard afin de passer le(s) nom(s) "
"de(s) module(s) à partir de la ligne de commande ainsi::"

#: library/doctest.rst:182
msgid ""
"This will import :file:`example.py` as a standalone module and run :func:"
"`testmod` on it. Note that this may not work correctly if the file is part "
"of a package and imports other submodules from that package."
msgstr ""
"Ceci importera :file: `example.py` comme un module autonome et exécutera :"
"func:`testmod` sur celui-ci. Prendre note que ceci peut ne pas fonctionner "
"si le fichier fait partie d'un paquet et importe d'autres sous-modules de ce "
"paquet."

#: library/doctest.rst:186
msgid ""
"For more information on :func:`testmod`, see section :ref:`doctest-basic-"
"api`."
msgstr ""
"Pour plus d'informations sur :func:`testmod`, consultez la section :ref:"
"`doctest-basic-api`."

#: library/doctest.rst:192
msgid "Simple Usage: Checking Examples in a Text File"
msgstr ""
msgstr "Utilisation simple: vérifier des exemples dans un fichier texte"

#: library/doctest.rst:194
msgid ""
Expand Down