mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Mark strings for translation
This commit is contained in:
parent
5bf5375f1c
commit
c3b1b9fba9
@ -21,109 +21,109 @@ class Choices(frozenset):
|
||||
|
||||
raw_options = (
|
||||
|
||||
'Path to the SSL certificate file',
|
||||
_('Path to the SSL certificate file'),
|
||||
'ssl_certfile', None,
|
||||
None,
|
||||
|
||||
'Path to the SSL private key file',
|
||||
_('Path to the SSL private key file'),
|
||||
'ssl_keyfile', None,
|
||||
None,
|
||||
|
||||
'Time (in seconds) after which an idle connection is closed',
|
||||
_('Time (in seconds) after which an idle connection is closed'),
|
||||
'timeout', 120.0,
|
||||
None,
|
||||
|
||||
'Total time in seconds to wait for clean shutdown',
|
||||
_('Total time in seconds to wait for clean shutdown'),
|
||||
'shutdown_timeout', 5.0,
|
||||
None,
|
||||
|
||||
'Enable/disable socket pre-allocation, for example, with systemd socket activation',
|
||||
_('Enable/disable socket pre-allocation, for example, with systemd socket activation'),
|
||||
'allow_socket_preallocation', True,
|
||||
None,
|
||||
|
||||
'Max. size of single HTTP header (in KB)',
|
||||
_('Max. size of single HTTP header (in KB)'),
|
||||
'max_header_line_size', 8.0,
|
||||
None,
|
||||
|
||||
'Max. allowed size for files uploaded to the server (in MB)',
|
||||
_('Max. allowed size for files uploaded to the server (in MB)'),
|
||||
'max_request_body_size', 500.0,
|
||||
None,
|
||||
|
||||
'Minimum size for which responses use data compression (in bytes)',
|
||||
_('Minimum size for which responses use data compression (in bytes)'),
|
||||
'compress_min_size', 1024,
|
||||
None,
|
||||
|
||||
'Number of worker threads to use to process requests',
|
||||
_('Number of worker threads to use to process requests'),
|
||||
'worker_count', 10,
|
||||
None,
|
||||
|
||||
'The port on which to listen for connections',
|
||||
_('The port on which to listen for connections'),
|
||||
'port', 8080,
|
||||
None,
|
||||
|
||||
'A prefix to prepend to all URLs',
|
||||
_('A prefix to prepend to all URLs'),
|
||||
'url_prefix', None,
|
||||
'Useful if you wish to run this server behind a reverse proxy.',
|
||||
_('Useful if you wish to run this server behind a reverse proxy.'),
|
||||
|
||||
'Advertise OPDS feeds via BonJour',
|
||||
_('Advertise OPDS feeds via BonJour'),
|
||||
'use_bonjour', True,
|
||||
'Advertise the OPDS feeds via the BonJour service, so that OPDS based'
|
||||
' reading apps can detect and connect to the server automatically.',
|
||||
_('Advertise the OPDS feeds via the BonJour service, so that OPDS based'
|
||||
' reading apps can detect and connect to the server automatically.'),
|
||||
|
||||
'Maximum number of books in OPDS feeds',
|
||||
_('Maximum number of books in OPDS feeds'),
|
||||
'max_opds_items', 30,
|
||||
'The maximum number of books that the server will return in a single'
|
||||
' OPDS acquisition feed.',
|
||||
_('The maximum number of books that the server will return in a single'
|
||||
' OPDS acquisition feed.'),
|
||||
|
||||
'Maximum number of ungrouped items in OPDS feeds',
|
||||
_('Maximum number of ungrouped items in OPDS feeds'),
|
||||
'max_opds_ungrouped_items', 100,
|
||||
'Group items in categories such as author/tags by first letter when'
|
||||
' there are more than this number of items. Set to zero to disable.',
|
||||
_('Group items in categories such as author/tags by first letter when'
|
||||
' there are more than this number of items. Set to zero to disable.'),
|
||||
|
||||
'The interface on which to listen for connections',
|
||||
_('The interface on which to listen for connections'),
|
||||
'listen_on', '0.0.0.0',
|
||||
'The default is to listen on all available interfaces. You can change this to, for'
|
||||
_('The default is to listen on all available interfaces. You can change this to, for'
|
||||
' example, "127.0.0.1" to only listen for connections from the local machine, or'
|
||||
' to "::" to listen to all incoming IPv6 and IPv4 connections.',
|
||||
' to "::" to listen to all incoming IPv6 and IPv4 connections.'),
|
||||
|
||||
'Fallback to auto-detected interface',
|
||||
_('Fallback to auto-detected interface'),
|
||||
'fallback_to_detected_interface', True,
|
||||
'If for some reason the server is unable to bind to the interface specified in'
|
||||
_('If for some reason the server is unable to bind to the interface specified in'
|
||||
' the listen_on option, then it will try to detect an interface that connects'
|
||||
' to the outside world and bind to that.',
|
||||
' to the outside world and bind to that.'),
|
||||
|
||||
'Enable/disable zero copy file transfers for increased performance',
|
||||
_('Enable/disable zero copy file transfers for increased performance'),
|
||||
'use_sendfile', True,
|
||||
'This will use zero-copy in-kernel transfers when sending files over the network,'
|
||||
_('This will use zero-copy in-kernel transfers when sending files over the network,'
|
||||
' increasing performance. However, it can cause corrupted file transfers on some'
|
||||
' broken filesystems. If you experience corrupted file transfers, turn it off.',
|
||||
' broken filesystems. If you experience corrupted file transfers, turn it off.'),
|
||||
|
||||
'Max. log file size (in MB)',
|
||||
_('Max. log file size (in MB)'),
|
||||
'max_log_size', 20,
|
||||
'The maximum size of log files, generated by the server. When the log becomes larger'
|
||||
' than this size, it is automatically rotated. Set to zero to disable log rotation.',
|
||||
_('The maximum size of log files, generated by the server. When the log becomes larger'
|
||||
' than this size, it is automatically rotated. Set to zero to disable log rotation.'),
|
||||
|
||||
'Enable/disable logging of not found http requests',
|
||||
_('Enable/disable logging of not found http requests'),
|
||||
'log_not_found', True,
|
||||
'By default, the server logs all HTTP requests for resources that are not found.'
|
||||
_('By default, the server logs all HTTP requests for resources that are not found.'
|
||||
' Tis can generate a lot of log spam, if your server is targeted by bots.'
|
||||
' Use this option to turn it off.',
|
||||
' Use this option to turn it off.'),
|
||||
|
||||
'Enable/disable password based authentication to access the server',
|
||||
_('Enable/disable password based authentication to access the server'),
|
||||
'auth', False,
|
||||
'By default, the server is unrestricted, allowing anyone to access it. You can'
|
||||
' restrict access to predefined users with this option.',
|
||||
_('By default, the server is unrestricted, allowing anyone to access it. You can'
|
||||
' restrict access to predefined users with this option.'),
|
||||
|
||||
'Path to user database',
|
||||
_('Path to user database'),
|
||||
'userdb', None,
|
||||
'Path to a file in which to store the user and password information. By default a'
|
||||
' file in the calibre configuration directory is used.',
|
||||
_('Path to a file in which to store the user and password information. By default a'
|
||||
' file in the calibre configuration directory is used.'),
|
||||
|
||||
'Choose the type of authentication used',
|
||||
_('Choose the type of authentication used'),
|
||||
'auth_mode', Choices('auto', 'basic', 'digest'),
|
||||
'Set the HTTP authentication mode used by the server. Set to "basic" is you are'
|
||||
_('Set the HTTP authentication mode used by the server. Set to "basic" is you are'
|
||||
' putting this server behind an SSL proxy. Otherwise, leave it as "auto", which'
|
||||
' will use "basic" if SSL is configured otherwise it will use "digest".',
|
||||
' will use "basic" if SSL is configured otherwise it will use "digest".'),
|
||||
)
|
||||
assert len(raw_options) % 4 == 0
|
||||
# TODO: Mark these strings for translation, once you finalize the option set
|
||||
|
Loading…
x
Reference in New Issue
Block a user