Debian Codegraph @

translations/manual/nl/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 # Anne Mügge <[email protected]>, 2016
7 # erkfuizfeuadjfjzefzfuzeff gbhygsregfges <[email protected]>, 2017
8 # Gideon van Melle <[email protected]>, 2025
9 # Herman L.M. van der Vaart <[email protected]>, 2020
10 # M. de Boer <[email protected]>, 2018,2020
11 # Meteor0id, 2019
12 # Meteor0id, 2019
13 # Rodolfo_Jadon, 2015
14 # peter <[email protected]>, 2022
15 # peter <[email protected]>, 2021-2022
16 # Rodolfo_Jadon, 2015
17 # W.P.M.E. Hofland <[email protected]>, 2015
18 msgid ""
19 msgstr ""
20 "Project-Id-Version: calibre\n"
21 "Report-Msgid-Bugs-To: \n"
22 "POT-Creation-Date: 2026-02-17 16:44+0000\n"
23 "PO-Revision-Date: 2014-06-17 08:35+0000\n"
24 "Last-Translator: Gideon van Melle <[email protected]>, 2025\n"
25 "Language-Team: Dutch (http://app.transifex.com/calibre/calibre/language/nl/)\n"
26 "MIME-Version: 1.0\n"
27 "Content-Type: text/plain; charset=UTF-8\n"
28 "Content-Transfer-Encoding: 8bit\n"
29 "Language: nl\n"
30 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
31
32 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:4
33 msgid "Writing your own plugins to extend calibre's functionality"
34 msgstr "Uw eigen plugins schrijven om de functionaliteit van calibre uit te breiden"
35
36 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:6
37 msgid ""
38 "calibre has a very modular design. Almost all functionality in calibre comes"
39 " in the form of plugins. Plugins are used for conversion, for downloading "
40 "news (though these are called recipes), for various components of the user "
41 "interface, to connect to different devices, to process files when adding "
42 "them to calibre and so on. You can get a complete list of all the built-in "
43 "plugins in calibre by going to :guilabel:`Preferences->Advanced->Plugins`."
44 msgstr "calibre heeft een zeer modulair ontwerp. Bijna alle functionaliteit in calibre komt als plug-ins. Plug-ins voor conversie, downloaden van nieuws (recepten genaamd), verschillende componenten van de gebruikersinterface, verbinding maken met verschillende toestellen, bestanden verwerken bij toevoegen aan calibre enz. U vidnt een volledige lijst van ingebouwde plug-ins in calibre op: guilabel: `Voorkeuren-> Geavanceerd-> Plug-ins 'te gaan."
45
46 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:8
47 msgid ""
48 "Here, we will teach you how to create your own plugins to add new features "
49 "to calibre."
50 msgstr "Hier laten we zien hoe u uw eigen plugins kunt maken om nieuwe functies toe te voegen aan calibre."
51
52 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:13
53 msgid "Contents"
54 msgstr "Inhoud"
55
56 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:15
57 msgid "This only applies to calibre releases >= 0.8.60"
58 msgstr "Dit is enkel van toepassing op calibre releases >= 0.8.60"
59
60 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:18
61 msgid "Anatomy of a calibre plugin"
62 msgstr "Opbouw van een calibre plugin"
63
64 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:20
65 msgid ""
66 "A calibre plugin is very simple, it's just a ZIP file that contains some "
67 "Python code and any other resources like image files needed by the plugin. "
68 "Without further ado, let's see a basic example."
69 msgstr "Een calibre plug-in is heel eenvoudig, gewoon een ZIP-bestand dat wat Python code bevat en andere bronnen zoals afbeelding die de plug-in nodig heeft. Genoeg, laten we een eenvoudig voorbeeld bekijken."
70
71 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:24
72 msgid ""
73 "Suppose you have an installation of calibre that you are using to self "
74 "publish various e-documents in EPUB and MOBI formats. You would like all "
75 "files generated by calibre to have their publisher set as \"Hello world\", "
76 "here's how to do it. Create a file named :file:`__init__.py` (this is a "
77 "special name and must always be used for the main file of your plugin) and "
78 "enter the following Python code into it:"
79 msgstr "Stel, u heeft calibre geïnstalleerd om diverse e-documenten zelf te publiceren in EPUB en MOBI-formaten. U wilt dat alle bestanden gegenereerd door calibre als uitgever \"Hello world\" hebben, hier volgt hoe dit te doen. Maak een bestand genaamd :file:`__init__.py` (dit is een speciale naam en moet altijd gebruikt worden voor het hoofdbestand van uw plugin) en geef de volgende Python code in:"
80
81 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:32
82 msgid ""
83 "That's all. To add this code to calibre as a plugin, simply run the "
84 "following in the folder in which you created :file:`__init__.py`::"
85 msgstr "Dat is alles. Om deze code als plug-in aan calibre toe te voegen, voer het volgende uit in de map waar u :file:`__init__.py`:: creëerde"
86
87 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:38
88 msgid ""
89 "On macOS, the command line tools are inside the calibre bundle, for example,"
90 " if you installed calibre in :file:`/Applications` the command line tools "
91 "are in :file:`/Applications/calibre.app/Contents/MacOS/`."
92 msgstr "Op macOS bevinden de commandoregelprogramma's zich in de calibre-bundel, bijvoorbeeld, als u calibre hebt geïnstalleerd in :file:`/Applications` bevinden de commandoregelprogramma's zich in :file:`/Applications/calibre.app/Contents/MacOS/`."
93
94 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:42
95 msgid ""
96 "You can download the Hello World plugin from "
97 ":download_file:`helloworld_plugin.zip`."
98 msgstr "U kan de Hello World plugin downloaden van :download_file:`helloworld_plugin.zip`."
99
100 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:45
101 msgid ""
102 "Every time you use calibre to convert a book, the plugin's :meth:`run` "
103 "method will be called and the converted book will have its publisher set to "
104 "\"Hello World\". This is a trivial plugin, let's move on to a more complex "
105 "example that actually adds a component to the user interface."
106 msgstr ""
107
108 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:50
109 msgid "A User Interface plugin"
110 msgstr "Een Gebruikersinterface plugin"
111
112 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:52
113 msgid ""
114 "This plugin will be spread over a few files (to keep the code clean). It "
115 "will show you how to get resources (images or data files) from the plugin "
116 "ZIP file, allow users to configure your plugin, how to create elements in "
117 "the calibre user interface and how to access and query the books database in"
118 " calibre."
119 msgstr "Deze plug-in zal bestaan uit een paar bestanden (om de code schoon te houden). Het toont u hoe bronnen (afbeeldingen of databestanden) op te halen uit de plug-in's ZIP , gebruikers toe te staan uw plug-in in te stellen, elementen in de gebruikersinterface voor calibre te maken en de database voor boeken te raadplegen en doorzoeken."
120
121 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:57
122 msgid ""
123 "You can download this plugin from :download_file:`interface_demo_plugin.zip`"
124 msgstr "U kan deze plugin downloaden van :download_file:`interface_demo_plugin.zip`"
125
126 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:61
127 msgid ""
128 "The first thing to note is that this ZIP file has a lot more files in it, "
129 "explained below, pay particular attention to ``plugin-import-name-"
130 "interface_demo.txt``."
131 msgstr "Het eerste ding om op te merken is dat dit ZIP bestand veel meer bestanden bevat, onder uitgelegd, let extra op ``plugin-import-name-interface_demo.txt``."
132
133 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:64
134 msgid "**plugin-import-name-interface_demo.txt**"
135 msgstr "**plugin-import-name-interface_demo.txt**"
136
137 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:65
138 msgid ""
139 "An empty text file used to enable the multi-file plugin magic. This file "
140 "must be present in all plugins that use more than one .py file. It should be"
141 " empty and its filename must be of the form: ``plugin-import-"
142 "name-**some_name**.txt``. The presence of this file allows you to import "
143 "code from the .py files present inside the ZIP file, using a statement "
144 "like::"
145 msgstr "Een leeg tekstbestand om de multi-file plugin magie in te schakelen. Dit bestand moet aanwezig zijn in alle plug-ins die meer dan één .py bestand gebruiken. Het moet leeg zijn en de bestandsnaam moet volgende vorm hebben: `` plugin-import-name-**een_naam **.txt``. Met dit bestand kunt u code importeren uit de .py bestanden in het ZIP-bestand , met behulp van een statement als::"
146
147 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:71
148 msgid ""
149 "The prefix ``calibre_plugins`` must always be present. ``some_name`` comes "
150 "from the filename of the empty text file. ``some_module`` refers to "
151 ":file:`some_module.py` file inside the ZIP file. Note that this importing is"
152 " just as powerful as regular Python imports. You can create packages and "
153 "subpackages of .py modules inside the ZIP file, just like you would normally"
154 " (by defining __init__.py in each sub-folder), and everything should \"just "
155 "work\"."
156 msgstr ""
157
158 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:76
159 msgid ""
160 "The name you use for ``some_name`` enters a global namespace shared by all "
161 "plugins, **so make it as unique as possible**. But remember that it must be "
162 "a valid Python identifier (only alphabets, numbers and the underscore)."
163 msgstr "De naam die u gebruikt voor ``some_name`` gaat in een algemene naamruimte, gedeeld door alle plug-ins, **dus maak deze zo uniek mogelijk**. Maar vergeet niet dat het een geldig Python-id moet zijn (alleen alfabetten, cijfers en het onderliggend streepje)."
164
165 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:79
166 msgid "**__init__.py**"
167 msgstr "**__init__.py**"
168
169 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:80
170 msgid "As before, the file that defines the plugin class"
171 msgstr "Zoals hiervoor, het bestand dat de plugin's klasse definieert"
172
173 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:82
174 msgid "**main.py**"
175 msgstr "**main.py**"
176
177 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:83
178 msgid "This file contains the actual code that does something useful"
179 msgstr "Dit bestand bevat de daadwerkelijke code die iets nuttigs doet"
180
181 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:85
182 msgid "**ui.py**"
183 msgstr "**ui.py**"
184
185 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:86
186 msgid "This file defines the interface part of the plugin"
187 msgstr "Dit bestand definieert de interface van de plugin"
188
189 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:88
190 msgid "**images/icon.png**"
191 msgstr "**images/icon.png**"
192
193 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:89
194 msgid "The icon for this plugin"
195 msgstr "Het icoon voor deze plugin"
196
197 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:91
198 msgid "**about.txt**"
199 msgstr "**about.txt**"
200
201 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:92
202 msgid "A text file with information about the plugin"
203 msgstr "Een tekstbestand met informatie over de plugin"
204
205 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:94
206 msgid "**translations**"
207 msgstr "**vertalingen**"
208
209 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:95
210 msgid ""
211 "A folder containing .mo files with the translations of the user interface of"
212 " your plugin into different languages. See below for details."
213 msgstr "Een map die .mo-bestanden bevat met vertalingen van de gebruikersinterface van uw plug-in in verschillende talen. Zie onder voor details."
214
215 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:99
216 msgid "Now let's look at the code."
217 msgstr "Laten we naar de code kijken."
218
219 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:102
220 msgid "__init__.py"
221 msgstr "__init__.py"
222
223 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:104
224 msgid "First, the obligatory ``__init__.py`` to define the plugin metadata:"
225 msgstr "Eerst de verplichte ``__init__.py`` om de plug-in's metadata te definiëren:"
226
227 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:109
228 msgid ""
229 "The only noteworthy feature is the field :attr:`actual_plugin`. Since "
230 "calibre has both command line and GUI interfaces, GUI plugins like this one "
231 "should not load any GUI libraries in __init__.py. The actual_plugin field "
232 "does this for you, by telling calibre that the actual plugin is to be found "
233 "in another file inside your ZIP archive, which will only be loaded in a GUI "
234 "context."
235 msgstr "De enige noemenswaardige eigenschap is het veld: attr:`actual_plugin`. Omdat calibre zowel opdrachtregel als GUI interfaces heeft, mogen GUI plug-ins zoals deze geen enkele GUI-bibliotheek laden in __init__.py . Het veld actual_plugin doet dit voor u, door calibre te zeggen dat de daadwerkelijke plugin in een ander bestand in uw ZIP archief te vinden is, dat alleen in een GUI context wordt geladen."
236
237 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:114
238 msgid ""
239 "Remember that for this to work, you must have a plugin-import-name-"
240 "some_name.txt file in your plugin ZIP file, as discussed above."
241 msgstr "Vergeet niet dat om dit te laten werken, u een plugin-import-name-een_naam.txt bestand nodig hebt in uw ZIP plug-in, zoals boven besproken."
242
243 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:117
244 msgid ""
245 "Also there are a couple of methods for enabling user configuration of the "
246 "plugin. These are discussed below."
247 msgstr "Er zijn meerdere methoden om gebruikersconfiguratie van de plug-in mogelijk te maken. Deze worden onder besproken."
248
249 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:120
250 msgid "ui.py"
251 msgstr "ui.py"
252
253 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:122
254 msgid ""
255 "Now let's look at ui.py which defines the actual GUI plugin. The source code"
256 " is heavily commented and should be self explanatory:"
257 msgstr "Laten we nu ui.py bekijken dat de eigenlijke GUI plug-in definieert. De broncode is voorzien van commentaar en zou zichzelf moeten verklaren:"
258
259 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:128
260 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:220
261 msgid "main.py"
262 msgstr "main.py"
263
264 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:130
265 msgid "The actual logic to implement the Interface Plugin Demo dialog."
266 msgstr "De eigenlijke logica om de Interface Plugin Demo dialoog te implementeren."
267
268 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:136
269 msgid "Getting resources from the plugin ZIP file"
270 msgstr "Ophalen bronnen uit het plug-in ZIP bestand"
271
272 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:138
273 msgid ""
274 "calibre's plugin loading system defines a couple of built-in functions that "
275 "allow you to conveniently get files from the plugin ZIP file."
276 msgstr "calibres plug-in laadsysteem definieert een aantal ingebouwde functies waarmee u gemakkelijk bestanden kunt ophalen uit het plug-in ZIP bestand."
277
278 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:140
279 msgid "**get_resources(name_or_list_of_names)**"
280 msgstr "**get_resources(name_or_list_of_names)**"
281
282 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:141
283 msgid ""
284 "This function should be called with a list of paths to files inside the ZIP "
285 "file. For example to access the file :file:`icon.png` in the folder images "
286 "in the ZIP file, you would use: ``images/icon.png``. Always use a forward "
287 "slash as the path separator, even on Windows. When you pass in a single "
288 "name, the function will return the raw bytes of that file or None if the "
289 "name was not found in the ZIP file. If you pass in more than one name then "
290 "it returns a dictionary mapping the names to bytes. If a name is not found,"
291 " it will not be present in the returned dictionary."
292 msgstr "Deze functie moet worden aangeroepen met een lijst met paden naar bestanden in het ZIP-bestand. Om bijvoorbeeld toegang te krijgen tot het bestand :file:`icon.png` in de afbeeldingen map in het ZIP-bestand gebruikt u: ``images/icon.png``. Gebruik altijd een schuine streep als padscheidingsteken, zelfs in Windows. Wanneer u één naam invoert, retourneert de functie de ruwe bytes van dat bestand of Geen als de naam niet in het ZIP-bestand is gevonden. Als u meer dan één naam doorgeeft, wordt een woordenlijst geretourneerd die de namen aan bytes toewijst. Als een naam niet wordt gevonden, zal deze niet aanwezig zijn in de geretourneerde woordenlijst."
293
294 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:150
295 msgid "**get_icons(name_or_list_of_names, plugin_name='')**"
296 msgstr "**get_icons(name_or_list_of_names, plugin_name='')**"
297
298 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:151
299 msgid ""
300 "A wrapper for get_resources() that creates QIcon objects from the raw bytes "
301 "returned by get_resources. If a name is not found in the ZIP file the "
302 "corresponding QIcon will be null. In order to support icon theme-ing, pass "
303 "in the human friendly name of your plugin as ``plugin_name``. If the user is"
304 " using an icon theme with icons for your plugin, they will be loaded "
305 "preferentially."
306 msgstr "Een wrapper voor get_resources() die QIcon objecten creëert van de rauwe bytes vanuit get_resources. Werd een naam niet gevonden in het ZIP bestand, zal de overeenkomende QIcon null zijn. Om icoon theme-ing te ondersteunen, geef de mensvriendelijke naam van uw plug-in in als ``plugin_name``. Als de gebruiker een icoonthema gebruikt met iconen voor uw plug-in, worden deze bij voorkeur geladen ."
307
308 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:160
309 msgid "Enabling user configuration of your plugin"
310 msgstr "Gebruikers-configuratie van uw plugin inschakelen"
311
312 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:162
313 msgid ""
314 "To allow users to configure your plugin, you must define three methods in "
315 "your base plugin class, **is_customizable**, **config_widget** and "
316 "**save_settings** as shown below:"
317 msgstr "Om gebruikers uw plug-in te laten configureren, moet u drie methoden in uw basis plug-inklasse definiëren, ** is_customizable **, ** config_widget ** en ** save_settings ** zoals onder weergegeven:"
318
319 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:173
320 msgid ""
321 "calibre has many different ways to store configuration data (a legacy of its"
322 " long history). The recommended way is to use the **JSONConfig** class, "
323 "which stores your configuration information in a .json file."
324 msgstr "calibre heeft vele manieren om configuratiegegevens te bewaren (een erfenis van lange geschiedenis). De aanbevolen manier is het gebruik van de **JSONConfig** klasse, die de informatie bewaart in een .json bestand."
325
326 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:175
327 msgid ""
328 "The code to manage configuration data in the demo plugin is in config.py:"
329 msgstr "De code om configuratiegegevens te beheren in de demoplug-in is in config.py:"
330
331 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:180
332 msgid ""
333 "The ``prefs`` object is now available throughout the plugin code by a "
334 "simple::"
335 msgstr "Het ``prefs`` object is nu beschikbaar in de plug-incode met een simpele::"
336
337 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:185
338 msgid "You can see the ``prefs`` object being used in main.py:"
339 msgstr "U kunt het gebruik van ``prefs``-object zien in main.py:"
340
341 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:192
342 msgid "Edit book plugins"
343 msgstr "Boek plug-ins bewerken"
344
345 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:194
346 msgid ""
347 "Now let's change gears for a bit and look at creating a plugin to add tools "
348 "to the calibre book editor. The plugin is available here: "
349 ":download_file:`editor_demo_plugin.zip`."
350 msgstr "Laten we wat hoger schakelen en een plug-in creëren om tools toe te voegen aan de calibre boekeditor. De plug-in is hier beschikbaar: :download_file:`editor_demo_plugin.zip`."
351
352 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:198
353 msgid ""
354 "The first step, as for all plugins is to create the import name empty txt "
355 "file, as described :ref:`above <import_name_txt>`. We shall name the file "
356 "``plugin-import-name-editor_plugin_demo.txt``."
357 msgstr "De eerste stap, zoals voor alle plug-ins, is het maken van het lege import name .txt bestand zoals :ref:`above <import_name_txt>` beschreven. We noemen het bestand ``plugin-import-name-editor_plugin_demo.txt``."
358
359 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:202
360 msgid ""
361 "Now we create the mandatory ``__init__.py`` file that contains metadata "
362 "about the plugin -- its name, author, version, etc."
363 msgstr "Nu maken we het verplichte bestand ``__init__.py`` waarin de metadata over de plug-in staan -- zijn naam, maker, versie enz."
364
365 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:208
366 msgid ""
367 "A single editor plugin can provide multiple tools each tool corresponds to a"
368 " single button in the toolbar and entry in the :guilabel:`Plugins` menu in "
369 "the editor. These can have sub-menus in case the tool has multiple related "
370 "actions."
371 msgstr "Een enkel editorplug-in kan meerdere tools leveren, iedere tool correspondeert met een knop in de werkbalk en trefwoord in het :guilabel:`Plug-ins` menu in de editor. Deze kunnen sub-menu's hebben indien de tool meerdere acties heeft."
372
373 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:212
374 msgid ""
375 "The tools must all be defined in the file ``main.py`` in your plugin. Every "
376 "tool is a class that inherits from the "
377 ":class:`calibre.gui2.tweak_book.plugin.Tool` class. Let's look at "
378 "``main.py`` from the demo plugin, the source code is heavily commented and "
379 "should be self-explanatory. Read the API documents of the "
380 ":class:`calibre.gui2.tweak_book.plugin.Tool` class for more details."
381 msgstr "De tools moeten allemaal gedefinieerd zijn in het bestand ``main.py`` in uw plugin. Iedere tool is een class, die erft van de :class:`calibre.gui2.tweak_book.plugin.Tool` class. Laten we een kijkje nemen in ``main.py`` van de demoplug-in, de broncode is voorzien van commentaar en zou zichzelf moeten verklaren. Lees de API-documenten van de :class:`calibre.gui2.tweak_book.plugin.Tool` class voor meer details."
382
383 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:222
384 msgid ""
385 "Here we will see the definition of a single tool that will multiply all font"
386 " sizes in the book by a number provided by the user. This tool demonstrates "
387 "various important concepts that you will need in developing your own "
388 "plugins, so you should read the (heavily commented) source code carefully."
389 msgstr "Hier zien we de definitie van een enkele tool dat alle lettergroottes in het boek vermenigvuldigt met een getal ingesteld door de gebruiker. Deze tool demonstreert meerdere belangrijke concepten die u nodig heeft om uw eigen plug-in te ontwikkelen. Lees daarom de (goed van commentaar voorziene) broncode grondig."
390
391 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:230
392 msgid ""
393 "Let's break down ``main.py``. We see that it defines a single tool, named "
394 "*Magnify fonts*. This tool will ask the user for a number and multiply all "
395 "font sizes in the book by that number."
396 msgstr "Laten we ``main.py`` bekijken. We zien dat een enkele tool wordt gedefinieerd, *Magnify fonts*. Hij vraagt de gebruiker een getal en vermenigvuldigt alle lettergroottes in het boek met dit getal."
397
398 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:234
399 msgid ""
400 "The first important thing is the tool name which you must set to some "
401 "relatively unique string as it will be used as the key for this tool."
402 msgstr "Het eerste belangrijke ding is de naam van de tool die een redelijk unieke tekenreeks moet zijn, deze wordt gebruikt als sleutel voor dit gereedschap."
403
404 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:237
405 msgid ""
406 "The next important entry point is the "
407 ":meth:`calibre.gui2.tweak_book.plugin.Tool.create_action`. This method "
408 "creates the QAction objects that appear in the plugins toolbar and plugin "
409 "menu. It also, optionally, assigns a keyboard shortcut that the user can "
410 "customize. The triggered signal from the QAction is connected to the "
411 "ask_user() method that asks the user for the font size multiplier, and then "
412 "runs the magnification code."
413 msgstr "Het volgende belangrijke punt is :meth:`calibre.gui2.tweak_book.plugin.Tool.create_action`. Deze methode maakt de QAction objecten die op de plug-inwerkbalk en het plug-inmenu verschijnen. Optioneel wordt ook een sneltoets toegewezen die de gebruiker kan aanpassen. Het getriggerde signaal van de QAction is verbonden met de ask_user() methode die de gebruiker vraagt naar de lettergrootte vergrotingsfactor en vervolgens de vergrotingscode uitvoert."
414
415 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:245
416 msgid ""
417 "The magnification code is well commented and fairly simple. The main things "
418 "to note are that you get a reference to the editor window as ``self.gui`` "
419 "and the editor *Boss* as ``self.boss``. The *Boss* is the object that "
420 "controls the editor user interface. It has many useful methods, that are "
421 "documented in the :class:`calibre.gui2.tweak_book.boss.Boss` class."
422 msgstr "De vergrotingscode is goed becommentarieerd en vrij eenvoudig. De belangrijkste dingen om op te merken zijn dat u een verwijzing naar het editorvenster krijgt als ``self.gui`` en de editor *Boss* als ``self.boss``. De *Boss* is het object dat de gebruikersinterface van de editor bestuurt. Het heeft veel nuttige methoden, die zijn gedocumenteerd in de klasse :class:`calibre.gui2.tweak_book.boss.Boss`."
423
424 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:251
425 msgid ""
426 "Finally, there is ``self.current_container`` which is a reference to the "
427 "book being edited as a "
428 ":class:`calibre.ebooks.oeb.polish.container.Container` object. This "
429 "represents the book as a collection of its constituent HTML/CSS/image files "
430 "and has convenience methods for doing many useful things. The container "
431 "object and various useful utility functions that can be reused in your "
432 "plugin code are documented in :ref:`polish_api`."
433 msgstr "Tenslotte is er ``self.current_container'', een verwijzing naar het boek dat wordt bewerkt als :class:`calibre.ebooks.oeb.polish.container.Container` object. Dit stelt het boek voor als een verzameling van z'n samenstellende HTML/CSS/afbeeldingsbestanden en heeft handige methoden om veel nuttige dingen te doen. Het containerobject en verschillende handige hulpprogramma's die kunnen worden herbruikt in uw plug-incode zijn gedocumenteerd in :ref: `polish_api`."
434
435 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:259
436 msgid "Adding translations to your plugin"
437 msgstr "Vertalingen toevoegen aan uw plugin"
438
439 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:261
440 msgid ""
441 "You can have all the user interface strings in your plugin translated and "
442 "displayed in whatever language is set for the main calibre user interface."
443 msgstr "U kunt de teksten in het gebruikersinterface in uw plugin laten vertalen in elke taal die is ingesteld voor de calibre gebruikersinterface."
444
445 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:264
446 msgid ""
447 "The first step is to go through your plugin's source code and mark all user "
448 "visible strings as translatable, by surrounding them in _(). For example::"
449 msgstr "De eerste stap is door uw plug-in's broncodes te gaan en alle voor gebruikers zichtbare teksten te markeren als vertaalbaar door ze te omgeven met _(). Bijvoorbeeld::"
450
451 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:269
452 msgid ""
453 "Then use some program to generate .po files from your plugin source code. "
454 "There should be one .po file for every language you want to translate into. "
455 "For example: de.po for German, fr.po for French and so on. You can use the "
456 "`Poedit <https://poedit.net/>`_ program for this."
457 msgstr "Gebruik dan een programma om .po bestanden te genereren uit uw plug-in's broncode . Er moet één .po-bestand zijn voor elke taal waarin u wilt vertalen. Bijvoorbeeld: nl.po voor Nederlands, fr.po voor Frans enzovoort. U kunt hiervoor het `Poedit <https://poedit.net/>`_program gebruiken."
458
459 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:274
460 msgid ""
461 "Send these .po files to your translators. Once you get them back, compile "
462 "them into .mo files. You can again use Poedit for that, or just do::"
463 msgstr "Stuur deze .po-bestanden naar uw vertalers. Zodra u ze terug krijgt, compileer ze in .mo-bestanden. U kunt opnieuw Poedit daarvoor gebruiken, of doe gewoon:"
464
465 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:279
466 msgid "Put the .mo files into the ``translations`` folder in your plugin."
467 msgstr "Plaats de .mo-bestanden in de ``vertalingen``-map in uw plug-in."
468
469 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:281
470 msgid ""
471 "The last step is to simply call the function `load_translations()` at the "
472 "top of your plugin's .py files. For performance reasons you should only call"
473 " this function in those .py files that actually have translatable strings. "
474 "So in a typical User Interface plugin you would call it at the top of "
475 "``ui.py`` but not ``__init__.py``."
476 msgstr "De laatste stap is om gewoon de functie `load_translations()` te roepen bovenaan uw plugin's .py bestanden. Voor prestatie redenen deze functie alleen aanroepen in die .py-bestanden die echt vertaalbare teksten bevatten. Dus in een normale Gebruikersinterfaceplug-in roept u deze functie aan bovenin ``ui.py`` maar niet in ``__init__.py``."
477
478 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:287
479 msgid ""
480 "You can test the translations of your plugins by changing the user interface"
481 " language in calibre under :guilabel:`Preferences->Interface->Look & feel` "
482 "or by running calibre with the ``CALIBRE_OVERRIDE_LANG`` environment "
483 "variable set. For example::"
484 msgstr "U kunt de vertalingen van uw plug-ins testen door de taal van de gebruikersinterface in calibre te wijzigen onder :guilabel:`Voorkeuren->Interface->Uitstraling & gevoel` of door calibre uit te voeren met de ``CALIBRE_OVERRIDE_LANG`` omgevingsvariabele ingesteld. Voorbeeld::"
485
486 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:293
487 msgid ""
488 "Replace ``de`` with the language code of the language you want to test."
489 msgstr "Vervang ``de`` met de taalcode van de taal die u wilt testen."
490
491 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:295
492 msgid ""
493 "For translations with plurals, use the ``ngettext()`` function instead of "
494 "``_()``. For example::"
495 msgstr "Voor vertalingen met meervouden gebruikt u de ``ngettext()`` functie in plaats van ``_()``. Bijvoorbeeld::"
496
497 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:301
498 msgid "The plugin API"
499 msgstr "De plug-in API"
500
501 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:303
502 msgid ""
503 "As you may have noticed above, a plugin in calibre is a class. There are "
504 "different classes for the different types of plugins in calibre. Details on "
505 "each class, including the base class of all plugins can be found in "
506 ":ref:`plugins`."
507 msgstr "Zoals u misschien heeft opgemerkt is een plug-in in calibre een class. Er zijn verschillende classes voor verschillende types plug-ins. Details van iedere class, inclusief de basis class van alle plugins zijn te vinden in :ref:`plugins`."
508
509 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:306
510 msgid ""
511 "Your plugin is almost certainly going to use code from calibre. To learn how"
512 " to find various bits of functionality in the calibre code base, read the "
513 "section on the calibre :ref:`code_layout`."
514 msgstr "Uw plugin zal bijna zeker code gebruiken van calibre. Om te leren hoe u diverse stukjes functionaliteit vindt in de calibre code basis, lees de sectie over calibre's :ref:`code_layout`."
515
516 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:311
517 msgid "Debugging plugins"
518 msgstr "Plug-ins foutopsporing"
519
520 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:313
521 msgid ""
522 "The first, most important step is to run calibre in debug mode. You can do "
523 "this from the command line with::"
524 msgstr "De eerste, belangrijkste stap is calibre draaien in foutenopsporingsmodus. U kunt dit doen in de opdrachtregel met::"
525
526 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:317
527 msgid ""
528 "Or from within calibre by right-clicking the :guilabel:`Preferences` button "
529 "or using the :kbd:`Ctrl+Shift+R` keyboard shortcut."
530 msgstr "Of vanuit calibre door met de rechts te klikken op de :guilabel:`Preferences` knop of gebruik te maken van de :kbd:`Ctrl+Shift+R` sneltoets ."
531
532 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:319
533 msgid ""
534 "When running from the command line, debug output will be printed to the "
535 "console, when running from within calibre the output will go to a txt file."
536 msgstr "Wanneer u werkt met de opdrachtregel verschijnt de foutoplossing op de console, wanneer u werkt in calibre zal dit naar een .txt-bestand worden geschreven."
537
538 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:321
539 msgid ""
540 "You can insert print statements anywhere in your plugin code, they will be "
541 "output in debug mode. Remember, this is Python, you really shouldn't need "
542 "anything more than print statements to debug ;) I developed all of calibre "
543 "using just this debugging technique."
544 msgstr "U kunt overal printinstructies invoegen in uw plug-incode, deze worden uitgevoerd in de foutopsporingsmodus. Vergeet niet, dit is Python, uzou echt niets meer nodig moeten hebben dan print commando's om te debuggen ;) Ik heb heel calibre ontwikkeld met alleen deze foutopsporingstechniek."
545
546 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:323
547 msgid ""
548 "You can quickly test changes to your plugin by using the following command "
549 "line::"
550 msgstr "U kunt snel wijzigingen aan uw plugin testen met behulp van de volgende opdrachtregel::"
551
552 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:328
553 msgid ""
554 "This will shutdown a running calibre, wait for the shutdown to complete, "
555 "then update your plugin in calibre and relaunch calibre."
556 msgstr "Dit sluit een lopende calibre af, wacht totdat het programma geheel afgesloten is, dan uw plugin updaten in calibre en calibre herstarten."
557
558 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:331
559 msgid "More plugin examples"
560 msgstr "Meer voorbeelden van plugins"
561
562 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:333
563 msgid ""
564 "You can find a list of many sophisticated calibre plugins `here "
565 "<https://www.mobileread.com/forums/showthread.php?t=118764>`_."
566 msgstr "U kan een lijst met gesofisticeerde calibre plug-ins vinden `hier <https://www.mobileread.com/forums/showthread.php?t=118764>`_."
567
568 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:336
569 msgid "Sharing your plugins with others"
570 msgstr "Uw plugins delen met anderen"
571
572 #: ../../../__w/calibre/calibre/manual/creating_plugins.rst:338
573 msgid ""
574 "If you would like to share the plugins you have created with other users of "
575 "calibre, post your plugin in a new thread in the `calibre plugins forum "
576 "<https://www.mobileread.com/forums/forumdisplay.php?f=237>`_."
577 msgstr "Als u de plugins die u gemaakt hebt wilt delen met andere gebruikers van calibre, post ze onder een nieuw onderwerp in `calibre plugins forum <https://www.mobileread.com/forums/forumdisplay.php?f=237>`_."