Debian Codegraph @

translations/manual/et/creating_plugins.po

raw
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 # Maidur, 2016-2017,2019
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: calibre\n"
10 "Report-Msgid-Bugs-To: \n"
11 "POT-Creation-Date: 2022-07-10 16:17+0000\n"
12 "PO-Revision-Date: 2014-06-17 08:35+0000\n"
13 "Last-Translator: Maidur, 2016-2017,2019\n"
14 "Language-Team: Estonian (http://www.transifex.com/calibre/calibre/language/et/)\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Language: et\n"
19 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
20
21 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:4
22 msgid "Writing your own plugins to extend calibre's functionality"
23 msgstr "Oma pluginate kirjutamine calibre funktsionaalsuse laiendamiseks"
24
25 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:6
26 msgid ""
27 "calibre has a very modular design. Almost all functionality in calibre comes"
28 " in the form of plugins. Plugins are used for conversion, for downloading "
29 "news (though these are called recipes), for various components of the user "
30 "interface, to connect to different devices, to process files when adding "
31 "them to calibre and so on. You can get a complete list of all the built-in "
32 "plugins in calibre by going to :guilabel:`Preferences->Advanced->Plugins`."
33 msgstr "calibrel on väga modulaarne ülesehitus. Pea kogu calibre funktsionaalsus tuleb pluginate kujul. Pluginaid kasutatakse teisendamiseke, uudiste allalaadimiseks (kuigi neid kutsutakse retseptideks), kasutajaliidese eri komponentideks, erinevate seadmetega ühendumiseks, failide calibresse lisamisel nende töötlemiseks ja nii edasi. Kõigi calibre sisseehitatud pluginate täieliku loendi nägemiseks mine :guilabel:`Eelistused->Täpsemad->Pluginad`."
34
35 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:8
36 msgid ""
37 "Here, we will teach you how to create your own plugins to add new features "
38 "to calibre."
39 msgstr "Siin õpetame sulle, kuidas luua oma pluginaid, et calibresse uusi võimalusi lisada."
40
41 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:13
42 msgid "Contents"
43 msgstr "Sisukord"
44
45 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:15
46 msgid "This only applies to calibre releases >= 0.8.60"
47 msgstr "See käib ainult calibre väljalasete >= 0.8.60 kohta"
48
49 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:18
50 msgid "Anatomy of a calibre plugin"
51 msgstr "calibre plugina anatoomia"
52
53 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:20
54 msgid ""
55 "A calibre plugin is very simple, it's just a ZIP file that contains some "
56 "Python code and any other resources like image files needed by the plugin. "
57 "Without further ado, let's see a basic example."
58 msgstr "calibre plugin on väga lihtne, see on vaid ZIP-fail, mis sisaldab pisut Python koodi ja muid ressursse, nagu pluginale vajalikud pildifailid. Ilma pikema jututa vaadakem põhilist näidet."
59
60 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:24
61 msgid ""
62 "Suppose you have an installation of calibre that you are using to self "
63 "publish various e-documents in EPUB and MOBI formats. You would like all "
64 "files generated by calibre to have their publisher set as \"Hello world\", "
65 "here's how to do it. Create a file named :file:`__init__.py` (this is a "
66 "special name and must always be used for the main file of your plugin) and "
67 "enter the following Python code into it:"
68 msgstr ""
69
70 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:32
71 msgid ""
72 "That's all. To add this code to calibre as a plugin, simply run the "
73 "following in the folder in which you created :file:`__init__.py`::"
74 msgstr ""
75
76 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:38
77 msgid ""
78 "On macOS, the command line tools are inside the calibre bundle, for example,"
79 " if you installed calibre in :file:`/Applications` the command line tools "
80 "are in :file:`/Applications/calibre.app/Contents/MacOS/`."
81 msgstr ""
82
83 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:42
84 msgid ""
85 "You can download the Hello World plugin from "
86 ":download_file:`helloworld_plugin.zip`."
87 msgstr ""
88
89 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:45
90 msgid ""
91 "Every time you use calibre to convert a book, the plugin's :meth:`run` "
92 "method will be called and the converted book will have its publisher set to "
93 "\"Hello World\". This is a trivial plugin, lets move on to a more complex "
94 "example that actually adds a component to the user interface."
95 msgstr ""
96
97 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:50
98 msgid "A User Interface plugin"
99 msgstr "Kasutajaliidese plugin"
100
101 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:52
102 msgid ""
103 "This plugin will be spread over a few files (to keep the code clean). It "
104 "will show you how to get resources (images or data files) from the plugin "
105 "ZIP file, allow users to configure your plugin, how to create elements in "
106 "the calibre user interface and how to access and query the books database in"
107 " calibre."
108 msgstr ""
109
110 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:57
111 msgid ""
112 "You can download this plugin from :download_file:`interface_demo_plugin.zip`"
113 msgstr ""
114
115 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:61
116 msgid ""
117 "The first thing to note is that this ZIP file has a lot more files in it, "
118 "explained below, pay particular attention to ``plugin-import-name-"
119 "interface_demo.txt``."
120 msgstr ""
121
122 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:77
123 msgid "**plugin-import-name-interface_demo.txt**"
124 msgstr "**plugin-import-name-interface_demo.txt**"
125
126 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:65
127 msgid ""
128 "An empty text file used to enable the multi-file plugin magic. This file "
129 "must be present in all plugins that use more than one .py file. It should be"
130 " empty and its filename must be of the form: ``plugin-import-"
131 "name-**some_name**.txt``. The presence of this file allows you to import "
132 "code from the .py files present inside the ZIP file, using a statement "
133 "like::"
134 msgstr ""
135
136 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:71
137 msgid ""
138 "The prefix ``calibre_plugins`` must always be present. ``some_name`` comes "
139 "from the filename of the empty text file. ``some_module`` refers to "
140 ":file:`some_module.py` file inside the ZIP file. Note that this importing is"
141 " just as powerful as regular Python imports. You can create packages and "
142 "subpackages of .py modules inside the ZIP file, just like you would normally"
143 " (by defining __init__.py in each sub-folder), and everything should \"just "
144 "work\"."
145 msgstr ""
146
147 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:76
148 msgid ""
149 "The name you use for ``some_name`` enters a global namespace shared by all "
150 "plugins, **so make it as unique as possible**. But remember that it must be "
151 "a valid Python identifier (only alphabets, numbers and the underscore)."
152 msgstr ""
153
154 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:80
155 msgid "**__init__.py**"
156 msgstr "**__init__.py**"
157
158 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:80
159 msgid "As before, the file that defines the plugin class"
160 msgstr "Nagu enne, fail, mis määratleb plugina klassi"
161
162 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:83
163 msgid "**main.py**"
164 msgstr "**main.py**"
165
166 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:83
167 msgid "This file contains the actual code that does something useful"
168 msgstr "See fail sisaldab tegelikku koodi, mis teeb midagi kasulikku"
169
170 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:86
171 msgid "**ui.py**"
172 msgstr "**ui.py**"
173
174 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:86
175 msgid "This file defines the interface part of the plugin"
176 msgstr "See fail määratleb plugina liidesepoolse osa"
177
178 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:89
179 msgid "**images/icon.png**"
180 msgstr "**images/icon.png**"
181
182 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:89
183 msgid "The icon for this plugin"
184 msgstr "Selle plugina ikoon"
185
186 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:92
187 msgid "**about.txt**"
188 msgstr "**about.txt**"
189
190 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:92
191 msgid "A text file with information about the plugin"
192 msgstr "Tekstifail plugina kohta käiva teabega"
193
194 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:97
195 msgid "**translations**"
196 msgstr "**translations**"
197
198 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:95
199 msgid ""
200 "A folder containing .mo files with the translations of the user interface of"
201 " your plugin into different languages. See below for details."
202 msgstr "Kaust, mis sisaldab .mo faile sinu plugina kasutajaliidese tõlgetega erinevatesse keeltesse. Üksikasjade saamiseks loe allpool olevat teksti."
203
204 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:99
205 msgid "Now let's look at the code."
206 msgstr "Vaadakem nüüd koodi."
207
208 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:102
209 msgid "__init__.py"
210 msgstr "__init__.py"
211
212 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:104
213 msgid "First, the obligatory ``__init__.py`` to define the plugin metadata:"
214 msgstr "Kõigepealt kohustuslik ``__init__.py``, et määratleda plugina metaandmed:"
215
216 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:109
217 msgid ""
218 "The only noteworthy feature is the field :attr:`actual_plugin`. Since "
219 "calibre has both command line and GUI interfaces, GUI plugins like this one "
220 "should not load any GUI libraries in __init__.py. The actual_plugin field "
221 "does this for you, by telling calibre that the actual plugin is to be found "
222 "in another file inside your ZIP archive, which will only be loaded in a GUI "
223 "context."
224 msgstr ""
225
226 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:114
227 msgid ""
228 "Remember that for this to work, you must have a plugin-import-name-"
229 "some_name.txt file in your plugin ZIP file, as discussed above."
230 msgstr ""
231
232 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:117
233 msgid ""
234 "Also there are a couple of methods for enabling user configuration of the "
235 "plugin. These are discussed below."
236 msgstr "Samuti on olemas mõned meetodid kasutajatel plugina seadistamise lubamiseks. Nendest on juttu allpool."
237
238 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:120
239 msgid "ui.py"
240 msgstr "ui.py"
241
242 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:122
243 msgid ""
244 "Now let's look at ui.py which defines the actual GUI plugin. The source code"
245 " is heavily commented and should be self explanatory:"
246 msgstr "Nüüd vaadakem faili ui.py, mis määratleb tegeliku kasutajaliidese plugina. Lähtekood on kõvasti kommenteeritud ja peaks olema iseenesest selge:"
247
248 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:128
249 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:220
250 msgid "main.py"
251 msgstr "main.py"
252
253 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:130
254 msgid "The actual logic to implement the Interface Plugin Demo dialog."
255 msgstr ""
256
257 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:136
258 msgid "Getting resources from the plugin ZIP file"
259 msgstr "Plugina ZIP-failist ressursside hankimine"
260
261 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:138
262 msgid ""
263 "calibre's plugin loading system defines a couple of built-in functions that "
264 "allow you to conveniently get files from the plugin ZIP file."
265 msgstr "calibre pluginate laadimise süsteem määratleb paar sisseehitatud funktsiooni, mis võimaldab sul plugina ZIP-failist mugavalt faile hankida."
266
267 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:148
268 msgid "**get_resources(name_or_list_of_names)**"
269 msgstr "**get_resources(nimi_või_nimede_loend)**"
270
271 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:141
272 msgid ""
273 "This function should be called with a list of paths to files inside the ZIP "
274 "file. For example to access the file :file:`icon.png` in the folder images "
275 "in the ZIP file, you would use: ``images/icon.png``. Always use a forward "
276 "slash as the path separator, even on Windows. When you pass in a single "
277 "name, the function will return the raw bytes of that file or None if the "
278 "name was not found in the ZIP file. If you pass in more than one name then "
279 "it returns a dict mapping the names to bytes. If a name is not found, it "
280 "will not be present in the returned dict."
281 msgstr ""
282
283 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:157
284 msgid "**get_icons(name_or_list_of_names, plugin_name='')**"
285 msgstr ""
286
287 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:151
288 msgid ""
289 "A wrapper for get_resources() that creates QIcon objects from the raw bytes "
290 "returned by get_resources. If a name is not found in the ZIP file the "
291 "corresponding QIcon will be null. In order to support icon theme-ing, pass "
292 "in the human friendly name of your plugin as ``plugin_name``. If the user is"
293 " using an icon theme with icons for your plugin, they will be loaded "
294 "preferentially."
295 msgstr ""
296
297 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:160
298 msgid "Enabling user configuration of your plugin"
299 msgstr "Kasutajatel oma plugina seadistamise lubamine"
300
301 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:162
302 msgid ""
303 "To allow users to configure your plugin, you must define three methods in "
304 "your base plugin class, **is_customizable**, **config_widget** and "
305 "**save_settings** as shown below:"
306 msgstr ""
307
308 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:173
309 msgid ""
310 "calibre has many different ways to store configuration data (a legacy of its"
311 " long history). The recommended way is to use the **JSONConfig** class, "
312 "which stores your configuration information in a .json file."
313 msgstr ""
314
315 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:175
316 msgid ""
317 "The code to manage configuration data in the demo plugin is in config.py:"
318 msgstr ""
319
320 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:180
321 msgid ""
322 "The ``prefs`` object is now available throughout the plugin code by a "
323 "simple::"
324 msgstr ""
325
326 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:185
327 msgid "You can see the ``prefs`` object being used in main.py:"
328 msgstr ""
329
330 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:192
331 msgid "Edit book plugins"
332 msgstr ""
333
334 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:194
335 msgid ""
336 "Now let's change gears for a bit and look at creating a plugin to add tools "
337 "to the calibre book editor. The plugin is available here: "
338 ":download_file:`editor_demo_plugin.zip`."
339 msgstr ""
340
341 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:198
342 msgid ""
343 "The first step, as for all plugins is to create the import name empty txt "
344 "file, as described :ref:`above <import_name_txt>`. We shall name the file "
345 "``plugin-import-name-editor_plugin_demo.txt``."
346 msgstr ""
347
348 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:202
349 msgid ""
350 "Now we create the mandatory ``__init__.py`` file that contains metadata "
351 "about the plugin -- its name, author, version, etc."
352 msgstr ""
353
354 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:208
355 msgid ""
356 "A single editor plugin can provide multiple tools each tool corresponds to a"
357 " single button in the toolbar and entry in the :guilabel:`Plugins` menu in "
358 "the editor. These can have sub-menus in case the tool has multiple related "
359 "actions."
360 msgstr ""
361
362 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:212
363 msgid ""
364 "The tools must all be defined in the file ``main.py`` in your plugin. Every "
365 "tool is a class that inherits from the "
366 ":class:`calibre.gui2.tweak_book.plugin.Tool` class. Let's look at "
367 "``main.py`` from the demo plugin, the source code is heavily commented and "
368 "should be self-explanatory. Read the API documents of the "
369 ":class:`calibre.gui2.tweak_book.plugin.Tool` class for more details."
370 msgstr ""
371
372 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:222
373 msgid ""
374 "Here we will see the definition of a single tool that will multiply all font"
375 " sizes in the book by a number provided by the user. This tool demonstrates "
376 "various important concepts that you will need in developing your own "
377 "plugins, so you should read the (heavily commented) source code carefully."
378 msgstr ""
379
380 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:230
381 msgid ""
382 "Let's break down ``main.py``. We see that it defines a single tool, named "
383 "*Magnify fonts*. This tool will ask the user for a number and multiply all "
384 "font sizes in the book by that number."
385 msgstr ""
386
387 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:234
388 msgid ""
389 "The first important thing is the tool name which you must set to some "
390 "relatively unique string as it will be used as the key for this tool."
391 msgstr ""
392
393 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:237
394 msgid ""
395 "The next important entry point is the "
396 ":meth:`calibre.gui2.tweak_book.plugin.Tool.create_action`. This method "
397 "creates the QAction objects that appear in the plugins toolbar and plugin "
398 "menu. It also, optionally, assigns a keyboard shortcut that the user can "
399 "customize. The triggered signal from the QAction is connected to the "
400 "ask_user() method that asks the user for the font size multiplier, and then "
401 "runs the magnification code."
402 msgstr ""
403
404 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:245
405 msgid ""
406 "The magnification code is well commented and fairly simple. The main things "
407 "to note are that you get a reference to the editor window as ``self.gui`` "
408 "and the editor *Boss* as ``self.boss``. The *Boss* is the object that "
409 "controls the editor user interface. It has many useful methods, that are "
410 "documented in the :class:`calibre.gui2.tweak_book.boss.Boss` class."
411 msgstr ""
412
413 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:251
414 msgid ""
415 "Finally, there is ``self.current_container`` which is a reference to the "
416 "book being edited as a "
417 ":class:`calibre.ebooks.oeb.polish.container.Container` object. This "
418 "represents the book as a collection of its constituent HTML/CSS/image files "
419 "and has convenience methods for doing many useful things. The container "
420 "object and various useful utility functions that can be reused in your "
421 "plugin code are documented in :ref:`polish_api`."
422 msgstr ""
423
424 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:260
425 msgid "Running User Interface plugins in a separate process"
426 msgstr ""
427
428 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:262
429 msgid ""
430 "If you are writing a user interface plugin that needs to make use of Qt "
431 "WebEngine, it cannot be run in the main calibre process as it is not "
432 "possible to use WebEngine there. Instead you can copy the data your plugin "
433 "needs to a temporary folder and run the plugin with that data in a separate "
434 "process. A simple example plugin follows that shows how to do this."
435 msgstr ""
436
437 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:269
438 msgid ""
439 "You can download the plugin from :download_file:`webengine_demo_plugin.zip`."
440 msgstr ""
441
442 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:272
443 msgid "The important part of the plugin is in two functions:"
444 msgstr ""
445
446 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:281
447 msgid ""
448 "The ``show_demo()`` function asks the user for a URL and then runs the "
449 "``main()`` function passing it that URL. The ``main()`` function displays "
450 "the URL in a ``QWebEngineView``."
451 msgstr ""
452
453 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:287
454 msgid "Adding translations to your plugin"
455 msgstr "Oma pluginale tõlgete lisamine"
456
457 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:289
458 msgid ""
459 "You can have all the user interface strings in your plugin translated and "
460 "displayed in whatever language is set for the main calibre user interface."
461 msgstr ""
462
463 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:292
464 msgid ""
465 "The first step is to go through your plugin's source code and mark all user "
466 "visible strings as translatable, by surrounding them in _(). For example::"
467 msgstr ""
468
469 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:297
470 msgid ""
471 "Then use some program to generate .po files from your plugin source code. "
472 "There should be one .po file for every language you want to translate into. "
473 "For example: de.po for German, fr.po for French and so on. You can use the "
474 "`Poedit <https://poedit.net/>`_ program for this."
475 msgstr ""
476
477 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:302
478 msgid ""
479 "Send these .po files to your translators. Once you get them back, compile "
480 "them into .mo files. You can again use Poedit for that, or just do::"
481 msgstr ""
482
483 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:307
484 msgid "Put the .mo files into the ``translations`` folder in your plugin."
485 msgstr ""
486
487 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:309
488 msgid ""
489 "The last step is to simply call the function `load_translations()` at the "
490 "top of your plugin's .py files. For performance reasons you should only call"
491 " this function in those .py files that actually have translatable strings. "
492 "So in a typical User Interface plugin you would call it at the top of "
493 "``ui.py`` but not ``__init__.py``."
494 msgstr ""
495
496 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:315
497 msgid ""
498 "You can test the translations of your plugins by changing the user interface"
499 " language in calibre under :guilabel:`Preferences->Interface->Look & feel` "
500 "or by running calibre like this::"
501 msgstr ""
502
503 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:321
504 msgid ""
505 "Replace ``de`` with the language code of the language you want to test."
506 msgstr ""
507
508 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:324
509 msgid "The plugin API"
510 msgstr ""
511
512 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:326
513 msgid ""
514 "As you may have noticed above, a plugin in calibre is a class. There are "
515 "different classes for the different types of plugins in calibre. Details on "
516 "each class, including the base class of all plugins can be found in "
517 ":ref:`plugins`."
518 msgstr ""
519
520 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:329
521 msgid ""
522 "Your plugin is almost certainly going to use code from calibre. To learn how"
523 " to find various bits of functionality in the calibre code base, read the "
524 "section on the calibre :ref:`code_layout`."
525 msgstr ""
526
527 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:334
528 msgid "Debugging plugins"
529 msgstr ""
530
531 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:336
532 msgid ""
533 "The first, most important step is to run calibre in debug mode. You can do "
534 "this from the command line with::"
535 msgstr ""
536
537 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:340
538 msgid ""
539 "Or from within calibre by right-clicking the :guilabel:`Preferences` button "
540 "or using the :kbd:`Ctrl+Shift+R` keyboard shortcut."
541 msgstr ""
542
543 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:342
544 msgid ""
545 "When running from the command line, debug output will be printed to the "
546 "console, when running from within calibre the output will go to a txt file."
547 msgstr ""
548
549 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:344
550 msgid ""
551 "You can insert print statements anywhere in your plugin code, they will be "
552 "output in debug mode. Remember, this is Python, you really shouldn't need "
553 "anything more than print statements to debug ;) I developed all of calibre "
554 "using just this debugging technique."
555 msgstr ""
556
557 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:346
558 msgid ""
559 "You can quickly test changes to your plugin by using the following command "
560 "line::"
561 msgstr ""
562
563 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:351
564 msgid ""
565 "This will shutdown a running calibre, wait for the shutdown to complete, "
566 "then update your plugin in calibre and relaunch calibre."
567 msgstr ""
568
569 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:354
570 msgid "More plugin examples"
571 msgstr "Veel pluginate näidiseid"
572
573 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:356
574 msgid ""
575 "You can find a list of many sophisticated calibre plugins `here "
576 "<https://www.mobileread.com/forums/showthread.php?t=118764>`_."
577 msgstr ""
578
579 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:359
580 msgid "Sharing your plugins with others"
581 msgstr "Oma pluginate teistega jagamine"
582
583 #: ../../__w/calibre/calibre/manual/creating_plugins.rst:361
584 msgid ""
585 "If you would like to share the plugins you have created with other users of "
586 "calibre, post your plugin in a new thread in the `calibre plugins forum "
587 "<https://www.mobileread.com/forums/forumdisplay.php?f=237>`_."
588 msgstr ""