| 1 |
# SOME DESCRIPTIVE TITLE. |
| 2 |
# Copyright (C) Kovid Goyal |
| 3 |
# This file is distributed under the same license as the calibre package. |
| 4 |
# |
| 5 |
# Translators: |
| 6 |
msgid "" |
| 7 |
msgstr "" |
| 8 |
"Project-Id-Version: calibre\n" |
| 9 |
"Report-Msgid-Bugs-To: \n" |
| 10 |
"POT-Creation-Date: 2026-02-17 16:44+0000\n" |
| 11 |
"PO-Revision-Date: 2014-06-17 08:34+0000\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: French (Canada) (http://app.transifex.com/calibre/calibre/language/fr_CA/)\n" |
| 14 |
"MIME-Version: 1.0\n" |
| 15 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 16 |
"Content-Transfer-Encoding: 8bit\n" |
| 17 |
"Language: fr_CA\n" |
| 18 |
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n" |
| 19 |
|
| 20 |
#: ../../../__w/calibre/calibre/manual/develop.rst:4 |
| 21 |
msgid "Setting up a calibre development environment" |
| 22 |
msgstr "Mise en place d'un environnement de développement calibre" |
| 23 |
|
| 24 |
#: ../../../__w/calibre/calibre/manual/develop.rst:6 |
| 25 |
msgid "" |
| 26 |
"calibre is completely open source, licensed under the `GNU GPL v3 " |
| 27 |
"<https://www.gnu.org/licenses/gpl.html>`_. This means that you are free to " |
| 28 |
"download and modify the program to your heart's content. In this section, " |
| 29 |
"you will learn how to get a calibre development environment set up on the " |
| 30 |
"operating system of your choice. calibre is written primarily in `Python " |
| 31 |
"<https://www.python.org>`_ with some C/C++ code for speed and system " |
| 32 |
"interfacing. Note that calibre requires at least Python 3.8." |
| 33 |
msgstr "calibre est complètement open source, sous licence `GNU GPL v3 <https://www.gnu.org/copyleft/gpl.html>`_. Cela signifie que vous êtes libre de télécharger et de modifier le programme à votre convenance. Dans cette section, vous apprendrez comment obtenir la mise en place d'un environnement de développement calibre sur le système d'exploitation de votre choix. calibre est principalement écrit en `Python <https://www.python.org>`_ avec un peu de code C/C++ pour la vitesse et l'interfaçage système. Notez que calibre requiert au moins Python 3.8." |
| 34 |
|
| 35 |
#: ../../../__w/calibre/calibre/manual/develop.rst:14 |
| 36 |
msgid "Contents" |
| 37 |
msgstr "Contenu" |
| 38 |
|
| 39 |
#: ../../../__w/calibre/calibre/manual/develop.rst:17 |
| 40 |
msgid "Design philosophy" |
| 41 |
msgstr "Philosophie de conception" |
| 42 |
|
| 43 |
#: ../../../__w/calibre/calibre/manual/develop.rst:19 |
| 44 |
msgid "" |
| 45 |
"calibre has its roots in the Unix world, which means that its design is " |
| 46 |
"highly modular. The modules interact with each other via well defined " |
| 47 |
"interfaces. This makes adding new features and fixing bugs in calibre very " |
| 48 |
"easy, resulting in a frenetic pace of development. Because of its roots, " |
| 49 |
"calibre has a comprehensive command line interface for all its functions, " |
| 50 |
"documented in :doc:`generated/en/cli-index`." |
| 51 |
msgstr "calibre a ses racines dans le monde UNIX, ce qui signifie que sa conception est très modulaire. Les modules interagissent les uns avec les autres par l'intermédiaire d'interfaces bien définies. C'est ce qui rend l'ajout de nouvelles fonctionnalités et la réparation des dysfonctionnements très faciles dans calibre, ayant pour résultat un rythme de développement frénétique. En raison de ses racines,calibre a une interface en ligne de commande complète pour toutes ses fonctions, documentée dans doc:`generated/fr/cli-index`." |
| 52 |
|
| 53 |
#: ../../../__w/calibre/calibre/manual/develop.rst:24 |
| 54 |
msgid "" |
| 55 |
"The modular design of calibre is expressed via ``Plugins``. There is a " |
| 56 |
":ref:`tutorial <customize>` on writing calibre plugins. For example, adding " |
| 57 |
"support for a new device to calibre typically involves writing fewer than " |
| 58 |
"100 lines of code in the form of a device driver plugin. You can browse the " |
| 59 |
"`built-in drivers " |
| 60 |
"<https://github.com/kovidgoyal/calibre/tree/master/src/calibre/devices>`_. " |
| 61 |
"Similarly, adding support for new conversion formats involves writing " |
| 62 |
"input/output format plugins. Another example of the modular design is the " |
| 63 |
":ref:`recipe system <news>` for fetching news. For more examples of plugins " |
| 64 |
"designed to add features to calibre, see the `Index of plugins " |
| 65 |
"<https://www.mobileread.com/forums/showthread.php?p=1362767#post1362767>`_." |
| 66 |
msgstr "" |
| 67 |
|
| 68 |
#: ../../../__w/calibre/calibre/manual/develop.rst:34 |
| 69 |
msgid "Code layout" |
| 70 |
msgstr "Disposition du code" |
| 71 |
|
| 72 |
#: ../../../__w/calibre/calibre/manual/develop.rst:36 |
| 73 |
msgid "" |
| 74 |
"All the calibre Python code is in the ``calibre`` package. This package " |
| 75 |
"contains the following main sub-packages" |
| 76 |
msgstr "" |
| 77 |
|
| 78 |
#: ../../../__w/calibre/calibre/manual/develop.rst:38 |
| 79 |
msgid "" |
| 80 |
"devices - All the device drivers. Just look through some of the built-in " |
| 81 |
"drivers to get an idea for how they work." |
| 82 |
msgstr "périphériques - Tous les pilotes de périphériques. Regardez juste certains des pilotes intégrés pour avoir une idée de la façon dont ils fonctionnent." |
| 83 |
|
| 84 |
#: ../../../__w/calibre/calibre/manual/develop.rst:40 |
| 85 |
msgid "" |
| 86 |
"For details, see: ``devices.interface`` which defines the interface " |
| 87 |
"supported by device drivers and ``devices.usbms`` which defines a generic " |
| 88 |
"driver that connects to a USBMS device. All USBMS based drivers in calibre " |
| 89 |
"inherit from it." |
| 90 |
msgstr "Pour plus de détails, voir : ``devices.interface`` qui définit l'interface supportée par les pilotes de périphériques et ``devices.usbms`` qui définit un pilote générique qui connecte un périphérique USBMS. Tous les pilotes basés USBMS dans calibre héritent de lui." |
| 91 |
|
| 92 |
#: ../../../__w/calibre/calibre/manual/develop.rst:43 |
| 93 |
msgid "" |
| 94 |
"e-books - All the e-book conversion/metadata code. A good starting point is" |
| 95 |
" ``calibre.ebooks.conversion.cli`` which is the module powering the " |
| 96 |
":command:`ebook-convert` command. The conversion process is controlled via " |
| 97 |
"``conversion.plumber``. The format independent code is all in ``ebooks.oeb``" |
| 98 |
" and the format dependent code is in ``ebooks.format_name``." |
| 99 |
msgstr "livres numériques - Tout le code conversion/métadonnées de livre numérique. Un bon point de départ est ``calibre.ebooks.conversion.cli`` qui est le module alimentant la commande :command:`ebook-convert`. Le processus de conversion est contrôlé par l'intermédiaire de ``conversion.plumber``. Le code de format indépendant est entièrement dans ``ebooks.oeb`` et le code de format dépendant est dans ``ebooks.format_name``." |
| 100 |
|
| 101 |
#: ../../../__w/calibre/calibre/manual/develop.rst:47 |
| 102 |
msgid "" |
| 103 |
"Metadata reading, writing, and downloading is all in ``ebooks.metadata``" |
| 104 |
msgstr "La lecture, l'écriture et le téléchargement des métadonnées est entièrement dans ``ebooks.metadata``" |
| 105 |
|
| 106 |
#: ../../../__w/calibre/calibre/manual/develop.rst:48 |
| 107 |
msgid "" |
| 108 |
"Conversion happens in a pipeline, for the structure of the pipeline, see " |
| 109 |
":ref:`conversion-introduction`. The pipeline consists of an input plugin, " |
| 110 |
"various transforms and an output plugin. The code that constructs and drives" |
| 111 |
" the pipeline is in :file:`plumber.py`. The pipeline works on a " |
| 112 |
"representation of an e-book that is like an unzipped epub, with manifest, " |
| 113 |
"spine, toc, guide, html content, etc. The class that manages this " |
| 114 |
"representation is OEBBook in ``ebooks.oeb.base``. The various " |
| 115 |
"transformations that are applied to the book during conversions live in " |
| 116 |
":file:`oeb/transforms/*.py`. And the input and output plugins live in " |
| 117 |
":file:`conversion/plugins/*.py`." |
| 118 |
msgstr "La conversion se produit dans un pipeline, pour la structure du pipeline, voir :ref:`conversion-introduction`. Le pipeline consiste en une extension d'entrée, différentes transformations et une extension de sortie. Le code qui construit et pilote le pipeline est dans :file:`plumber.py`. Le pipeline fonctionne sur une représentation d'un livre numérique qui est comme un epub décompressé, avec le manifeste, la structure organisationnelle, la TdM, le guide, le contenu html, etc. La classe qui gère cette représentation est OEBBook dans ``ebooks.oeb.base``. Les diverses transformations qui sont appliquées au livre durant la conversion se situent dans :file:`oeb/transforms/*.py`. Et les extensions d'origines et de sortie se situent dans :file:`conversion/plugins/*.py`." |
| 119 |
|
| 120 |
#: ../../../__w/calibre/calibre/manual/develop.rst:58 |
| 121 |
msgid "" |
| 122 |
"E-book editing happens using a different container object. It is documented " |
| 123 |
"in :ref:`polish_api`." |
| 124 |
msgstr "L'édition de livre numérique se produit en utilisant un objet conteneur différent. Il est documenté dans :ref:`polish_api`." |
| 125 |
|
| 126 |
#: ../../../__w/calibre/calibre/manual/develop.rst:61 |
| 127 |
msgid "" |
| 128 |
"db - The database back-end. See :ref:`db_api` for the interface to the " |
| 129 |
"calibre library." |
| 130 |
msgstr "db - Le back-end de la base de données. Voir :ref:`db_api` pour l'interface à la bibliothèque calibre." |
| 131 |
|
| 132 |
#: ../../../__w/calibre/calibre/manual/develop.rst:63 |
| 133 |
msgid "Content server: ``srv`` is the calibre Content server." |
| 134 |
msgstr "Serveur de contenu : ``srv`` est le Serveur de contenu calibre." |
| 135 |
|
| 136 |
#: ../../../__w/calibre/calibre/manual/develop.rst:65 |
| 137 |
msgid "" |
| 138 |
"gui2 - The Graphical User Interface. GUI initialization happens in " |
| 139 |
"``gui2.main`` and ``gui2.ui``. The e-book-viewer is in ``gui2.viewer``. The " |
| 140 |
"e-book editor is in ``gui2.tweak_book``." |
| 141 |
msgstr "gui2 - L'Interface Graphique Utilisateur. L'initialisation du GUI se produit dans ``gui2.main`` et ``gui2.ui``. La visionneuse de livre numérique dans ``gui2.viewer``. L'éditeur de livre numérique dans ``gui2.tweak_book``." |
| 142 |
|
| 143 |
#: ../../../__w/calibre/calibre/manual/develop.rst:67 |
| 144 |
msgid "" |
| 145 |
"If you want to locate the entry points for all the various calibre " |
| 146 |
"executables, look at the ``entry_points`` structure in `linux.py " |
| 147 |
"<https://github.com/kovidgoyal/calibre/blob/master/src/calibre/linux.py>`_." |
| 148 |
msgstr "Si vous voulez localiser les points d'entrée de tous les différents exécutables de calibre, regardez à la structure ``entry_points`` dans `linux.py <https://github.com/kovidgoyal/calibre/blob/master/src/calibre/linux.py>`_." |
| 149 |
|
| 150 |
#: ../../../__w/calibre/calibre/manual/develop.rst:71 |
| 151 |
msgid "" |
| 152 |
"If you need help understanding the code, post in the `development forum " |
| 153 |
"<https://www.mobileread.com/forums/forumdisplay.php?f=240>`_ and you will " |
| 154 |
"most likely get help from one of calibre's many developers." |
| 155 |
msgstr "Si vous avez besoin d'aide pour comprendre le code, postez sur le `forum de développement <https://www.mobileread.com/forums/forumdisplay.php?f=240>`_ et vous obtiendrez très probablement de l'aide de l'un des nombreux développeurs de calibre." |
| 156 |
|
| 157 |
#: ../../../__w/calibre/calibre/manual/develop.rst:75 |
| 158 |
msgid "Getting the code" |
| 159 |
msgstr "Obtenir le code" |
| 160 |
|
| 161 |
#: ../../../__w/calibre/calibre/manual/develop.rst:77 |
| 162 |
msgid "" |
| 163 |
"You can get the calibre source code in two ways, using a version control " |
| 164 |
"system or directly downloading a :website_base:`tarball <dist/src>`." |
| 165 |
msgstr "Vous pouvez obtenir le code source de calibre de deux manières soit en utilisant un système de contrôle de version soit en téléchargeant directement une :website_base:`tarball <dist/src>`." |
| 166 |
|
| 167 |
#: ../../../__w/calibre/calibre/manual/develop.rst:80 |
| 168 |
msgid "" |
| 169 |
"calibre uses `Git <https://www.git-scm.com/>`_, a distributed version " |
| 170 |
"control system. Git is available on all the platforms calibre supports. " |
| 171 |
"After installing Git, you can get the calibre source code with the command::" |
| 172 |
msgstr "calibre utilise `Git <https://www.git-scm.com/>`_, un système de contrôle de version distribuée. Git est disponible sur toutes les plateformes supportées par calibre. Après avoir installé Git, vous pouvez obtenir le code source de calibre avec la commande::" |
| 173 |
|
| 174 |
#: ../../../__w/calibre/calibre/manual/develop.rst:86 |
| 175 |
msgid "" |
| 176 |
"On Windows you will need the complete path name, that will be something like" |
| 177 |
" :file:`C:\\\\Program Files\\\\Git\\\\git.exe`." |
| 178 |
msgstr "Sous Windows, vous aurez besoin du nom de chemin complet, ce sera quelque chose comme :file:`C:\\\\Program Files\\\\Git\\\\git.exe`." |
| 179 |
|
| 180 |
#: ../../../__w/calibre/calibre/manual/develop.rst:88 |
| 181 |
msgid "" |
| 182 |
"calibre is a very large project with a very long source control history, so " |
| 183 |
"the above can take a while (10 mins to an hour depending on your internet " |
| 184 |
"speed)." |
| 185 |
msgstr "calibre est un très grand projet, avec une très longue histoire de contrôle de source, aussi ce qui est décrit plus haut peut prendre un moment (10 minutes à une heure dépendant de la vitesse de votre connexion internet)." |
| 186 |
|
| 187 |
#: ../../../__w/calibre/calibre/manual/develop.rst:91 |
| 188 |
msgid "" |
| 189 |
"If you want to get the code faster, the source code for the latest release " |
| 190 |
"is always available as an :website_base:`archive <dist/src>`." |
| 191 |
msgstr "Si vous voulez obtenir le code source plus rapidement, le code source de la dernière version est toujours disponible comme :website_base:`archive <dist/src>`." |
| 192 |
|
| 193 |
#: ../../../__w/calibre/calibre/manual/develop.rst:94 |
| 194 |
msgid "To update a branch to the latest code, use the command::" |
| 195 |
msgstr "Pour mettre à jour une branche du dernier code, utilisez la commande::" |
| 196 |
|
| 197 |
#: ../../../__w/calibre/calibre/manual/develop.rst:98 |
| 198 |
msgid "" |
| 199 |
"You can also browse the code at `GitHub " |
| 200 |
"<https://github.com/kovidgoyal/calibre>`_." |
| 201 |
msgstr "Vous pouvez également parcourir le code sur `GitHub <https://github.com/kovidgoyal/calibre>`_." |
| 202 |
|
| 203 |
#: ../../../__w/calibre/calibre/manual/develop.rst:101 |
| 204 |
msgid "Submitting your changes to be included" |
| 205 |
msgstr "Soumettre vos changements à inclure" |
| 206 |
|
| 207 |
#: ../../../__w/calibre/calibre/manual/develop.rst:103 |
| 208 |
msgid "" |
| 209 |
"If you only plan to make a few small changes, you can make your changes and " |
| 210 |
"create a \"merge directive\" which you can then attach to a ticket in the " |
| 211 |
"calibre `bug tracker <https://bugs.launchpad.net/calibre>`_. To do this, " |
| 212 |
"make your changes, then run::" |
| 213 |
msgstr "Si vous planifiez de faire quelques petits changements, vous pouvez faire vos changements et crée une \"directive de fusion\" que vous pouvez alors attacher à un ticket dans le `bug tracker <https://bugs.launchpad.net/calibre>`_ de calibre. Pour faire cela, faites vos changements, et exécutez::" |
| 214 |
|
| 215 |
#: ../../../__w/calibre/calibre/manual/develop.rst:111 |
| 216 |
msgid "" |
| 217 |
"This will create a :file:`my-changes` file in the current folder, simply " |
| 218 |
"attach that to a ticket on the calibre `bug tracker " |
| 219 |
"<https://bugs.launchpad.net/calibre>`_. Note that this will include *all* " |
| 220 |
"the commits you have made. If you only want to send some commits, you have " |
| 221 |
"to change ``origin/master`` above. To send only the last commit, use::" |
| 222 |
msgstr "Cela créera un fichier :file:`my-changes` dans le dossier actuel, attachez le simplement à un ticket sur le `bug tracker <https://bugs.launchpad.net/calibre>`_ de calibre. Notez que ceci inclura *toutes* les validations effectuées. Si vous voulez seulement envoyer une partie des validations, vous devez changer ``origin/master`` ci-dessus. Pour envoyer seulement la dernière validation, employez::" |
| 223 |
|
| 224 |
#: ../../../__w/calibre/calibre/manual/develop.rst:119 |
| 225 |
msgid "" |
| 226 |
"To send the last *n* commits, replace *1* with *n*, for example, for the " |
| 227 |
"last 3 commits::" |
| 228 |
msgstr "Pour envoyer les dernières *n* validations, remplacer *1* avec *n*, par exemple, pour les 3 derniers validations::" |
| 229 |
|
| 230 |
#: ../../../__w/calibre/calibre/manual/develop.rst:124 |
| 231 |
msgid "Be careful to not include merges when using ``HEAD~n``." |
| 232 |
msgstr "Faites attention à ne pas inclure des fusions en employant ``HEAD~n``." |
| 233 |
|
| 234 |
#: ../../../__w/calibre/calibre/manual/develop.rst:126 |
| 235 |
msgid "" |
| 236 |
"If you plan to do a lot of development on calibre, then the best method is " |
| 237 |
"to create a `GitHub <https://github.com>`__ account. Below is a basic guide " |
| 238 |
"to setting up your own fork of calibre in a way that will allow you to " |
| 239 |
"submit pull requests for inclusion into the main calibre repository:" |
| 240 |
msgstr "Si vous planifiez de faire beaucoup de développement sur calibre, alors la meilleure méthode est de créer un compte `GitHub <https://github.com>`__. Ci-dessous se trouve un guide basique pour mettre en place votre propre embranchement de calibre d'une manière qui vous permet de soumettre des requêtes de déchargement pour l'inclusion dans le dépôt principal calibre :" |
| 241 |
|
| 242 |
#: ../../../__w/calibre/calibre/manual/develop.rst:131 |
| 243 |
msgid "" |
| 244 |
"Setup git on your machine as described in this article: `Setup Git " |
| 245 |
"<https://help.github.com/articles/set-up-git>`_" |
| 246 |
msgstr "Installer git sur votre machine comme décrit dans cet article : `Installer Git <https://help.github.com/articles/set-up-git>`_" |
| 247 |
|
| 248 |
#: ../../../__w/calibre/calibre/manual/develop.rst:132 |
| 249 |
msgid "" |
| 250 |
"Setup ssh keys for authentication to GitHub, as described here: `Generating " |
| 251 |
"SSH keys <https://help.github.com/articles/generating-ssh-keys>`_" |
| 252 |
msgstr "Installez les clés SSH pour l'authentification sur GitHub, comme décrit ici : `Generating SSH keys <https://help.github.com/articles/generating-ssh-keys>`_" |
| 253 |
|
| 254 |
#: ../../../__w/calibre/calibre/manual/develop.rst:133 |
| 255 |
msgid "" |
| 256 |
"Go to https://github.com/kovidgoyal/calibre and click the :guilabel:`Fork` " |
| 257 |
"button." |
| 258 |
msgstr "Allez sur https://github.com/kovidgoyal/calibre et cliquez sur le bouton :guilabel:`Fork`." |
| 259 |
|
| 260 |
#: ../../../__w/calibre/calibre/manual/develop.rst:134 |
| 261 |
msgid "In a Terminal do::" |
| 262 |
msgstr "Dans un Terminal faites::" |
| 263 |
|
| 264 |
#: ../../../__w/calibre/calibre/manual/develop.rst:139 |
| 265 |
msgid "" |
| 266 |
"Replace <username> above with your GitHub username. That will get your fork " |
| 267 |
"checked out locally." |
| 268 |
msgstr "Remplacez <username> ci-dessus par votre nom d'utilisateur Github. Cela obtiendra que votre embranchement sera vérifié localement." |
| 269 |
|
| 270 |
#: ../../../__w/calibre/calibre/manual/develop.rst:140 |
| 271 |
msgid "" |
| 272 |
"You can make changes and commit them whenever you like. When you are ready " |
| 273 |
"to have your work merged, do a::" |
| 274 |
msgstr "Vous pouvez y faire des changements et des validations chaque fois que vous le désirez. Quand vous êtes prêt à fusionner votre travail, faites un::" |
| 275 |
|
| 276 |
#: ../../../__w/calibre/calibre/manual/develop.rst:144 |
| 277 |
msgid "" |
| 278 |
"and go to ``https://github.com/<username>/calibre`` and click the " |
| 279 |
":guilabel:`Pull Request` button to generate a pull request that can be " |
| 280 |
"merged." |
| 281 |
msgstr "et rendez vous sur ``https://github.com/<username>/calibre`` et cliquez le bouton :guilabel:`Pull Request` pour générer une requête de déchargement qui peut être fusionnée." |
| 282 |
|
| 283 |
#: ../../../__w/calibre/calibre/manual/develop.rst:145 |
| 284 |
msgid "" |
| 285 |
"You can update your local copy with code from the main repo at any time by " |
| 286 |
"doing::" |
| 287 |
msgstr "Vous pouvez mettre à jour votre copie locale du code depuis le dépôt principal à n'importe quel moment en faisant::" |
| 288 |
|
| 289 |
#: ../../../__w/calibre/calibre/manual/develop.rst:150 |
| 290 |
msgid "" |
| 291 |
"You should also keep an eye on the calibre `development forum " |
| 292 |
"<https://www.mobileread.com/forums/forumdisplay.php?f=240>`_. Before making " |
| 293 |
"major changes, you should discuss them in the forum or contact Kovid " |
| 294 |
"directly (his email address is all over the source code)." |
| 295 |
msgstr "Vous devriez aussi garder un oeil sur le `forum de développement <https://www.mobileread.com/forums/forumdisplay.php?f=240>`_ calibre. Avant de faire des changements majeurs, vous devriez en discuter dans le forum ou contacter directement Kovid (son adresse mail est partout dans le code source)." |
| 296 |
|
| 297 |
#: ../../../__w/calibre/calibre/manual/develop.rst:156 |
| 298 |
msgid "Windows development environment" |
| 299 |
msgstr "Environnement de développement Windows" |
| 300 |
|
| 301 |
#: ../../../__w/calibre/calibre/manual/develop.rst:158 |
| 302 |
#: ../../../__w/calibre/calibre/manual/develop.rst:192 |
| 303 |
#: ../../../__w/calibre/calibre/manual/develop.rst:229 |
| 304 |
msgid "" |
| 305 |
"You must also get the calibre source code separately as described above." |
| 306 |
msgstr "Vous devez aussi récupérer le code source calibre séparément comme décrit plus haut." |
| 307 |
|
| 308 |
#: ../../../__w/calibre/calibre/manual/develop.rst:160 |
| 309 |
msgid "" |
| 310 |
"Install calibre normally, using the `Windows installer <https://calibre-" |
| 311 |
"ebook.com/download_windows>`__. Then open a Command Prompt and change to the" |
| 312 |
" previously checked out calibre code folder. For example::" |
| 313 |
msgstr "Installez calibre normalement, en utilisant `l'installateur de Windows <https://calibre-ebook.com/download_windows>`__. Ouvrez alors une Invite de Commande et changez le dossier calibre précédemment vérifié. Par exemple::" |
| 314 |
|
| 315 |
#: ../../../__w/calibre/calibre/manual/develop.rst:165 |
| 316 |
#: ../../../__w/calibre/calibre/manual/develop.rst:241 |
| 317 |
msgid "calibre is the folder that contains the src and resources sub-folders." |
| 318 |
msgstr "calibre est le dossier qui contient les sous-dossiers src et resources." |
| 319 |
|
| 320 |
#: ../../../__w/calibre/calibre/manual/develop.rst:167 |
| 321 |
msgid "" |
| 322 |
"The next step is to set the environment variable ``CALIBRE_DEVELOP_FROM`` to" |
| 323 |
" the absolute path of the src folder. So, following the example above, it " |
| 324 |
"would be ``C:\\Users\\kovid\\work\\calibre\\src``. `Here is a short guide " |
| 325 |
"<https://docs.python.org/using/windows.html#excursus-setting-environment-" |
| 326 |
"variables>`_ to setting environment variables on Windows." |
| 327 |
msgstr "L'étape suivante est de régler la variable d'environnement ``CALIBRE_DEVELOP_FROM`` au chemin absolu du dossier src. Ainsi, en suivant l'exemple ci-dessus, il devrait être ``C:\\Users\\kovid\\work\\calibre\\src``. `Voici un court guide <https://docs.python.org/using/windows.html#excursus-setting-environment-variables>`_ pour paramétrer les variables d'environnement sous Windows." |
| 328 |
|
| 329 |
#: ../../../__w/calibre/calibre/manual/develop.rst:172 |
| 330 |
msgid "" |
| 331 |
"Once you have set the environment variable, open a new command prompt and " |
| 332 |
"check that it was correctly set by using the command::" |
| 333 |
msgstr "Une vois que vous avez réglé la variable d'environnement, ouvrez une nouvelle invite de commande et vérifiez qu'elle est correctement paramétrée en utilisant la commande::" |
| 334 |
|
| 335 |
#: ../../../__w/calibre/calibre/manual/develop.rst:177 |
| 336 |
#: ../../../__w/calibre/calibre/manual/develop.rst:260 |
| 337 |
msgid "" |
| 338 |
"Setting this environment variable means that calibre will now load all its " |
| 339 |
"Python code from the specified location." |
| 340 |
msgstr "Paramétrer cette variable d'environnement signifie que calibre chargera maintenant tout son code Python à partir de l'emplacement spécifié." |
| 341 |
|
| 342 |
#: ../../../__w/calibre/calibre/manual/develop.rst:179 |
| 343 |
msgid "" |
| 344 |
"That's it! You are now ready to start hacking on the calibre code. For " |
| 345 |
"example, open the file :file:`src\\\\calibre\\\\__init__.py` in your " |
| 346 |
"favorite editor and add the line::" |
| 347 |
msgstr "Voilà. vous êtes maintenant prêt à commencer à bidouiller le code calibre. Par exemple, ouvrez le fichier :file:`src\\\\calibre\\\\__init__.py` dans votre éditeur préféré et ajoutez la ligne::" |
| 348 |
|
| 349 |
#: ../../../__w/calibre/calibre/manual/develop.rst:184 |
| 350 |
#: ../../../__w/calibre/calibre/manual/develop.rst:267 |
| 351 |
msgid "" |
| 352 |
"near the top of the file. Now run the command :command:`calibredb`. The very" |
| 353 |
" first line of output should be ``Hello, world!``." |
| 354 |
msgstr "près du dessus du ficher. Exécutez maintenant la commande :command:`calibredb`. La toute première ligne de production devrait être ``Hello, world!``." |
| 355 |
|
| 356 |
#: ../../../__w/calibre/calibre/manual/develop.rst:186 |
| 357 |
msgid "" |
| 358 |
"You can also setup a calibre development environment inside the free " |
| 359 |
"Microsoft Visual Studio, if you like, following the instructions `here " |
| 360 |
"<https://www.mobileread.com/forums/showthread.php?t=251201>`_." |
| 361 |
msgstr "Vous pouvez également mettre en place l'environnement de développement dans le Microsoft Visual Studion libre, si vous préférez, suivre les instructions `ici <https://www.mobileread.com/forums/showthread.php?t=251201>`_." |
| 362 |
|
| 363 |
#: ../../../__w/calibre/calibre/manual/develop.rst:190 |
| 364 |
msgid "macOS development environment" |
| 365 |
msgstr "Environnement de développement macOS" |
| 366 |
|
| 367 |
#: ../../../__w/calibre/calibre/manual/develop.rst:194 |
| 368 |
msgid "" |
| 369 |
"Install calibre normally using the `provided .dmg <https://calibre-" |
| 370 |
"ebook.com/download_osx>`__. Then open a Terminal and change to the " |
| 371 |
"previously checked out calibre code folder, for example::" |
| 372 |
msgstr "" |
| 373 |
|
| 374 |
#: ../../../__w/calibre/calibre/manual/develop.rst:199 |
| 375 |
msgid "" |
| 376 |
"calibre is the folder that contains the src and resources sub-folders. The " |
| 377 |
"calibre command line tools are found inside the calibre app bundle, in " |
| 378 |
":file:`/Applications/calibre.app/Contents/MacOS` you should add this folder " |
| 379 |
"to your PATH environment variable, if you want to run the command line tools" |
| 380 |
" easily." |
| 381 |
msgstr "calibre est le dossier qui contient les sous-dossiers src et resources. Les outils en ligne de commande calibre se trouvent à l'intérieur du paquet d'applications calibre, dans :file:`/Applications/calibre.app/Contents/MacOS` vous devez ajouter ce dossier à votre variable d'environnement PATH, si vous voulez exécuter facilement les outils en ligne de commande." |
| 382 |
|
| 383 |
#: ../../../__w/calibre/calibre/manual/develop.rst:205 |
| 384 |
msgid "" |
| 385 |
"The next step is to create a bash script that will set the environment " |
| 386 |
"variable ``CALIBRE_DEVELOP_FROM`` to the absolute path of the src folder " |
| 387 |
"when running calibre in debug mode." |
| 388 |
msgstr "L'étape suivante est de créer un script bash qui paramétrera les variables d'environnement `CALIBRE_DEVELOP_FROM`` au chemin absolu du dossier src lors de l'exécution de calibre en mode dépannage." |
| 389 |
|
| 390 |
#: ../../../__w/calibre/calibre/manual/develop.rst:208 |
| 391 |
msgid "Create a plain text file::" |
| 392 |
msgstr "Créez un fichier texte brut::" |
| 393 |
|
| 394 |
#: ../../../__w/calibre/calibre/manual/develop.rst:214 |
| 395 |
msgid "" |
| 396 |
"Save this file as :file:`/usr/local/bin/calibre-develop`, then set its " |
| 397 |
"permissions so that it can be executed::" |
| 398 |
msgstr "Sauvegardez le fichier comme :file:`/usr/bin/calibre-develop`, paramétrer alors ses permissions afin qu'il puisse être exécuté ::" |
| 399 |
|
| 400 |
#: ../../../__w/calibre/calibre/manual/develop.rst:218 |
| 401 |
msgid "Once you have done this, run::" |
| 402 |
msgstr "Une fois que vous avez fait cela, exécuter :" |
| 403 |
|
| 404 |
#: ../../../__w/calibre/calibre/manual/develop.rst:222 |
| 405 |
msgid "" |
| 406 |
"You should see some diagnostic information in the Terminal window as calibre" |
| 407 |
" starts up, and you should see an asterisk after the version number in the " |
| 408 |
"GUI window, indicating that you are running from source." |
| 409 |
msgstr "Vous devriez voir quelques informations diagnostiques dans la fenêtre Terminal au démarrage de calibre, et vous devriez voir une astérisque après le numéro de version dans la fenêtre GUI, indiquant que vous exécutez depuis la source." |
| 410 |
|
| 411 |
#: ../../../__w/calibre/calibre/manual/develop.rst:227 |
| 412 |
msgid "Linux development environment" |
| 413 |
msgstr "Environnement de développement Linux" |
| 414 |
|
| 415 |
#: ../../../__w/calibre/calibre/manual/develop.rst:231 |
| 416 |
msgid "" |
| 417 |
"calibre is primarily developed on Linux. You have two choices in setting up " |
| 418 |
"the development environment. You can install the calibre binary as normal " |
| 419 |
"and use that as a runtime environment to do your development. This approach " |
| 420 |
"is similar to that used in Windows and macOS. Alternatively, you can install" |
| 421 |
" calibre from source. Instructions for setting up a development environment " |
| 422 |
"from source are in the INSTALL file in the source tree. Here we will address" |
| 423 |
" using the binary as a runtime, which is the recommended method." |
| 424 |
msgstr "calibre est principalement développé sous Linux. Vous avez deux choix pour paramétrer l'environnement de développement. Vous pouvez installer le binaire calibre comme à la normale et l'employer comme environnement d'exécution pour faire votre développement. Cette approche est similaire à celle utilisée dans Windows et macOS. Alternativement, vous pouvez installer calibre depuis la source. Les instructions pour installer un environnement de développement depuis la source sont dans le fichier INSTALL dans l'arborescence de source. Ici nous nous adresserons en utilisant le binaire d'exécution, qui est la méthode recommandée." |
| 425 |
|
| 426 |
#: ../../../__w/calibre/calibre/manual/develop.rst:237 |
| 427 |
msgid "" |
| 428 |
"Install calibre using the `binary installer <https://calibre-" |
| 429 |
"ebook.com/download_linux>`_. Then open a terminal and change to the " |
| 430 |
"previously checked out calibre code folder, for example::" |
| 431 |
msgstr "" |
| 432 |
|
| 433 |
#: ../../../__w/calibre/calibre/manual/develop.rst:243 |
| 434 |
msgid "" |
| 435 |
"The next step is to set the environment variable ``CALIBRE_DEVELOP_FROM`` to" |
| 436 |
" the absolute path of the src folder. So, following the example above, it " |
| 437 |
"would be ``/home/kovid/work/calibre/src``. How to set environment variables " |
| 438 |
"depends on your Linux distribution and what shell you are using." |
| 439 |
msgstr "L'étape suivante est de créer un script bash qui paramétrera les variables d'environnement ``CALIBRE_DEVELOP_FROM`` au chemin absolu du dossier src. Aussi, en suivant l'exemple ci-dessus, il devrait être ``/home/kovid/work/calibre/src``. Comment paramétrer les variables d'environnement dépend de votre distribution Linux et de quel shell vous utilisez." |
| 440 |
|
| 441 |
#: ../../../__w/calibre/calibre/manual/develop.rst:248 |
| 442 |
msgid "" |
| 443 |
"It is recommended to use the binary installer provided from upstream. Should" |
| 444 |
" you insist on using a package provided by your distribution, use the " |
| 445 |
"``CALIBRE_PYTHON_PATH`` and ``CALIBRE_RESOURCES_PATH`` variables instead. " |
| 446 |
"You can get these by running ``calibre-debug --paths``. But note that " |
| 447 |
"distribution calibre packages are often terminally broken and are completely" |
| 448 |
" unsupported." |
| 449 |
msgstr "" |
| 450 |
|
| 451 |
#: ../../../__w/calibre/calibre/manual/develop.rst:255 |
| 452 |
msgid "" |
| 453 |
"Once you have set the environment variable, open a new terminal and check " |
| 454 |
"that it was correctly set by using the command::" |
| 455 |
msgstr "Une fois que vous avez paramétré la variable d'environnement, ouvrez un nouveau terminal et vérifiez qu'elle a été correctement paramétrée en utilisant la commande::" |
| 456 |
|
| 457 |
#: ../../../__w/calibre/calibre/manual/develop.rst:262 |
| 458 |
msgid "" |
| 459 |
"That's it! You are now ready to start hacking on the calibre code. For " |
| 460 |
"example, open the file :file:`src/calibre/__init__.py` in your favorite " |
| 461 |
"editor and add the line::" |
| 462 |
msgstr "Voilà ! Vous êtes maintenant prêt à commencer à bidouiller le code calibre. Par exemple, ouvrez le fichier :file:`src\\\\calibre\\\\__init__.py` dans votre éditeur préféré et ajoutez la ligne::" |
| 463 |
|
| 464 |
#: ../../../__w/calibre/calibre/manual/develop.rst:270 |
| 465 |
msgid "" |
| 466 |
"Having separate \"normal\" and \"development\" calibre installs on the same " |
| 467 |
"computer" |
| 468 |
msgstr "Avoir des installations séparées de calibre \"normale\" et \"développement\" sur le même ordinateur" |
| 469 |
|
| 470 |
#: ../../../__w/calibre/calibre/manual/develop.rst:272 |
| 471 |
msgid "" |
| 472 |
"The calibre source tree is very stable and rarely breaks, but if you feel " |
| 473 |
"the need to run from source on a separate test library and run the released " |
| 474 |
"calibre version with your everyday library, you can achieve this easily " |
| 475 |
"using .bat files or shell scripts to launch calibre. The example below shows" |
| 476 |
" how to do this on Windows using .bat files (the instructions for other " |
| 477 |
"platforms are the same, just use a shell script instead of a .bat file)" |
| 478 |
msgstr "L'arborescence de source calibre est très stable et se rompt rarement, mais si vous sentez la nécessité d'exécuter depuis la source sur une bibliothèque distincte d'essai et de d'exécuter une version libre de calibre avec votre bibliothèque quotidienne, vous pouvez réaliser ceci facilement en utilisant des fichiers .bat ou des scripts shell pour lancer calibre. L'exemple ci-dessous expose comment faire ceci sur Windows utilisant des fichiers .bat (les instructions pour d'autres plates-formes sont identiques, employez juste un script shell au lieu d'un fichier .bat)" |
| 479 |
|
| 480 |
#: ../../../__w/calibre/calibre/manual/develop.rst:277 |
| 481 |
msgid "To launch the release version of calibre with your everyday library:" |
| 482 |
msgstr "Pour lancer la nouvelle version de calibre avec votre bibliothèque quotidienne :" |
| 483 |
|
| 484 |
#: ../../../__w/calibre/calibre/manual/develop.rst:279 |
| 485 |
msgid "calibre-normal.bat::" |
| 486 |
msgstr "calibre-normal.bat::" |
| 487 |
|
| 488 |
#: ../../../__w/calibre/calibre/manual/develop.rst:283 |
| 489 |
msgid "calibre-dev.bat::" |
| 490 |
msgstr "calibre-dev.bat::" |
| 491 |
|
| 492 |
#: ../../../__w/calibre/calibre/manual/develop.rst:290 |
| 493 |
msgid "Debugging tips" |
| 494 |
msgstr "Astuces de dépannage" |
| 495 |
|
| 496 |
#: ../../../__w/calibre/calibre/manual/develop.rst:292 |
| 497 |
msgid "" |
| 498 |
"Python is a dynamically typed language with excellent facilities for " |
| 499 |
"introspection. Kovid wrote the core calibre code without once using a " |
| 500 |
"debugger. There are many strategies to debug calibre code:" |
| 501 |
msgstr "Python est un langage opérant sur des objets de types déterminés dynamiquement avec d'excellents équipements pour l'introspection. Kovid a écrit le noyau du code calibre sans utiliser une fois un débogueur. Il y a beaucoup de stratégies pour corriger le code calibre :" |
| 502 |
|
| 503 |
#: ../../../__w/calibre/calibre/manual/develop.rst:297 |
| 504 |
msgid "Using print statements" |
| 505 |
msgstr "En utilisant les déclarations d'impression" |
| 506 |
|
| 507 |
#: ../../../__w/calibre/calibre/manual/develop.rst:299 |
| 508 |
msgid "" |
| 509 |
"This is Kovid's favorite way to debug. Simply insert print statements at " |
| 510 |
"points of interest and run your program in the terminal. For example, you " |
| 511 |
"can start the GUI from the terminal as::" |
| 512 |
msgstr "C'est la manière favorite de Kovid pour dépanner. Insérez simplement des déclarations d'impression aux points d'intérêt et exécuter votre programme dans le terminal. Par exemple : vous pouvez démarrer le GUI à partir du terminal comme::" |
| 513 |
|
| 514 |
#: ../../../__w/calibre/calibre/manual/develop.rst:304 |
| 515 |
msgid "Similarly, you can start the E-book viewer as::" |
| 516 |
msgstr "Similairement, vous pouvez démarrer la visionneuse de livre numérique comme ::" |
| 517 |
|
| 518 |
#: ../../../__w/calibre/calibre/manual/develop.rst:308 |
| 519 |
msgid "The e-book editor can be started as::" |
| 520 |
msgstr "" |
| 521 |
|
| 522 |
#: ../../../__w/calibre/calibre/manual/develop.rst:313 |
| 523 |
msgid "Using an interactive Python interpreter" |
| 524 |
msgstr "Utilisation d'un interpréte Python interactif" |
| 525 |
|
| 526 |
#: ../../../__w/calibre/calibre/manual/develop.rst:315 |
| 527 |
msgid "" |
| 528 |
"You can insert the following two lines of code to start an interactive " |
| 529 |
"Python session at that point::" |
| 530 |
msgstr "Vous pouvez insérer les deux lignes de code suivantes pour démarrer la session interactive Python à cet endroit::" |
| 531 |
|
| 532 |
#: ../../../__w/calibre/calibre/manual/develop.rst:320 |
| 533 |
msgid "" |
| 534 |
"When running from the command line, this will start an interactive Python " |
| 535 |
"interpreter with access to all locally defined variables (variables in the " |
| 536 |
"local scope). The interactive prompt even has :kbd:`Tab` completion for " |
| 537 |
"object properties and you can use the various Python facilities for " |
| 538 |
"introspection, such as :func:`dir`, :func:`type`, :func:`repr`, etc." |
| 539 |
msgstr "Lors de l'exécution à partir de la ligne de commande, cela démarrera l'interpréteur python interactif avec accès à toutes les variables définies localement (variables dans la portée locale). L'invite interactive a même une complétion :kbd:`Tab` pour les propriétés d'objet et vous pouvez utiliser les diverses facilités Python pour l'introspection, telles que :func:`dir`, :func:`type`, :func:`repr`, etc." |
| 540 |
|
| 541 |
#: ../../../__w/calibre/calibre/manual/develop.rst:326 |
| 542 |
msgid "Using the Python debugger as a remote debugger" |
| 543 |
msgstr "Utiliser le débogueur de Python comme débogueur à distance" |
| 544 |
|
| 545 |
#: ../../../__w/calibre/calibre/manual/develop.rst:328 |
| 546 |
msgid "" |
| 547 |
"You can use the builtin Python debugger (pdb) as a remote debugger from the " |
| 548 |
"command line. First, start the remote debugger at the point in the calibre " |
| 549 |
"code you are interested in, like this::" |
| 550 |
msgstr "Vous pouvez utiliser le débogueur intégré de Python (pdb) comme débogueur à distance en ligne de commande. D'abord, démarrez le débogueur à distance au point qui vous intéresse dans le code de calibre, comme ceci::" |
| 551 |
|
| 552 |
#: ../../../__w/calibre/calibre/manual/develop.rst:335 |
| 553 |
msgid "" |
| 554 |
"Then run calibre, either as normal, or using one of the calibre-debug " |
| 555 |
"commands described in the previous section. Once the above point in the code" |
| 556 |
" is reached, calibre will freeze, waiting for the debugger to connect." |
| 557 |
msgstr "Exécuter alors calibre, soit comme normal, ou en utilisant une des commandes calibre-debug décrite dans la section précédente. Une fois le point ci-dessus atteint dans le code, calibre gèlera, attendant le débogueur pour se connecter." |
| 558 |
|
| 559 |
#: ../../../__w/calibre/calibre/manual/develop.rst:339 |
| 560 |
msgid "" |
| 561 |
"Now open a terminal or command prompt and use the following command to start" |
| 562 |
" the debugging session::" |
| 563 |
msgstr "Ouvrez maintenant un terminal ou une invite de commande et utilisez la commande suivante pour démarrer la session de débogage::" |
| 564 |
|
| 565 |
#: ../../../__w/calibre/calibre/manual/develop.rst:344 |
| 566 |
msgid "" |
| 567 |
"You can read about how to use the Python debugger in the `Python stdlib docs" |
| 568 |
" for the pdb module <https://docs.python.org/library/pdb.html#debugger-" |
| 569 |
"commands>`_." |
| 570 |
msgstr "Vous pouvez lire à propos de comment utiliser le débogueur Python dans `Python stdlib docs for the pdb module <https://docs.python.org/library/pdb.html#debugger-commands>`_." |
| 571 |
|
| 572 |
#: ../../../__w/calibre/calibre/manual/develop.rst:348 |
| 573 |
msgid "" |
| 574 |
"By default, the remote debugger will try to connect on port 4444. You can " |
| 575 |
"change it, by passing the port parameter to both the set_trace() and the " |
| 576 |
"cli() functions above, like this: ``set_trace(port=1234)`` and " |
| 577 |
"``cli(port=1234)``." |
| 578 |
msgstr "Par défaut, le débogueur à distance essaiera de se connecter sur le port 4444. Vous pouvez le changer, en modifiant le paramètre de port des fonctions set_trace() et cli() ci-dessus, comme ceci : ``set_trace(port=1234)`` et ``cli(port=1234)``." |
| 579 |
|
| 580 |
#: ../../../__w/calibre/calibre/manual/develop.rst:354 |
| 581 |
msgid "" |
| 582 |
"The Python debugger cannot handle multiple threads, so you have to call " |
| 583 |
"set_trace once per thread, each time with a different port number." |
| 584 |
msgstr "Le débogueur de Python ne peut pas manipuler des fils multiples, aussi vous devez appeler le set_trace une fois par fil, chaque fois avec un numéro de port différent." |
| 585 |
|
| 586 |
#: ../../../__w/calibre/calibre/manual/develop.rst:358 |
| 587 |
msgid "Using the debugger in your favorite Python IDE" |
| 588 |
msgstr "Utiliser le débogueur dans votre IDE Python préféré" |
| 589 |
|
| 590 |
#: ../../../__w/calibre/calibre/manual/develop.rst:360 |
| 591 |
msgid "" |
| 592 |
"It is possible to use the builtin debugger in your favorite Python IDE, if " |
| 593 |
"it supports remote debugging. The first step is to add the calibre src " |
| 594 |
"checkout to the ``PYTHONPATH`` in your IDE. In other words, the folder you " |
| 595 |
"set as ``CALIBRE_DEVELOP_FROM`` above, must also be in the ``PYTHONPATH`` of" |
| 596 |
" your IDE." |
| 597 |
msgstr "Il est possible d'utiliser le débogueur intégré dans votre IDE Python préféré, s'il supporte le débogage à distance. La première étape est d'ajouter la src vérifiée calibre au ``PYTHONPATH`` dans votre IDE. En d'autres mots, le dossier que vous avec paramétré plus haut comme ``CALIBRE_DEVELOP_FROM``, doit aussi être dans le ``PYTHONPATH`` de votre IDE." |
| 598 |
|
| 599 |
#: ../../../__w/calibre/calibre/manual/develop.rst:365 |
| 600 |
msgid "" |
| 601 |
"Then place the IDE's remote debugger module into the :file:`src` sub-folder " |
| 602 |
"of the calibre source code checkout. Add whatever code is needed to launch " |
| 603 |
"the remote debugger to calibre at the point of interest, for example in the " |
| 604 |
"main function. Then run calibre as normal. Your IDE should now be able to " |
| 605 |
"connect to the remote debugger running inside calibre." |
| 606 |
msgstr "Placez alors me module IDE de débogage à distance dans le sous-dossier :file:`src` du code source vérifié calibre. Ajoutez ni'importe quel nécessaire pour lancer le débogueur à distance sur calibre au point d'intérêt, par exemple dans la fonction principale. Exécutez alors calibre comme normalement. Votre IDE devrait être capable de se connecter au débogueur à distance s'exécutant dans calibre." |
| 607 |
|
| 608 |
#: ../../../__w/calibre/calibre/manual/develop.rst:372 |
| 609 |
msgid "Executing arbitrary scripts in the calibre Python environment" |
| 610 |
msgstr "Exécuter des scripts quelconques dans l'environnement Python calibre" |
| 611 |
|
| 612 |
#: ../../../__w/calibre/calibre/manual/develop.rst:374 |
| 613 |
msgid "" |
| 614 |
"The :command:`calibre-debug` command provides a couple of handy switches to " |
| 615 |
"execute your own code, with access to the calibre modules::" |
| 616 |
msgstr "La commande :command:`calibre-debug` fournit quelques commutateurs pratiques pour exécuter votre propre code, avec l'accès aux modules calibre::" |
| 617 |
|
| 618 |
#: ../../../__w/calibre/calibre/manual/develop.rst:379 |
| 619 |
msgid "" |
| 620 |
"is great for testing a little snippet of code on the command line. It works " |
| 621 |
"in the same way as the -c switch to the Python interpreter::" |
| 622 |
msgstr "est bien pour examiner un petit extrait de code sur la ligne de commande. Cela fonctionne de la même manière que le commutateur -c de l’interpréteur Python::" |
| 623 |
|
| 624 |
#: ../../../__w/calibre/calibre/manual/develop.rst:383 |
| 625 |
msgid "" |
| 626 |
"can be used to execute your own Python script. It works in the same way as " |
| 627 |
"passing the script to the Python interpreter, except that the calibre " |
| 628 |
"environment is fully initialized, so you can use all the calibre code in " |
| 629 |
"your script. To use command line arguments with your script, use the form::" |
| 630 |
msgstr "peut être employé pour exécuter votre propre script python. Cela fonctionne de la même manière que de passer le script à l'interpréteur python, sauf que l'environnement de calibre est entièrement initialisé, ainsi vous pouvez employer tout le code de calibre dans votre script. Pour employer les arguments en ligne de commande avec votre script, utilisez la forme::" |
| 631 |
|
| 632 |
#: ../../../__w/calibre/calibre/manual/develop.rst:388 |
| 633 |
msgid "" |
| 634 |
"The ``--`` causes all subsequent arguments to be passed to your script." |
| 635 |
msgstr "``--`` entraîne tous les arguments suivants d'être passés à votre script." |
| 636 |
|
| 637 |
#: ../../../__w/calibre/calibre/manual/develop.rst:392 |
| 638 |
msgid "Using calibre in your projects" |
| 639 |
msgstr "Utilisation de calibre dans vos projets" |
| 640 |
|
| 641 |
#: ../../../__w/calibre/calibre/manual/develop.rst:394 |
| 642 |
msgid "" |
| 643 |
"It is possible to directly use calibre functions/code in your Python " |
| 644 |
"project. Two ways exist to do this:" |
| 645 |
msgstr "Il est possible d'utiliser d'utiliser les fonctions/code calibre dans votre projet Python. Deux manières existent pour faire cela :" |
| 646 |
|
| 647 |
#: ../../../__w/calibre/calibre/manual/develop.rst:397 |
| 648 |
msgid "Binary install of calibre" |
| 649 |
msgstr "Installation binaire de calibre" |
| 650 |
|
| 651 |
#: ../../../__w/calibre/calibre/manual/develop.rst:399 |
| 652 |
msgid "" |
| 653 |
"If you have a binary install of calibre, you can use the Python interpreter " |
| 654 |
"bundled with calibre, like this::" |
| 655 |
msgstr "Si vous avez une installation binaire de calibre, vous pouvez utiliser l'interpréteur python empaqueté avec calibre, comme ceci::" |
| 656 |
|
| 657 |
#: ../../../__w/calibre/calibre/manual/develop.rst:404 |
| 658 |
msgid "Source install on Linux" |
| 659 |
msgstr "Installez les sources sur Linux" |
| 660 |
|
| 661 |
#: ../../../__w/calibre/calibre/manual/develop.rst:406 |
| 662 |
msgid "" |
| 663 |
"In addition to using the above technique, if you do a source install on " |
| 664 |
"Linux, you can also directly import calibre, as follows::" |
| 665 |
msgstr "En complément de l'utilisation de la technique ci-dessus, si vos faites une installation des sources sur Linux, vous pouvez aussi importer directement calibre, comme suit::" |
| 666 |
|
| 667 |
#: ../../../__w/calibre/calibre/manual/develop.rst:414 |
| 668 |
msgid "" |
| 669 |
"It is essential that you import the init_calibre module before any other " |
| 670 |
"calibre modules/packages as it sets up the interpreter to run calibre code." |
| 671 |
msgstr "Il est essentiel que vous importiez le module init_calibre avant tout autre modules/package calibre comme il a installé l'interpréteur pour exécuter le code calibre." |
| 672 |
|
| 673 |
#: ../../../__w/calibre/calibre/manual/develop.rst:418 |
| 674 |
msgid "API documentation for various parts of calibre" |
| 675 |
msgstr "Documentation API pour différentes parties de calibre" |