Debian Codegraph @

translations/manual/zh_CN/server.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 # RERBIN MA, 2026
7 # tony shen <[email protected]>, 2023-2024
8 # 贵宏 张, 2023
9 msgid ""
10 msgstr ""
11 "Project-Id-Version: calibre\n"
12 "Report-Msgid-Bugs-To: \n"
13 "POT-Creation-Date: 2026-04-29 04:37+0000\n"
14 "PO-Revision-Date: 2014-06-17 08:36+0000\n"
15 "Last-Translator: RERBIN MA, 2026\n"
16 "Language-Team: Chinese (China) (http://app.transifex.com/calibre/calibre/language/zh_CN/)\n"
17 "MIME-Version: 1.0\n"
18 "Content-Type: text/plain; charset=UTF-8\n"
19 "Content-Transfer-Encoding: 8bit\n"
20 "Language: zh_CN\n"
21 "Plural-Forms: nplurals=1; plural=0;\n"
22
23 #: ../../../__w/calibre/calibre/manual/server.rst:2
24 msgid "The calibre Content server"
25 msgstr "calibre 内容服务器"
26
27 #: ../../../__w/calibre/calibre/manual/server.rst:4
28 msgid ""
29 "The calibre :guilabel:`Content server` allows you to access your calibre "
30 "libraries and read books directly in a browser on your favorite mobile phone"
31 " or tablet device. As a result, you do not need to install any dedicated "
32 "book reading/management apps on your phone. Just use the browser. The server"
33 " downloads and stores the book you are reading in an off-line cache so that "
34 "you can read it even when there is no internet connection."
35 msgstr "calibre菜单“内容服务器”允许您访问您的calibre书库,并直接在您喜爱的手机或平板电脑设备上的浏览器中阅读书籍。因此,您无需在手机上安装任何专用的图书阅读/管理应用程序。只需使用浏览器。服务器将您正在阅读的书籍下载并存储在离线缓存中,这样即使在没有互联网连接的情况下也可以阅读。"
36
37 #: ../../../__w/calibre/calibre/manual/server.rst:13
38 msgid "Contents"
39 msgstr "目录"
40
41 #: ../../../__w/calibre/calibre/manual/server.rst:15
42 msgid ""
43 "To start the server, click the :guilabel:`Connect/share` button and choose "
44 ":guilabel:`Start Content server`. You might get a message from your "
45 "computer's firewall or anti-virus program asking if it is OK to allow access"
46 " to ``calibre.exe``. Click the ``Allow`` or ``OK`` button. Then open a "
47 "browser (preferably Chrome or Firefox) in your computer and type in the "
48 "following address:"
49 msgstr "要启动服务器,请单击“连接/共享”按钮,然后选择“启动内容服务器”。您可能会收到来自计算机防火墙或防病毒程序的消息,询问是否可以允许访问“calible.exe”。单击“允许”或“确定”按钮。然后在电脑中打开浏览器(最好是Chrome或Firefox),输入以下地址:"
50
51 #: ../../../__w/calibre/calibre/manual/server.rst:22
52 msgid "http://127.0.0.1:8080"
53 msgstr "http://127.0.0.1:8080"
54
55 #: ../../../__w/calibre/calibre/manual/server.rst:24
56 msgid ""
57 "This will open a page in the browser showing you your calibre libraries, "
58 "click on any one and browse the books in it. Click on a book, and it will "
59 "show you all the metadata about the book, along with buttons to "
60 ":guilabel:`Read` and :guilabel:`Download` the book. Click the "
61 ":guilabel:`Read` button to start reading the book."
62 msgstr "这将在浏览器中打开一个页面,向您显示您的calibre书库,单击任意图书并浏览其中的书籍。单击一本书,它将向您显示有关该书的所有元数据,以及菜单按钮“阅读书籍”和“下载书籍”。单击菜单“阅读书籍”按钮开始阅读书籍。"
63
64 #: ../../../__w/calibre/calibre/manual/server.rst:30
65 msgid ""
66 "The address used above ``http://127.0.0.1:8080`` will only work on the "
67 "computer that is running calibre. To access the server from other "
68 "computers/phones/tablets/etc. you will need to do a little more work, as "
69 "described in the next section."
70 msgstr "上面使用的地址“http://127.0.0.1:8080”只能在运行calibre的计算机上工作。从其他计算机/手机/平板电脑等访问服务器。您将需要做更多的工作,如下一节所述。"
71
72 #: ../../../__w/calibre/calibre/manual/server.rst:37
73 msgid "Accessing the Content server from other devices"
74 msgstr "从其他设备访问内容服务器"
75
76 #: ../../../__w/calibre/calibre/manual/server.rst:39
77 msgid ""
78 "There are two types of remote device access that you will typically need. "
79 "The first, simpler kind is from within your home network. If you are running"
80 " calibre on a computer on your home network and you have also connected your"
81 " other devices to the same home network, then you should be easily able to "
82 "access the server on those devices."
83 msgstr "您通常需要两种类型的远程设备访问。第一种,更简单的是来自家庭网络。如果您在家庭网络上的计算机上运行calibre,并且您还将其他设备连接到了同一家庭网络,那么您应该能够轻松访问这些设备上的服务器。"
84
85 #: ../../../__w/calibre/calibre/manual/server.rst:46
86 msgid "Accessing the server from devices on your home network"
87 msgstr "从家庭网络上的设备访问服务器"
88
89 #: ../../../__w/calibre/calibre/manual/server.rst:48
90 msgid ""
91 "After starting the server in calibre as described above, click the "
92 ":guilabel:`Connect/share` button again. Instead of the :guilabel:`Start "
93 "Content server` action, you should see a :guilabel:`Stop Content server` "
94 "action instead. To the right of this action will be listed an IP address and"
95 " port number. These look like a bunch of numbers separated by periods. For "
96 "example::"
97 msgstr "按照上述方式启动服务器后,再次单击菜单“连接/共享”按钮。您应该看到的不是菜单“启动内容服务器”操作,而是菜单“停止内容服务器”动作。此操作的右侧将列出一个IP地址和端口号。这些看起来像是一堆用句点分隔的数字。例如:"
98
99 #: ../../../__w/calibre/calibre/manual/server.rst:57
100 msgid ""
101 "These numbers tell you what address to use to connect to the server in your "
102 "devices. Following the example above, the address becomes::"
103 msgstr "这些数字告诉您使用哪个地址连接到设备中的服务器。按照上面的示例,地址变为:"
104
105 #: ../../../__w/calibre/calibre/manual/server.rst:62
106 msgid ""
107 "The first part of the address is always ``http://`` the next part is the IP "
108 "address, which is the numbers before the comma and finally we have the port "
109 "number which must be added to the IP address with a colon (``:``). If you "
110 "are lucky, that should be all you need and you will be looking at the "
111 "calibre libraries on your device. If not, read on."
112 msgstr "地址的第一部分总是“http://”,下一部分是IP地址,它是逗号前的数字,最后我们有了端口号,它必须用冒号(“:”)添加到IP地址中。如果你幸运的话,这应该是你所需要的,你会在你的设备上查看calibre书库。如果没有,请继续阅读。"
113
114 #: ../../../__w/calibre/calibre/manual/server.rst:70
115 msgid "Trouble-shooting the home network connection"
116 msgstr "家庭网络连接故障排除"
117
118 #: ../../../__w/calibre/calibre/manual/server.rst:72
119 msgid ""
120 "If you are unable to access the server from your device, try the following "
121 "steps:"
122 msgstr "如果无法从设备访问服务器,请尝试以下步骤:"
123
124 #: ../../../__w/calibre/calibre/manual/server.rst:75
125 msgid ""
126 "Check that the server is running by opening the address "
127 "``http://127.0.0.1:8080`` in a browser running on the same computer as the "
128 "server."
129 msgstr "通过打开网址检查服务器是否正在运行``http://127.0.0.1:8080``在与服务器运行在同一台计算机上的浏览器中。"
130
131 #: ../../../__w/calibre/calibre/manual/server.rst:79
132 msgid ""
133 "Check that your firewall/anti-virus is allowing connections to your computer"
134 " on the port ``8080`` and to the calibre program. The easiest way to "
135 "eliminate the firewall/anti-virus as the source of problems is to "
136 "temporarily turn them both off and then try connecting. You should first "
137 "disconnect from the internet, before turning off the firewall, to keep your "
138 "computer safe."
139 msgstr "检查您的防火墙/防病毒是否允许连接到端口“8080”上的计算机和calibre程序。消除防火墙/防病毒作为问题根源的最简单方法是暂时关闭它们,然后尝试连接。在关闭防火墙之前,您应该先断开与互联网的连接,以确保计算机的安全。"
140
141 #: ../../../__w/calibre/calibre/manual/server.rst:86
142 msgid ""
143 "Check that your device and computer are on the same network. This means they"
144 " should both be connected to the same wireless router. In particular neither"
145 " should be using a cellular or ISP provided direct-WiFi connection."
146 msgstr "请检查您的设备和计算机是否位于同一网络上。这意味着它们都应该连接到同一个无线路由器。特别地,两者都不应该使用蜂窝网络或ISP提供的直接WiFi连接。"
147
148 #: ../../../__w/calibre/calibre/manual/server.rst:90
149 msgid ""
150 "If you have non-standard networking setup, it might be that the IP address "
151 "shown on the :guilabel:`Connect/share` menu is incorrect. In such a case you"
152 " will have to figure out what the correct IP address to use is, yourself. "
153 "Unfortunately, given the infinite diversity of network configurations "
154 "possible, it is not possible to give you a roadmap for doing so."
155 msgstr "如果您的网络设置不标准,可能是菜单:“连接/共享”菜单上显示的IP地址不正确。在这种情况下,你必须自己找出正确的IP地址。不幸的是,考虑到网络配置的无限多样性,不可能为您提供这样做的路线图。"
156
157 #: ../../../__w/calibre/calibre/manual/server.rst:97
158 msgid ""
159 "If you have set up a username and password, first try it without that to see"
160 " if it is causing issues. Some e-ink devices have browsers that do not "
161 "handle authentication. You can sometimes workaround this by including the "
162 "username and password in the URL, for example: "
163 "``http://username:[email protected]:8080``."
164 msgstr "如果您设置了用户名和密码,请先尝试取消设置,以确认其是否为导致问题的原因。某些电子墨水设备的浏览器无法处理身份验证。您有时可以通过在 URL 中包含用户名和密码来绕过此限制,例如:``http://username:[email protected]:8080``。"
165
166 #: ../../../__w/calibre/calibre/manual/server.rst:103
167 msgid ""
168 "If you are stuck, you can always ask for help in the `calibre user forums`_."
169 msgstr "如果你陷入困境,你可以随时在“calibre用户论坛”_上寻求帮助。"
170
171 #: ../../../__w/calibre/calibre/manual/server.rst:107
172 msgid "Accessing the server from anywhere on the internet"
173 msgstr "从互联网上任何地方访问服务器"
174
175 #: ../../../__w/calibre/calibre/manual/server.rst:111
176 msgid ""
177 "Before doing this you should turn on username/password protection in the "
178 "server, otherwise anyone in the world will be able to access your books. Go "
179 "to :guilabel:`Preferences->Sharing->Sharing over the net` and enable the "
180 "option to :guilabel:`Require username and password to access the content "
181 "server`."
182 msgstr "在此之前,您应该在服务器中打开用户名/密码保护,否则世界上的任何人都可以访问您的书籍。转到菜单“首选项”->“共享”->“通过网络共享”,并启用菜单选项“访问内容服务器需要用户名和密码”。"
183
184 #: ../../../__w/calibre/calibre/manual/server.rst:117
185 msgid ""
186 "While the particular details on setting up internet access vary depending on"
187 " the network configuration and type of computer you are using, the basic "
188 "schema is as follows."
189 msgstr "虽然设置互联网访问的具体细节因网络配置和您使用的计算机类型而异,但基本模式如下。"
190
191 #: ../../../__w/calibre/calibre/manual/server.rst:121
192 msgid ""
193 "Find out the external IP address of the computer you are going to run the "
194 "server on. You can do that by visiting the site `What is my IP address "
195 "<https://www.whatismyip.com/>`_ in a browser running on the computer."
196 msgstr "找出要运行服务器的计算机的外部IP地址。您可以访问“我的IP地址是什么”网站<https://www.whatismyip.com/>`_在计算机上运行的浏览器中。"
197
198 #: ../../../__w/calibre/calibre/manual/server.rst:125
199 msgid ""
200 "If the computer is behind a router, enable port forwarding on the router to "
201 "forward the port ``8080`` (or whatever port you choose to run the calibre "
202 "Content server on) to the computer."
203 msgstr "如果计算机位于路由器后面,请启用路由器上的端口转发,以将端口“8080”(或您选择在其上运行calibre内容服务器的任何端口)转发到计算机。"
204
205 #: ../../../__w/calibre/calibre/manual/server.rst:129
206 msgid ""
207 "Make sure the calibre server is allowed through any firewalls/anti-virus "
208 "programs on your computer."
209 msgstr "确保calibre服务器可以通过您计算机上的任何防火墙/防病毒程序。"
210
211 #: ../../../__w/calibre/calibre/manual/server.rst:132
212 msgid ""
213 "Now you should be able to access the server on any internet-connected device"
214 " using the IP address you found in the first step. For example, if the IP "
215 "address you found was ``123.123.123.123`` and the port you are using for the"
216 " calibre server is ``8080``, the address to use on your device becomes: "
217 "``http://123.123.123.123:8080``."
218 msgstr "现在,您应该能够使用第一步中找到的IP地址访问任何联网设备上的服务器。例如,如果您找到的IP地址为“123.123.123.123”,而您用于calibre服务器的端口为“8080”,则在您的设备上使用的地址变为:``http://123.123.123.123:8080``。"
219
220 #: ../../../__w/calibre/calibre/manual/server.rst:138
221 msgid ""
222 "Optionally, use a service like `no-ip <https://www.noip.com/free>`_ to setup"
223 " an easy to remember address to use instead of the IP address you found in "
224 "the first step."
225 msgstr "或者,使用`no-ip<https://www.noip.com/free>`_这样的服务来设置一个易于记忆的地址,以代替您在第一步中找到的IP地址。"
226
227 #: ../../../__w/calibre/calibre/manual/server.rst:146
228 msgid ""
229 "For maximum security, you should also enable HTTPS on the Content server. "
230 "You can either do so directly in the server by providing the path to the "
231 "HTTPS certificate to use in the advanced configuration options for the "
232 "server, or you can set up a reverse proxy as described below, to use an "
233 "existing HTTPS setup."
234 msgstr "为了获得最大程度的安全性,您还应在内容服务器上启用 HTTPS。您可以直接在服务器的高级配置选项中提供 HTTPS 证书路径;或者按照下文所述设置反向代理,以沿用现有的 HTTPS 配置。"
235
236 #: ../../../__w/calibre/calibre/manual/server.rst:154
237 msgid "The server interface"
238 msgstr "服务器接口界面"
239
240 #: ../../../__w/calibre/calibre/manual/server.rst:156
241 msgid ""
242 "The server interface is a simplified version of the main calibre interface, "
243 "optimised for use with touch screens. The home screen shows you books you "
244 "are currently reading as well as allowing you to choose a calibre library "
245 "you want to browse. The server in calibre gives you access to all your "
246 "libraries, not just a single one, as before."
247 msgstr "内容服务器界面是主程序界面的简化版,专为触摸屏操作而优化。主屏幕会显示您当前正在阅读的书籍,并允许您选择想要浏览的书库。现在的服务器允许您访问所有的 Calibre 书库,不像以前那样只能访问单个书库。"
248
249 #: ../../../__w/calibre/calibre/manual/server.rst:163
250 msgid "The book list"
251 msgstr "书籍列表"
252
253 #: ../../../__w/calibre/calibre/manual/server.rst:165
254 msgid ""
255 "The server book list is a simple grid of covers. Tap on a cover to see the "
256 "detailed metadata for a book, or to read the book. If you prefer a more "
257 "detailed list, you can change the default view by clicking the three "
258 "vertical dots in the top right corner."
259 msgstr "服务器图书列表是一个简单的封面网格。点击封面可查看书籍的详细元数据,或阅读书籍。如果您喜欢更详细的列表,可以通过单击右上角的三个垂直点来更改默认视图。"
260
261 #: ../../../__w/calibre/calibre/manual/server.rst:170
262 msgid ""
263 "Sorting and searching of the book list should be familiar to calibre users. "
264 "They can be accessed by clicking their icons in the top right area. They "
265 "both work exactly the same as in the main calibre program. The search page "
266 "even allows you to construct search queries by clicking on "
267 "authors/tags/etc., just as you can using the Tag browser in the main "
268 "program."
269 msgstr "Calibre的用户应该熟悉书目的排序和搜索。可以通过单击右上角区域中的图标来访问它们。他们的工作方式与主程序calibre完全相同。搜索页面甚至允许您通过点击作者/标签等来构建搜索查询。就像在主程序calibre中使用标签浏览器一样。"
270
271 #: ../../../__w/calibre/calibre/manual/server.rst:176
272 msgid ""
273 "A much loved feature of the main program, :guilabel:`Virtual libraries` is "
274 "present in the server interface as well. Click the three vertical dots in "
275 "the top right corner to choose a Virtual library."
276 msgstr "主程序的一个备受喜爱的功能是:“虚拟书库”也出现在服务器界面中。单击右上角的三个垂直点以选择虚拟书库。"
277
278 #: ../../../__w/calibre/calibre/manual/server.rst:181
279 msgid "The book viewer"
280 msgstr "电子书阅读器"
281
282 #: ../../../__w/calibre/calibre/manual/server.rst:183
283 msgid ""
284 "You can read any book in your calibre library by simply tapping on it and "
285 "then tapping the :guilabel:`Read` button. The book viewer is very simple to "
286 "operate. You can both tap and swipe to turn pages. Swiping up/down skips "
287 "between chapters. Tapping the top quarter of the screen gets you the "
288 "detailed controls and viewer preferences."
289 msgstr "您只需点击书库中的任何书籍,然后点击“阅读”按钮即可阅读。图书阅读器操作非常简单。您可以点击和滑动翻页。上下滑动会跳过章节之间。点击屏幕的上四分之一可以获取详细的控件和阅读偏好设置。"
290
291 #: ../../../__w/calibre/calibre/manual/server.rst:189
292 msgid ""
293 "If you leave the Content server running, you can even open the same book on "
294 "multiple devices and it will remember your last read position. If it does "
295 "not you can force a sync by tapping in the top quarter and choosing "
296 ":guilabel:`Sync`."
297 msgstr "如果你让内容服务器继续运行,你甚至可以在多个设备上打开同一本书,它会记住你上次阅读的位置。如果没有,您可以通过点击上方四分之一区域并选择菜单:“同步”来强制同步。"
298
299 #: ../../../__w/calibre/calibre/manual/server.rst:195
300 msgid "Browser support"
301 msgstr "浏览器支持"
302
303 #: ../../../__w/calibre/calibre/manual/server.rst:197
304 msgid ""
305 "The new calibre server makes lots of use of advanced HTML 5 and CSS 3 "
306 "features. As such it requires an up-to-date browser to use. It has been "
307 "tested on Android Chrome and iOS Safari as well as Chrome and Firefox on the"
308 " desktop."
309 msgstr "新版本的calibre服务器充分利用了高级HTML5和CSS 3功能。因此,它需要使用最新的浏览器。它已经在Android Chrome和iOS Safari以及桌面上的Chrome和Firefox上进行了测试。"
310
311 #: ../../../__w/calibre/calibre/manual/server.rst:201
312 msgid ""
313 "The server is careful to use functionality that has either been already "
314 "standardised or is on the standards track. As such if it does not currently "
315 "work with your favorite browser, it probably will once that browser has "
316 "caught up."
317 msgstr "服务器正在谨慎使用已经标准化或正在进行标准化上的功能。因此,如果它目前无法正常与您喜爱的浏览器使用,那么一旦该浏览器功能赶上,它很可能会满足你的使用。"
318
319 #: ../../../__w/calibre/calibre/manual/server.rst:206
320 msgid ""
321 "If you are using a particularly old or limited browser or you don't like to "
322 "run JavaScript, you can use the *mobile* view, by simply adding ``/mobile`` "
323 "to the server address."
324 msgstr "如果您使用的是特别旧或受限的浏览器,或者您不喜欢运行Java脚本,您可以使用*手机*视图,只需在服务器地址后添加``/mobile``即可。"
325
326 #: ../../../__w/calibre/calibre/manual/server.rst:211
327 msgid ""
328 "On iOS, Apple allows only a single browser engine, so Firefox, Chrome and "
329 "Safari are all actually the same browser under the hood. The new server "
330 "interface requires iOS 10.3.2 or newer. On Android, the server has been "
331 "tested with Chrome version 58 and newer."
332 msgstr "在iOS上,苹果只允许使用一个浏览器引擎,因此Firefox、Chrome和Safari实际上都是同一个浏览器。新的服务器界面需要iOS 10.3.2或更新版本。在安卓系统上,该服务器已通过Chrome 58及更新版本的测试。"
333
334 #: ../../../__w/calibre/calibre/manual/server.rst:217
335 msgid "Enabling offline support"
336 msgstr "启用脱机支持"
337
338 #: ../../../__w/calibre/calibre/manual/server.rst:219
339 msgid ""
340 "The server has full support for offline mode, you can open a book and once "
341 "it is loaded, continue reading it offline. However, typical browsers require"
342 " the use of HTTPS connections to enable offline mode (service workers). So "
343 ":ref:`setup HTTPS support <cs_https_mode>` as described above. Scroll to the"
344 " bottom of the home page and you will see a message about the status of "
345 "offline mode."
346 msgstr "服务器已全面支持离线模式,您只需打开一本书,待其加载完成后,即可在离线状态下继续阅读。不过,大多数主流浏览器要求必须使用 HTTPS 连接才能启用离线模式。因此,请按照上文所述 :ref:`setup HTTPS support<cs_https_mode>`。滚动到主页底部,您将看到一条关于离线模式状态的信息。"
347
348 #: ../../../__w/calibre/calibre/manual/server.rst:226
349 msgid ""
350 "Alternately, you can open a book and keep the browser tab open. As long as "
351 "the tab stays open you can continue reading the book, even when offline."
352 msgstr "此外,您也可以打开一本书并保持浏览器标签页不关闭。只要该标签页一直处于打开状态,即使处于离线状态,您也可以继续阅读。"
353
354 #: ../../../__w/calibre/calibre/manual/server.rst:230
355 msgid "Managing user accounts from the command-line only"
356 msgstr "仅从命令行管理用户帐户"
357
358 #: ../../../__w/calibre/calibre/manual/server.rst:232
359 msgid ""
360 "The calibre program has a nice section in :guilabel:`Preferences` to allow "
361 "you to manage user accounts for the server. However, if you want to run the "
362 "standalone server and cannot run the main calibre program on the same "
363 "computer/user account, you can also manage users using just the command-"
364 "line."
365 msgstr "Calibre程序在中有一个很好的分部设计在菜单“首选项”,允许您管理服务器的用户帐户。但是,如果您想运行独立服务器,但无法在同一台计算机/用户帐户上运行calibre主程序,您也可以仅使用命令行管理用户。"
366
367 #: ../../../__w/calibre/calibre/manual/server.rst:237
368 msgid ""
369 "You can manage user accounts using the ``--manage-users`` option to the "
370 "standalone ``calibre-server`` program. Suppose you want to store the user "
371 "database in the folder ``/srv/calibre``, then you create it by running::"
372 msgstr "您可以使用独立的Calibre服务器程序的“--管理用户”选项来管理用户帐户。假设您希望将用户数据库存储在文件夹“/srv/calbre”中,然后通过运行以下命令来创建它:"
373
374 #: ../../../__w/calibre/calibre/manual/server.rst:244
375 msgid ""
376 "Just follow the prompts to create user accounts, set their permissions, etc."
377 " Once you are done, you can run the server as::"
378 msgstr "只需按照提示创建用户账户、设置权限等。完成后,您可以使用以下方式运行服务器::"
379
380 #: ../../../__w/calibre/calibre/manual/server.rst:249
381 msgid "It will use the user accounts you created in the previous step."
382 msgstr "它将使用您在上一步中创建的用户帐户。"
383
384 #: ../../../__w/calibre/calibre/manual/server.rst:253
385 msgid "Integrating the calibre Content server into other servers"
386 msgstr "将calibre内容服务器集成到其他服务器中"
387
388 #: ../../../__w/calibre/calibre/manual/server.rst:255
389 msgid ""
390 "Here, we will show you how to integrate the calibre Content server into "
391 "another server. The most common reason for this is to make use of SSL or to "
392 "serve the calibre library as part of a larger site. The basic technique is "
393 "to run the calibre server and set up a reverse proxy to it from the main "
394 "server."
395 msgstr "在这里,我们将为您展示如何将 Calibre 内容服务器集成到另一台服务器中。最常见的原因是利用 SSL 加密,或将 Calibre 书库作为大型网站的一个子模块来提供服务。其基本技术是:先运行 Calibre 服务器,然后从主服务器设置一个反向代理指向它。"
396
397 #: ../../../__w/calibre/calibre/manual/server.rst:260
398 msgid ""
399 "A reverse proxy is when your normal server accepts incoming requests and "
400 "passes them onto the calibre server. It then reads the response from the "
401 "calibre server and forwards it to the client. This means that you can simply"
402 " run the calibre server as normal without trying to integrate it closely "
403 "with your main server."
404 msgstr "反向代理是指普通服务器接受传入请求并将其传递到calibre服务器上。然后,它从calibre服务器读取响应并将其转发给客户端。这意味着您可以简单地正常运行calibre服务器,而无需尝试将其与主服务器紧密集成。"
405
406 #: ../../../__w/calibre/calibre/manual/server.rst:267
407 msgid "Using a full virtual host"
408 msgstr "使用完整的虚拟主机"
409
410 #: ../../../__w/calibre/calibre/manual/server.rst:269
411 msgid ""
412 "The simplest configuration is to dedicate a full virtual host to the calibre"
413 " server. In this case, run the calibre server as::"
414 msgstr "最简单的配置是将一个完整的虚拟主机专用于calibre服务器。在这种情况下,将calibre服务器运行为:"
415
416 #: ../../../__w/calibre/calibre/manual/server.rst:274
417 msgid ""
418 "Now setup the virtual host in your main server, for example, for nginx::"
419 msgstr "现在在主服务器中设置虚拟主机,例如nginx::"
420
421 #: ../../../__w/calibre/calibre/manual/server.rst:289
422 msgid "Or, for Apache::"
423 msgstr "或者,对于Apache:"
424
425 #: ../../../__w/calibre/calibre/manual/server.rst:304
426 msgid "Using a URL prefix"
427 msgstr "使用URL前缀"
428
429 #: ../../../__w/calibre/calibre/manual/server.rst:306
430 msgid ""
431 "If you do not want to dedicate a full virtual host to calibre, you can have "
432 "it use a URL prefix. Start the calibre server as::"
433 msgstr "如果你不想把一个完整的虚拟主机专用于calibre,你可以让它使用URL前缀。启动calibre服务器,如下所示:"
434
435 #: ../../../__w/calibre/calibre/manual/server.rst:311
436 msgid ""
437 "The key parameter here is ``--url-prefix /calibre``. This causes the Content"
438 " server to serve all URLs prefixed by ``/calibre``. To see this in action, "
439 "visit ``http://localhost:8080/calibre`` in your browser. You should see the "
440 "normal Content server website, but now it will run under ``/calibre``."
441 msgstr "这里的关键参数是“--url前缀/calibre”。这将导致内容服务器为所有前缀为“/calibre”的URL提供服务。要查看此操作,请访问“http://localhost:8080/calibre”在您的浏览器中。您应该可以看到普通的内容服务器网站,但现在它将在“/calibre”下运行。"
442
443 #: ../../../__w/calibre/calibre/manual/server.rst:313
444 msgid "With nginx, the required configuration is::"
445 msgstr "对于nginx,所需的配置是:"
446
447 #: ../../../__w/calibre/calibre/manual/server.rst:330
448 msgid ""
449 "For Apache, first enable the proxy modules in Apache, by adding the "
450 "following to :file:`httpd.conf`::"
451 msgstr "对于Apache,首先在Apache中启用代理模块,方法是将以下内容添加到文件“httpd.conf”:"
452
453 #: ../../../__w/calibre/calibre/manual/server.rst:335
454 msgid ""
455 "The exact technique for enabling the proxy modules will vary depending on "
456 "your Apache installation. Once you have the proxy modules enabled, add the "
457 "following rules to :file:`httpd.conf` (or if you are using virtual hosts to "
458 "the conf file for the virtual host in question)::"
459 msgstr "启用代理模块的确切技术会因Apache的安装而异。启用代理模块后,将以下规则添加到文件:“httpd.conf”(或者,如果您正在使用虚拟主机,则添加到相关虚拟主机的conf文件中):"
460
461 #: ../../../__w/calibre/calibre/manual/server.rst:342
462 msgid ""
463 "That's all, you will now be able to access the calibre Content server under "
464 "the ``/calibre`` URL in your main server. The above rules pass all requests "
465 "under ``/calibre`` to the calibre server running on port 8080 and thanks to "
466 "the ``--url-prefix`` option above, the calibre server handles them "
467 "transparently."
468 msgstr "仅此而已,您现在就可以访问主服务器中“/calibre”URL下的calibre内容服务器。上述规则将“/calibre”下的所有请求传递给运行在端口8080上的calibre服务器,并且由于上面的“--url前缀”选项,calible服务器透明地处理这些请求。"
469
470 #: ../../../__w/calibre/calibre/manual/server.rst:347
471 msgid ""
472 "When using a reverse proxy, you should tell the calibre Content server to "
473 "only listen on localhost, by using ``--listen-on 127.0.0.1``. That way, the "
474 "server will only listen for connections coming from the same computer, i.e. "
475 "from the reverse proxy."
476 msgstr "当使用反向代理时,您应该通过使用“--listen on 127.0.0.1”告诉calibre内容服务器只在本地服务器上侦听。这样,服务器将只侦听来自同一台计算机的连接,即来自反向代理的连接。"
477
478 #: ../../../__w/calibre/calibre/manual/server.rst:354
479 msgid ""
480 "If you have set up SSL for your main server, you should tell the calibre "
481 "server to use basic authentication instead of digest authentication, as it "
482 "is faster. To do so, pass the ``--auth-mode=basic`` option to ``calibre-"
483 "server``."
484 msgstr "如果您已经为主服务器设置了SSL,您应该告诉calibre服务器使用基本身份验证,而不是摘要身份验证,因为前者的速度更快。为此,请在运行 calibre-server 时添加 --auth-mode=basic 参数。"
485
486 #: ../../../__w/calibre/calibre/manual/server.rst:363
487 msgid "Creating a service for the calibre server on a modern Linux system"
488 msgstr "在现代Linux系统上为calibre服务器创建服务"
489
490 #: ../../../__w/calibre/calibre/manual/server.rst:365
491 msgid ""
492 "You can easily create a service to run calibre at boot on a modern (`systemd"
493 " <https://www.freedesktop.org/wiki/Software/systemd/>`_) based Linux system."
494 " Just create the file ``/etc/systemd/system/calibre-server.service`` with "
495 "the contents shown below::"
496 msgstr "您可以很容易地创建一个服务,以便在基于现代Linux系统(`systemd <https://www.freedesktop.org/wiki/Software/systemd/>`_)的启动时运行calibre。只需创建内容如下所示的文件\"(`systemd <https://www.freedesktop.org/wiki/Software/systemd/>`_)\":"
497
498 #: ../../../__w/calibre/calibre/manual/server.rst:384
499 msgid ""
500 "Change ``mylinuxuser`` and ``mylinuxgroup`` to whatever user and group you "
501 "want the server to run as. This should be the same user and group that own "
502 "the files in the calibre library folder. Note that it is generally not a "
503 "good idea to run the server as root. Also change the path to the calibre "
504 "library folder to suit your system. You can add multiple libraries if "
505 "needed. See the help for the ``calibre-server`` command."
506 msgstr "将“mylinxuser”和“mylinuxgroup”更改为您希望服务器以何种用户和组的身份运行。这应该是拥有calibre书库文件夹中文件的同一用户和组。请注意,以root用户身份运行服务器通常不是一个好主意。同时更改Calibre书库文件夹的路径以适合您的系统。如果需要,可以添加多个库。请参阅“calibre服务器”命令的帮助。"
507
508 #: ../../../__w/calibre/calibre/manual/server.rst:391
509 msgid "Now run::"
510 msgstr "现在运行:"
511
512 #: ../../../__w/calibre/calibre/manual/server.rst:395
513 msgid "to start the server. Check its status with::"
514 msgstr "来启动服务器。使用以下命令检查其状态:"
515
516 #: ../../../__w/calibre/calibre/manual/server.rst:399
517 msgid "To make it start at boot, run::"
518 msgstr "要使其在引导时启动,请运行::"
519
520 #: ../../../__w/calibre/calibre/manual/server.rst:405
521 msgid ""
522 "The calibre server *does not* need a running X server, but it does need the "
523 "X libraries installed as some components it uses link against them."
524 msgstr "calibre服务器确实不需要运行X服务器,但它确实需要安装X库,因为它使用的某些组件会与它们链接。"
525
526 #: ../../../__w/calibre/calibre/manual/server.rst:410
527 msgid ""
528 "The calibre server also supports systemd socket activation, so you can use "
529 "that, if needed, as well."
530 msgstr "calibre服务器还支持systemd套接字激活,因此如果需要,您也可以使用它。"