| 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 |
# tarakbumba <[email protected]>, 2015 |
| 7 |
# Bora Atıcı, 2023 |
| 8 |
# Çağla Turhan, 2016 |
| 9 |
msgid "" |
| 10 |
msgstr "" |
| 11 |
"Project-Id-Version: calibre\n" |
| 12 |
"Report-Msgid-Bugs-To: \n" |
| 13 |
"POT-Creation-Date: 2026-02-17 16:44+0000\n" |
| 14 |
"PO-Revision-Date: 2014-06-17 08:35+0000\n" |
| 15 |
"Last-Translator: Bora Atıcı, 2023\n" |
| 16 |
"Language-Team: Turkish (http://app.transifex.com/calibre/calibre/language/tr/)\n" |
| 17 |
"MIME-Version: 1.0\n" |
| 18 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 19 |
"Content-Transfer-Encoding: 8bit\n" |
| 20 |
"Language: tr\n" |
| 21 |
"Plural-Forms: nplurals=2; plural=(n > 1);\n" |
| 22 |
|
| 23 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:4 |
| 24 |
msgid "Writing your own plugins to extend calibre's functionality" |
| 25 |
msgstr "Calibre'nin işlevselliğini artırmak için kendi eklentilerinizi yazmak" |
| 26 |
|
| 27 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:6 |
| 28 |
msgid "" |
| 29 |
"calibre has a very modular design. Almost all functionality in calibre comes" |
| 30 |
" in the form of plugins. Plugins are used for conversion, for downloading " |
| 31 |
"news (though these are called recipes), for various components of the user " |
| 32 |
"interface, to connect to different devices, to process files when adding " |
| 33 |
"them to calibre and so on. You can get a complete list of all the built-in " |
| 34 |
"plugins in calibre by going to :guilabel:`Preferences->Advanced->Plugins`." |
| 35 |
msgstr "calibre oldukça modüler bir tasarıma sahiptir. Calibre'deki hemen hemen tüm işlevler eklentiler biçiminde gelir. Eklentiler dönüşüm için, haber indirmek için (bunlara tarif denir), kullanıcı arayüzünün çeşitli bileşenleri için, farklı cihazlara bağlanmak için, dosyaları calibre'ye eklerken işlemek için kullanılır. :guilabel:`Tercihler->Gelişmiş->Eklentiler`'e giderek calibre'deki tüm yerleşik eklentilerin tam listesini alabilirsiniz." |
| 36 |
|
| 37 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:8 |
| 38 |
msgid "" |
| 39 |
"Here, we will teach you how to create your own plugins to add new features " |
| 40 |
"to calibre." |
| 41 |
msgstr "Burda, calibre'ye yeni işlevler kazandırmak için kendi eklentilerinizi nasıl oluşturacağınızı öğreteceğiz." |
| 42 |
|
| 43 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:13 |
| 44 |
msgid "Contents" |
| 45 |
msgstr "İçindekiler" |
| 46 |
|
| 47 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:15 |
| 48 |
msgid "This only applies to calibre releases >= 0.8.60" |
| 49 |
msgstr "Bu yalnızca >= 0.8.60 calibre sürümleri ile mümkündür" |
| 50 |
|
| 51 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:18 |
| 52 |
msgid "Anatomy of a calibre plugin" |
| 53 |
msgstr "Bir calibre eklentisinin anatomisi" |
| 54 |
|
| 55 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:20 |
| 56 |
msgid "" |
| 57 |
"A calibre plugin is very simple, it's just a ZIP file that contains some " |
| 58 |
"Python code and any other resources like image files needed by the plugin. " |
| 59 |
"Without further ado, let's see a basic example." |
| 60 |
msgstr "Calibre eklentisi çok basittir, sadece bazı Python kodlarını ve eklentinin ihtiyaç duyduğu görüntü dosyaları gibi diğer kaynakları içeren bir ZIP dosyasıdır. Lafı fazla uzatmadan basit bir örneğe bakalım." |
| 61 |
|
| 62 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:24 |
| 63 |
msgid "" |
| 64 |
"Suppose you have an installation of calibre that you are using to self " |
| 65 |
"publish various e-documents in EPUB and MOBI formats. You would like all " |
| 66 |
"files generated by calibre to have their publisher set as \"Hello world\", " |
| 67 |
"here's how to do it. Create a file named :file:`__init__.py` (this is a " |
| 68 |
"special name and must always be used for the main file of your plugin) and " |
| 69 |
"enter the following Python code into it:" |
| 70 |
msgstr "Çeşitli e-belgeleri EPUB ve MOBI biçimlerinde dağıtmak için kullandığınız bir calibre kurulumunuz olduğunu varsayın. Calibre tarafından üretilen tüm dosyaların yayıncısının \"Merhaba dünya\" olmasını istersiniz, bunu şu şekilde yapabilirsiniz. :file:`__init__.py` isimli bir dosya oluşturun (bu özel bir isimdir ve eklentinizin ana dosyası için her zaman kullanılmak zorundadır) ve aşağıdaki Python kodunu girin:" |
| 71 |
|
| 72 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:32 |
| 73 |
msgid "" |
| 74 |
"That's all. To add this code to calibre as a plugin, simply run the " |
| 75 |
"following in the folder in which you created :file:`__init__.py`::" |
| 76 |
msgstr "Bu kadar. Bu kodu calibre'ye eklenti olarak eklemek için, oluşturduğunuz klasörde aşağıdakini çalıştırmanız yeterlidir :file:`__init__.py`::" |
| 77 |
|
| 78 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:38 |
| 79 |
msgid "" |
| 80 |
"On macOS, the command line tools are inside the calibre bundle, for example," |
| 81 |
" if you installed calibre in :file:`/Applications` the command line tools " |
| 82 |
"are in :file:`/Applications/calibre.app/Contents/MacOS/`." |
| 83 |
msgstr "MacOS'ta komut satırı araçları calibre paketinin içindedir; örneğin, calibre'yi :file:`/Applications` dizinine yüklediyseniz komut satırı araçları :file:`/Applications/calibre.app/Contents/MacOS/` konumundadır ." |
| 84 |
|
| 85 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:42 |
| 86 |
msgid "" |
| 87 |
"You can download the Hello World plugin from " |
| 88 |
":download_file:`helloworld_plugin.zip`." |
| 89 |
msgstr "Merhaba Dünya eklentisini :download_file:`helloworld_plugin.zip` adresinden indirebilirsiniz." |
| 90 |
|
| 91 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:45 |
| 92 |
msgid "" |
| 93 |
"Every time you use calibre to convert a book, the plugin's :meth:`run` " |
| 94 |
"method will be called and the converted book will have its publisher set to " |
| 95 |
"\"Hello World\". This is a trivial plugin, let's move on to a more complex " |
| 96 |
"example that actually adds a component to the user interface." |
| 97 |
msgstr "" |
| 98 |
|
| 99 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:50 |
| 100 |
msgid "A User Interface plugin" |
| 101 |
msgstr "Kullanıcı Arayüzü eklentisi" |
| 102 |
|
| 103 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:52 |
| 104 |
msgid "" |
| 105 |
"This plugin will be spread over a few files (to keep the code clean). It " |
| 106 |
"will show you how to get resources (images or data files) from the plugin " |
| 107 |
"ZIP file, allow users to configure your plugin, how to create elements in " |
| 108 |
"the calibre user interface and how to access and query the books database in" |
| 109 |
" calibre." |
| 110 |
msgstr "Bu eklenti birkaç dosyaya yayılacaktır (kodu temiz tutmak için). Eklenti ZIP dosyasından kaynakları (görüntüler veya veri dosyaları) nasıl alacağınızı, kullanıcıların eklentinizi yapılandırmasına olanak tanıyacağını, calibre kullanıcı arayüzünde nasıl öğeler oluşturacağınızı ve calibre'de kitap veritabanına nasıl erişip sorgulayacağınızı size gösterecektir." |
| 111 |
|
| 112 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:57 |
| 113 |
msgid "" |
| 114 |
"You can download this plugin from :download_file:`interface_demo_plugin.zip`" |
| 115 |
msgstr "Bu eklentiyi :download_file:`interface_demo_plugin.zip` adresinden indirebilirsiniz." |
| 116 |
|
| 117 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:61 |
| 118 |
msgid "" |
| 119 |
"The first thing to note is that this ZIP file has a lot more files in it, " |
| 120 |
"explained below, pay particular attention to ``plugin-import-name-" |
| 121 |
"interface_demo.txt``." |
| 122 |
msgstr "Unutulmaması gereken ilk şey, bu ZIP dosyasının içinde çok daha fazla dosya bulunmasıdır, aşağıda açıklandığı gibi, ``eklenti-içe aktarma-adı-arabirimi_demo.txt``ye özellikle dikkat edin." |
| 123 |
|
| 124 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:64 |
| 125 |
msgid "**plugin-import-name-interface_demo.txt**" |
| 126 |
msgstr "**plugin-import-name-interface_demo.txt**" |
| 127 |
|
| 128 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:65 |
| 129 |
msgid "" |
| 130 |
"An empty text file used to enable the multi-file plugin magic. This file " |
| 131 |
"must be present in all plugins that use more than one .py file. It should be" |
| 132 |
" empty and its filename must be of the form: ``plugin-import-" |
| 133 |
"name-**some_name**.txt``. The presence of this file allows you to import " |
| 134 |
"code from the .py files present inside the ZIP file, using a statement " |
| 135 |
"like::" |
| 136 |
msgstr "Çoklu dosya eklentisi büyüsünü etkinleştirmek için kullanılan boş bir metin dosyası. Bu dosya, birden fazla .py dosyası kullanan tüm eklentilerde bulunmalıdır. Boş olmalı ve dosya adı şu biçimde olmalıdır: ``eklenti-içe aktarma-adı-**bir_adı**.txt``. Bu dosyanın varlığı, aşağıdaki gibi bir ifade kullanarak ZIP dosyasında bulunan .py dosyalarından kod içe aktarmanıza olanak tanır::" |
| 137 |
|
| 138 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:71 |
| 139 |
msgid "" |
| 140 |
"The prefix ``calibre_plugins`` must always be present. ``some_name`` comes " |
| 141 |
"from the filename of the empty text file. ``some_module`` refers to " |
| 142 |
":file:`some_module.py` file inside the ZIP file. Note that this importing is" |
| 143 |
" just as powerful as regular Python imports. You can create packages and " |
| 144 |
"subpackages of .py modules inside the ZIP file, just like you would normally" |
| 145 |
" (by defining __init__.py in each sub-folder), and everything should \"just " |
| 146 |
"work\"." |
| 147 |
msgstr "" |
| 148 |
|
| 149 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:76 |
| 150 |
msgid "" |
| 151 |
"The name you use for ``some_name`` enters a global namespace shared by all " |
| 152 |
"plugins, **so make it as unique as possible**. But remember that it must be " |
| 153 |
"a valid Python identifier (only alphabets, numbers and the underscore)." |
| 154 |
msgstr "``bir_ad`` için kullandığınız ad, tüm eklentiler tarafından paylaşılan genel bir ad alanına girer, **bu yüzden onu mümkün olduğunca benzersiz yapın**. Ancak bunun geçerli bir Python tanımlayıcısı olması gerektiğini unutmayın (yalnızca harfler, sayılar ve alt çizgi)." |
| 155 |
|
| 156 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:79 |
| 157 |
msgid "**__init__.py**" |
| 158 |
msgstr "**__init__.py**" |
| 159 |
|
| 160 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:80 |
| 161 |
msgid "As before, the file that defines the plugin class" |
| 162 |
msgstr "Daha önce olduğu gibi, eklenti sınıfını belirleyen dosya" |
| 163 |
|
| 164 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:82 |
| 165 |
msgid "**main.py**" |
| 166 |
msgstr "**main.py**" |
| 167 |
|
| 168 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:83 |
| 169 |
msgid "This file contains the actual code that does something useful" |
| 170 |
msgstr "Bu dosya işe yarar bir şeyler yapan gerçek kodu içerir" |
| 171 |
|
| 172 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:85 |
| 173 |
msgid "**ui.py**" |
| 174 |
msgstr "**ui.py**" |
| 175 |
|
| 176 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:86 |
| 177 |
msgid "This file defines the interface part of the plugin" |
| 178 |
msgstr "Bu dosya eklentinin arayüz kısmını tanımlar" |
| 179 |
|
| 180 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:88 |
| 181 |
msgid "**images/icon.png**" |
| 182 |
msgstr "**images/icon.png**" |
| 183 |
|
| 184 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:89 |
| 185 |
msgid "The icon for this plugin" |
| 186 |
msgstr "Eklenti için simge" |
| 187 |
|
| 188 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:91 |
| 189 |
msgid "**about.txt**" |
| 190 |
msgstr "**about.txt**" |
| 191 |
|
| 192 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:92 |
| 193 |
msgid "A text file with information about the plugin" |
| 194 |
msgstr "Eklenti hakkında bilgi veren bir metin dosyası" |
| 195 |
|
| 196 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:94 |
| 197 |
msgid "**translations**" |
| 198 |
msgstr "**translations**" |
| 199 |
|
| 200 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:95 |
| 201 |
msgid "" |
| 202 |
"A folder containing .mo files with the translations of the user interface of" |
| 203 |
" your plugin into different languages. See below for details." |
| 204 |
msgstr "Eklentinizin değişik dillere çevirilerini içeren .mo dosyalarını içeren bir dizin. Detaylar için aşağıya bakın." |
| 205 |
|
| 206 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:99 |
| 207 |
msgid "Now let's look at the code." |
| 208 |
msgstr "Şimdi koda bakalım." |
| 209 |
|
| 210 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:102 |
| 211 |
msgid "__init__.py" |
| 212 |
msgstr "__init__.py" |
| 213 |
|
| 214 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:104 |
| 215 |
msgid "First, the obligatory ``__init__.py`` to define the plugin metadata:" |
| 216 |
msgstr "Önce, eklenti metadatasını tanımlamak için zorunlu ``__init__.py``:" |
| 217 |
|
| 218 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:109 |
| 219 |
msgid "" |
| 220 |
"The only noteworthy feature is the field :attr:`actual_plugin`. Since " |
| 221 |
"calibre has both command line and GUI interfaces, GUI plugins like this one " |
| 222 |
"should not load any GUI libraries in __init__.py. The actual_plugin field " |
| 223 |
"does this for you, by telling calibre that the actual plugin is to be found " |
| 224 |
"in another file inside your ZIP archive, which will only be loaded in a GUI " |
| 225 |
"context." |
| 226 |
msgstr "Dikkate değer tek özellik :attr:`actual_plugin` alanıdır. Calibre'de hem komut satırı hem de GUI arayüzleri olduğundan, bunun gibi GUI eklentileri __init__.py dosyasına herhangi bir GUI kütüphanesi yüklememelidir. real_plugin alanı bunu sizin için calibre'ye gerçek eklentinin ZIP arşivinizdeki başka bir dosyada bulunacağını söyleyerek yapar ve bu dosya yalnızca GUI bağlamına yüklenir." |
| 227 |
|
| 228 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:114 |
| 229 |
msgid "" |
| 230 |
"Remember that for this to work, you must have a plugin-import-name-" |
| 231 |
"some_name.txt file in your plugin ZIP file, as discussed above." |
| 232 |
msgstr "Bunun çalışması için yukarıda tartışıldığı gibi eklenti ZIP dosyanızda bir eklenti-içe aktarma adı-bir_adı.txt dosyanızın olması gerektiğini unutmayın." |
| 233 |
|
| 234 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:117 |
| 235 |
msgid "" |
| 236 |
"Also there are a couple of methods for enabling user configuration of the " |
| 237 |
"plugin. These are discussed below." |
| 238 |
msgstr "Ayrıca eklentinin kullanıcı yapılandırmasının etkinleştirilmesi için bir kaç metod bulunmaktadır. Bunlardan aşağıda söz edilmektedir." |
| 239 |
|
| 240 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:120 |
| 241 |
msgid "ui.py" |
| 242 |
msgstr "ui.py" |
| 243 |
|
| 244 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:122 |
| 245 |
msgid "" |
| 246 |
"Now let's look at ui.py which defines the actual GUI plugin. The source code" |
| 247 |
" is heavily commented and should be self explanatory:" |
| 248 |
msgstr "Şimdi asıl GUI eklentisini tanımlayan ui.py ye bakalım. Kaynak kod yoğun şekilde yorumlanmıştır, kendini açıklıyor olması lazım:" |
| 249 |
|
| 250 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:128 |
| 251 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:220 |
| 252 |
msgid "main.py" |
| 253 |
msgstr "main.py" |
| 254 |
|
| 255 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:130 |
| 256 |
msgid "The actual logic to implement the Interface Plugin Demo dialog." |
| 257 |
msgstr "Arayüz Eklenti Tanıtım iletişim penceresini uygulayan asıl mantıksal kısım." |
| 258 |
|
| 259 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:136 |
| 260 |
msgid "Getting resources from the plugin ZIP file" |
| 261 |
msgstr "Eklenti ZIP dosyasından kaynak alma" |
| 262 |
|
| 263 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:138 |
| 264 |
msgid "" |
| 265 |
"calibre's plugin loading system defines a couple of built-in functions that " |
| 266 |
"allow you to conveniently get files from the plugin ZIP file." |
| 267 |
msgstr "calibre'nin eklenti yükleme sistemi, eklenti ZIP dosyasından dosyaları kolayca almanızı sağlayan birkaç yerleşik işlevi tanımlar." |
| 268 |
|
| 269 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:140 |
| 270 |
msgid "**get_resources(name_or_list_of_names)**" |
| 271 |
msgstr "**get_resources(isim_veya_isim_listesi)**" |
| 272 |
|
| 273 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:141 |
| 274 |
msgid "" |
| 275 |
"This function should be called with a list of paths to files inside the ZIP " |
| 276 |
"file. For example to access the file :file:`icon.png` in the folder images " |
| 277 |
"in the ZIP file, you would use: ``images/icon.png``. Always use a forward " |
| 278 |
"slash as the path separator, even on Windows. When you pass in a single " |
| 279 |
"name, the function will return the raw bytes of that file or None if the " |
| 280 |
"name was not found in the ZIP file. If you pass in more than one name then " |
| 281 |
"it returns a dictionary mapping the names to bytes. If a name is not found," |
| 282 |
" it will not be present in the returned dictionary." |
| 283 |
msgstr "Bu işlev, ZIP dosyası içindeki dosyaların yollarının listesiyle çağrılmalıdır. Örneğin, ZIP dosyasındaki resimler klasöründeki :file:`icon.png` dosyasına erişmek için şunu kullanırsınız: ``images/icon.png``. Windows'ta bile her zaman yol ayırıcı olarak eğik çizgi kullanın. Tek bir ad girdiğinizde, işlev o dosyanın ham baytlarını döndürür veya ad ZIP dosyasında bulunamadıysa Yok'u döndürür. Birden fazla ad girerseniz, adları baytlarla eşleştiren bir sözlük döndürür. Bir ad bulunamazsa, döndürülen sözlükte mevcut olmayacaktır." |
| 284 |
|
| 285 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:150 |
| 286 |
msgid "**get_icons(name_or_list_of_names, plugin_name='')**" |
| 287 |
msgstr "**get_icons(name_or_list_of_names, plugin_name='')**" |
| 288 |
|
| 289 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:151 |
| 290 |
msgid "" |
| 291 |
"A wrapper for get_resources() that creates QIcon objects from the raw bytes " |
| 292 |
"returned by get_resources. If a name is not found in the ZIP file the " |
| 293 |
"corresponding QIcon will be null. In order to support icon theme-ing, pass " |
| 294 |
"in the human friendly name of your plugin as ``plugin_name``. If the user is" |
| 295 |
" using an icon theme with icons for your plugin, they will be loaded " |
| 296 |
"preferentially." |
| 297 |
msgstr "get_resources() tarafından döndürülen ham baytlardan QIcon nesneleri oluşturan get_resources() sarmalayıcısı. ZIP dosyasında bir ad bulunamazsa ilgili QIcon boş olacaktır. Simge temasını desteklemek için eklentinizin insan dostu adını ``eklenti_adı`` olarak girin. Kullanıcı, eklentiniz için simgeler içeren bir simge teması kullanıyorsa, bunlar tercihen yüklenecektir." |
| 298 |
|
| 299 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:160 |
| 300 |
msgid "Enabling user configuration of your plugin" |
| 301 |
msgstr "Eklentiniz için kullanıcı yapılandırmasını etkinleştirmek" |
| 302 |
|
| 303 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:162 |
| 304 |
msgid "" |
| 305 |
"To allow users to configure your plugin, you must define three methods in " |
| 306 |
"your base plugin class, **is_customizable**, **config_widget** and " |
| 307 |
"**save_settings** as shown below:" |
| 308 |
msgstr "Kullanıcıların eklentinizi yapılandırmasına izin vermek için, temel eklenti sınıfınızda aşağıda gösterildiği gibi **is_customizable**, **config_widget** ve **save_settings** olmak üzere üç yöntem tanımlamanız gerekir:" |
| 309 |
|
| 310 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:173 |
| 311 |
msgid "" |
| 312 |
"calibre has many different ways to store configuration data (a legacy of its" |
| 313 |
" long history). The recommended way is to use the **JSONConfig** class, " |
| 314 |
"which stores your configuration information in a .json file." |
| 315 |
msgstr "calibre'nin yapılandırma verisi saklamak için bir çok yöntemi vardır (uzun geçmişinden miras). Önerilen metod **JSONConfig** sınıfının kullanılmasıdır, bu da yapılandırmanızı bir .json dosyasında tutar." |
| 316 |
|
| 317 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:175 |
| 318 |
msgid "" |
| 319 |
"The code to manage configuration data in the demo plugin is in config.py:" |
| 320 |
msgstr "Tanıtım eklentisindeki yapılandırma verisini yöneten kod config.py'de:" |
| 321 |
|
| 322 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:180 |
| 323 |
msgid "" |
| 324 |
"The ``prefs`` object is now available throughout the plugin code by a " |
| 325 |
"simple::" |
| 326 |
msgstr "``prefs`` nesnesi şimdi eklenti kodunda basitçe şu şekilde kullanılabilir::" |
| 327 |
|
| 328 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:185 |
| 329 |
msgid "You can see the ``prefs`` object being used in main.py:" |
| 330 |
msgstr "``prefs`` nesnesinin main.py'de kullanıldığını görebilirsiniz:" |
| 331 |
|
| 332 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:192 |
| 333 |
msgid "Edit book plugins" |
| 334 |
msgstr "Kitap eklentilerini düzenle" |
| 335 |
|
| 336 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:194 |
| 337 |
msgid "" |
| 338 |
"Now let's change gears for a bit and look at creating a plugin to add tools " |
| 339 |
"to the calibre book editor. The plugin is available here: " |
| 340 |
":download_file:`editor_demo_plugin.zip`." |
| 341 |
msgstr "Şimdi biraz vites değiştirelim ve calibre kitap düzenleyicisine araçlar eklemek için bir eklenti oluşturmaya bakalım. Eklentiyi burada bulabilirsiniz: :download_file:`editor_demo_plugin.zip`." |
| 342 |
|
| 343 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:198 |
| 344 |
msgid "" |
| 345 |
"The first step, as for all plugins is to create the import name empty txt " |
| 346 |
"file, as described :ref:`above <import_name_txt>`. We shall name the file " |
| 347 |
"``plugin-import-name-editor_plugin_demo.txt``." |
| 348 |
msgstr "İlk adım, :ref:`above <import_name_txt>` de açıklandığı gibi tüm eklentiler için boş bir içe aktarma ismi dosyası oluşturmaktır. Eklentiyi ``plugin-import-name-editor_plugin_demo.txt`` olarak adlandıralım." |
| 349 |
|
| 350 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:202 |
| 351 |
msgid "" |
| 352 |
"Now we create the mandatory ``__init__.py`` file that contains metadata " |
| 353 |
"about the plugin -- its name, author, version, etc." |
| 354 |
msgstr "Şimdi eklenti metadatasını içeren -- ismi, yazarı, sürümü vs. zorunlu ``__init__.py`` dosyasını oluşturuyoruz." |
| 355 |
|
| 356 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:208 |
| 357 |
msgid "" |
| 358 |
"A single editor plugin can provide multiple tools each tool corresponds to a" |
| 359 |
" single button in the toolbar and entry in the :guilabel:`Plugins` menu in " |
| 360 |
"the editor. These can have sub-menus in case the tool has multiple related " |
| 361 |
"actions." |
| 362 |
msgstr "Tek bir düzenleyici eklenti her biri araç çubuğunda bir simgeye ve düzenleyicide :guilabel:`Eklentiler` menüsünde bir girdiye denk gelmek üzere bir çok araç sağlayabilir. Aracın birden çok eylemi bulunması durumunda alt menüleri de olabilir." |
| 363 |
|
| 364 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:212 |
| 365 |
msgid "" |
| 366 |
"The tools must all be defined in the file ``main.py`` in your plugin. Every " |
| 367 |
"tool is a class that inherits from the " |
| 368 |
":class:`calibre.gui2.tweak_book.plugin.Tool` class. Let's look at " |
| 369 |
"``main.py`` from the demo plugin, the source code is heavily commented and " |
| 370 |
"should be self-explanatory. Read the API documents of the " |
| 371 |
":class:`calibre.gui2.tweak_book.plugin.Tool` class for more details." |
| 372 |
msgstr "Araçların her biri eklentinizdeki ``main.py`` içinde tanımlanmalıdır. Her araç :class:`calibre.gui2.tweak_book.plugin.Tool` sınıfından türetilen bir sınıftır. Tanıtım eklentisindeki ``main.py`` ye bakalım, kaynak kod yoğun olarak yorumlanmış ve kendini anlatabiliyor durumdadır. Daha fazla detay için :class:`calibre.gui2.tweak_book.plugin.Tool` sınıfının API belgelerini okuyun." |
| 373 |
|
| 374 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:222 |
| 375 |
msgid "" |
| 376 |
"Here we will see the definition of a single tool that will multiply all font" |
| 377 |
" sizes in the book by a number provided by the user. This tool demonstrates " |
| 378 |
"various important concepts that you will need in developing your own " |
| 379 |
"plugins, so you should read the (heavily commented) source code carefully." |
| 380 |
msgstr "Burda kitaptaki tüm yazı tipi boyutlarını kullanıcı tarafından sağlanan bir numarayla çarpan tek bir araç tanımı göreceğiz. Bu araç kendi eklentilerinizi geliştirirken ihtiyaç duyacağınız çeşitli önemli kavramı gösterir, yani (yoğun bir şekilde yorumlanmış) kaynak kodu dikkatli okumalısınız." |
| 381 |
|
| 382 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:230 |
| 383 |
msgid "" |
| 384 |
"Let's break down ``main.py``. We see that it defines a single tool, named " |
| 385 |
"*Magnify fonts*. This tool will ask the user for a number and multiply all " |
| 386 |
"font sizes in the book by that number." |
| 387 |
msgstr "``main.py`` yi kısımlara ayıralım. *Magnify fonts* adında tek bir araç tanımladığını görüyoruz. Bu araç kullanıcıya bir sayı soracak ve kitaptaki tüm yazı tipi boyutlarını bu sayıyla çarpacak." |
| 388 |
|
| 389 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:234 |
| 390 |
msgid "" |
| 391 |
"The first important thing is the tool name which you must set to some " |
| 392 |
"relatively unique string as it will be used as the key for this tool." |
| 393 |
msgstr "İlk önemli nokta, bu araç için anahtar olarak kullanılacağından benzersiz bir karakter dizisi olarak ayarlayacağınız araç ismidir." |
| 394 |
|
| 395 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:237 |
| 396 |
msgid "" |
| 397 |
"The next important entry point is the " |
| 398 |
":meth:`calibre.gui2.tweak_book.plugin.Tool.create_action`. This method " |
| 399 |
"creates the QAction objects that appear in the plugins toolbar and plugin " |
| 400 |
"menu. It also, optionally, assigns a keyboard shortcut that the user can " |
| 401 |
"customize. The triggered signal from the QAction is connected to the " |
| 402 |
"ask_user() method that asks the user for the font size multiplier, and then " |
| 403 |
"runs the magnification code." |
| 404 |
msgstr "Sonraki önemli nokta da :meth:`calibre.gui2.tweak_book.plugin.Tool.create_action`. Bu metod eklenti araç çubuğu ve eklenti menüsünde görünen QAction nesnelerini oluşturur. Bunun yanında, isteğe bağlı olarak kullanıcının özelleştirebileceği bir klavye kısayolu atar. QAction tarafından tetiklenen sinyal kullanıcıya yazı tipi boyutu çarpanını soran ask_user() metoduna bağlıdır, bu da çarpma kodunu çalıştırır." |
| 405 |
|
| 406 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:245 |
| 407 |
msgid "" |
| 408 |
"The magnification code is well commented and fairly simple. The main things " |
| 409 |
"to note are that you get a reference to the editor window as ``self.gui`` " |
| 410 |
"and the editor *Boss* as ``self.boss``. The *Boss* is the object that " |
| 411 |
"controls the editor user interface. It has many useful methods, that are " |
| 412 |
"documented in the :class:`calibre.gui2.tweak_book.boss.Boss` class." |
| 413 |
msgstr "Çarpma kodu iyi belgelenmiş ve oldukça basittir. Dikkate alınacan temel şeyler düzenleyici pencereye ``self.gui`` ile, düzenleyici *Boss* una ``self.boss`` ile bir referans aldığınızdır. *Boss* düzenleyici kullanıcı arayüzünü kontrol eden nesnedir. :class:`calibre.gui2.tweak_book.boss.Boss` sınıfında belgelenmiş bir çok faydalı metodu vardır." |
| 414 |
|
| 415 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:251 |
| 416 |
msgid "" |
| 417 |
"Finally, there is ``self.current_container`` which is a reference to the " |
| 418 |
"book being edited as a " |
| 419 |
":class:`calibre.ebooks.oeb.polish.container.Container` object. This " |
| 420 |
"represents the book as a collection of its constituent HTML/CSS/image files " |
| 421 |
"and has convenience methods for doing many useful things. The container " |
| 422 |
"object and various useful utility functions that can be reused in your " |
| 423 |
"plugin code are documented in :ref:`polish_api`." |
| 424 |
msgstr "Son olarak :class:`calibre.ebooks.oeb.polish.container.Container` nesnesi olan düzenlenen kitaba referans olan ``self.current_container`` bulunmaktadır. Bu, kitabı, kitabı oluşturan HTML/CSS/resim dosyaları koleksiyonu olarak temsil eder ve daha bir çok faydalı iş yapan metodu vardır. Eklenti kodunuzda tekrar kullanabileceğiniz bir çok kullanışlı fonksiyon ve kapsayıcı nesne :ref:`polish_api` içinde belgelenmiştir." |
| 425 |
|
| 426 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:259 |
| 427 |
msgid "Adding translations to your plugin" |
| 428 |
msgstr "Eklentinize çeviriler eklemek" |
| 429 |
|
| 430 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:261 |
| 431 |
msgid "" |
| 432 |
"You can have all the user interface strings in your plugin translated and " |
| 433 |
"displayed in whatever language is set for the main calibre user interface." |
| 434 |
msgstr "Eklentinizdeki tüm kullanıcı arayüzü karakter dizilerini ana calibre kullanıcı arayüzü için hangi dil seçildiyse o dile çevirip gösterebilirsiniz." |
| 435 |
|
| 436 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:264 |
| 437 |
msgid "" |
| 438 |
"The first step is to go through your plugin's source code and mark all user " |
| 439 |
"visible strings as translatable, by surrounding them in _(). For example::" |
| 440 |
msgstr "İlk adım eklentinizin kaynak kodunun üstünden geçmek ve kullanıcıya görünür tüm metinleri _() içerisine alarak çevrilebilir olarak işaretlemektir. Örneğin::" |
| 441 |
|
| 442 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:269 |
| 443 |
msgid "" |
| 444 |
"Then use some program to generate .po files from your plugin source code. " |
| 445 |
"There should be one .po file for every language you want to translate into. " |
| 446 |
"For example: de.po for German, fr.po for French and so on. You can use the " |
| 447 |
"`Poedit <https://poedit.net/>`_ program for this." |
| 448 |
msgstr "Daha sonra eklenti kaynak kodunuzdan .po dosyaları oluşturmak için bir program kullanın. Çevirmek istediğiniz her dil için bir .po dosyası bulunmalıdır. Örneğin: Almanca için de.po, Fransızca için fr.po vb. Bunun için `Poedit <https://poedit.net/>`_ programını kullanabilirsiniz." |
| 449 |
|
| 450 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:274 |
| 451 |
msgid "" |
| 452 |
"Send these .po files to your translators. Once you get them back, compile " |
| 453 |
"them into .mo files. You can again use Poedit for that, or just do::" |
| 454 |
msgstr "Bu .po dosyalarını çevirmenlerinize gönderin. Bunları geri aldıktan sonra .mo dosyaları halinde derleyin. Bunun için tekrar Poedit'i kullanabilir veya şunu yapabilirsiniz::" |
| 455 |
|
| 456 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:279 |
| 457 |
msgid "Put the .mo files into the ``translations`` folder in your plugin." |
| 458 |
msgstr ".mo dosyalarını eklentinizdeki ``translations`` dizinine koyun." |
| 459 |
|
| 460 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:281 |
| 461 |
msgid "" |
| 462 |
"The last step is to simply call the function `load_translations()` at the " |
| 463 |
"top of your plugin's .py files. For performance reasons you should only call" |
| 464 |
" this function in those .py files that actually have translatable strings. " |
| 465 |
"So in a typical User Interface plugin you would call it at the top of " |
| 466 |
"``ui.py`` but not ``__init__.py``." |
| 467 |
msgstr "Son adım eklentinizin .py dosyalarının başına `load_translations()` fonksiyonunu eklemektir. Performans açısından bu fonksiyonu yalnızca çevrilebilir karakter dizilerinin olduğu dosyalara eklemelisiniz. Yani tipik bir kullanıcı arayüzü eklentisinde ``ui.py`` başında çağırırken ``__init__.py``de çağırmazsınız." |
| 468 |
|
| 469 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:287 |
| 470 |
msgid "" |
| 471 |
"You can test the translations of your plugins by changing the user interface" |
| 472 |
" language in calibre under :guilabel:`Preferences->Interface->Look & feel` " |
| 473 |
"or by running calibre with the ``CALIBRE_OVERRIDE_LANG`` environment " |
| 474 |
"variable set. For example::" |
| 475 |
msgstr "Eklentilerinizin çevirilerini calibre'de :guilabel:`Tercihler->Arayüz->Görünüm ve his` altında kullanıcı arayüzü dilini değiştirerek veya calibre'yi ``CALIBRE_OVERRIDE_LANG`` ortam değişken seti ile çalıştırarak test edebilirsiniz. Örneğin::" |
| 476 |
|
| 477 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:293 |
| 478 |
msgid "" |
| 479 |
"Replace ``de`` with the language code of the language you want to test." |
| 480 |
msgstr "``de`` yi test etmek istediğiniz dil koduyla değiştirin." |
| 481 |
|
| 482 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:295 |
| 483 |
msgid "" |
| 484 |
"For translations with plurals, use the ``ngettext()`` function instead of " |
| 485 |
"``_()``. For example::" |
| 486 |
msgstr "Çoğul içeren çeviriler için ``_()`` yerine ``ngettext()`` işlevini kullanın. Örneğin::" |
| 487 |
|
| 488 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:301 |
| 489 |
msgid "The plugin API" |
| 490 |
msgstr "Eklenti API'si" |
| 491 |
|
| 492 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:303 |
| 493 |
msgid "" |
| 494 |
"As you may have noticed above, a plugin in calibre is a class. There are " |
| 495 |
"different classes for the different types of plugins in calibre. Details on " |
| 496 |
"each class, including the base class of all plugins can be found in " |
| 497 |
":ref:`plugins`." |
| 498 |
msgstr "Yukarda fark etmiş olabileceğiniz gibi, calibre'de eklenti bir sınıftır. Calibre'de değişik türde eklentiler için değişik sınıflar bulunur. Tüm eklentiler için temel sınıf dahil her sınıfla ilgili detay :ref:`plugins` içinde bulunabilir." |
| 499 |
|
| 500 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:306 |
| 501 |
msgid "" |
| 502 |
"Your plugin is almost certainly going to use code from calibre. To learn how" |
| 503 |
" to find various bits of functionality in the calibre code base, read the " |
| 504 |
"section on the calibre :ref:`code_layout`." |
| 505 |
msgstr "Eklentiniz çoğu durumda calibre'den de kod kullanacaktır. calibre kod tabanındaki fonksiyonellikle ilgili çeşitli bilgiler bulmak için, calibre'deki :ref:`code_layout` kısmını okuyun." |
| 506 |
|
| 507 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:311 |
| 508 |
msgid "Debugging plugins" |
| 509 |
msgstr "Eklentilerde hata ayıklama" |
| 510 |
|
| 511 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:313 |
| 512 |
msgid "" |
| 513 |
"The first, most important step is to run calibre in debug mode. You can do " |
| 514 |
"this from the command line with::" |
| 515 |
msgstr "İlk, en önemli adım calibre'yi hata ayıklama kipinde çalıştırmaktır. Bu işlemi komut satırından şu şekilde yapabilirsiniz::" |
| 516 |
|
| 517 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:317 |
| 518 |
msgid "" |
| 519 |
"Or from within calibre by right-clicking the :guilabel:`Preferences` button " |
| 520 |
"or using the :kbd:`Ctrl+Shift+R` keyboard shortcut." |
| 521 |
msgstr "Veya calibre içinden :guilabel:`Tercihler` düğmesine sağ tıklayarak veya :kbd:`Ctrl+Shift+R` klavye kısayolunu kullanarak." |
| 522 |
|
| 523 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:319 |
| 524 |
msgid "" |
| 525 |
"When running from the command line, debug output will be printed to the " |
| 526 |
"console, when running from within calibre the output will go to a txt file." |
| 527 |
msgstr "Komut satırından çalıştırırken, hata ayıklama çıktısı konsola yazdırılacaktır, calibre içinden çalıştırılırken çıktı bir txt dosyasına gider." |
| 528 |
|
| 529 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:321 |
| 530 |
msgid "" |
| 531 |
"You can insert print statements anywhere in your plugin code, they will be " |
| 532 |
"output in debug mode. Remember, this is Python, you really shouldn't need " |
| 533 |
"anything more than print statements to debug ;) I developed all of calibre " |
| 534 |
"using just this debugging technique." |
| 535 |
msgstr "Yazdırma ifadelerini eklenti kodunuzun herhangi bir yerine ekleyebilirsiniz, bunlar hata ayıklama modunda yayınlanacaktır. Unutmayın, bu Python, hata ayıklamak için print ifadelerinden daha fazlasına ihtiyacınız olmamalı ;) Calibre'nin tamamını sadece bu hata ayıklama tekniğini kullanarak geliştirdim." |
| 536 |
|
| 537 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:323 |
| 538 |
msgid "" |
| 539 |
"You can quickly test changes to your plugin by using the following command " |
| 540 |
"line::" |
| 541 |
msgstr "Eklentinize yaptığınızı değişiklikleri hızlıca şu komut satırıyla test edebilirsiniz::" |
| 542 |
|
| 543 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:328 |
| 544 |
msgid "" |
| 545 |
"This will shutdown a running calibre, wait for the shutdown to complete, " |
| 546 |
"then update your plugin in calibre and relaunch calibre." |
| 547 |
msgstr "Bu işlem calibre'yi kapatır, kapanmanın bitmesini bekler, eklentinizi calibre'de günceller ve calibre'yi baştan başlatır." |
| 548 |
|
| 549 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:331 |
| 550 |
msgid "More plugin examples" |
| 551 |
msgstr "Daha fazla eklenti örneği" |
| 552 |
|
| 553 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:333 |
| 554 |
msgid "" |
| 555 |
"You can find a list of many sophisticated calibre plugins `here " |
| 556 |
"<https://www.mobileread.com/forums/showthread.php?t=118764>`_." |
| 557 |
msgstr "Birçok gelişmiş Calibre eklentisinin listesini burada <https://www.mobileread.com/forums/showthread.php?t=118764>`_ bulabilirsiniz." |
| 558 |
|
| 559 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:336 |
| 560 |
msgid "Sharing your plugins with others" |
| 561 |
msgstr "Eklentilerinizi başkalarıyla paylaşmak" |
| 562 |
|
| 563 |
#: ../../../__w/calibre/calibre/manual/creating_plugins.rst:338 |
| 564 |
msgid "" |
| 565 |
"If you would like to share the plugins you have created with other users of " |
| 566 |
"calibre, post your plugin in a new thread in the `calibre plugins forum " |
| 567 |
"<https://www.mobileread.com/forums/forumdisplay.php?f=237>`_." |
| 568 |
msgstr "Oluşturduğunuz eklentileri diğer calibre kullanıcılarıyla paylaşmak istiyorsanız, eklentinizi 'calibre eklentileri forumunda <https://www.mobileread.com/forums/forumdisplay.php?f=237 yeni bir başlıkta yayınlayın. >`_." |