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 = (
|
raw_options = (
|
||||||
|
|
||||||
'Path to the SSL certificate file',
|
_('Path to the SSL certificate file'),
|
||||||
'ssl_certfile', None,
|
'ssl_certfile', None,
|
||||||
None,
|
None,
|
||||||
|
|
||||||
'Path to the SSL private key file',
|
_('Path to the SSL private key file'),
|
||||||
'ssl_keyfile', None,
|
'ssl_keyfile', None,
|
||||||
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,
|
'timeout', 120.0,
|
||||||
None,
|
None,
|
||||||
|
|
||||||
'Total time in seconds to wait for clean shutdown',
|
_('Total time in seconds to wait for clean shutdown'),
|
||||||
'shutdown_timeout', 5.0,
|
'shutdown_timeout', 5.0,
|
||||||
None,
|
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,
|
'allow_socket_preallocation', True,
|
||||||
None,
|
None,
|
||||||
|
|
||||||
'Max. size of single HTTP header (in KB)',
|
_('Max. size of single HTTP header (in KB)'),
|
||||||
'max_header_line_size', 8.0,
|
'max_header_line_size', 8.0,
|
||||||
None,
|
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,
|
'max_request_body_size', 500.0,
|
||||||
None,
|
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,
|
'compress_min_size', 1024,
|
||||||
None,
|
None,
|
||||||
|
|
||||||
'Number of worker threads to use to process requests',
|
_('Number of worker threads to use to process requests'),
|
||||||
'worker_count', 10,
|
'worker_count', 10,
|
||||||
None,
|
None,
|
||||||
|
|
||||||
'The port on which to listen for connections',
|
_('The port on which to listen for connections'),
|
||||||
'port', 8080,
|
'port', 8080,
|
||||||
None,
|
None,
|
||||||
|
|
||||||
'A prefix to prepend to all URLs',
|
_('A prefix to prepend to all URLs'),
|
||||||
'url_prefix', None,
|
'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,
|
'use_bonjour', True,
|
||||||
'Advertise the OPDS feeds via the BonJour service, so that OPDS based'
|
_('Advertise the OPDS feeds via the BonJour service, so that OPDS based'
|
||||||
' reading apps can detect and connect to the server automatically.',
|
' 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,
|
'max_opds_items', 30,
|
||||||
'The maximum number of books that the server will return in a single'
|
_('The maximum number of books that the server will return in a single'
|
||||||
' OPDS acquisition feed.',
|
' OPDS acquisition feed.'),
|
||||||
|
|
||||||
'Maximum number of ungrouped items in OPDS feeds',
|
_('Maximum number of ungrouped items in OPDS feeds'),
|
||||||
'max_opds_ungrouped_items', 100,
|
'max_opds_ungrouped_items', 100,
|
||||||
'Group items in categories such as author/tags by first letter when'
|
_('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.',
|
' 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',
|
'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'
|
' 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,
|
'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'
|
' 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,
|
'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'
|
' 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,
|
'max_log_size', 20,
|
||||||
'The maximum size of log files, generated by the server. When the log becomes larger'
|
_('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.',
|
' 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,
|
'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.'
|
' 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,
|
'auth', False,
|
||||||
'By default, the server is unrestricted, allowing anyone to access it. You can'
|
_('By default, the server is unrestricted, allowing anyone to access it. You can'
|
||||||
' restrict access to predefined users with this option.',
|
' restrict access to predefined users with this option.'),
|
||||||
|
|
||||||
'Path to user database',
|
_('Path to user database'),
|
||||||
'userdb', None,
|
'userdb', None,
|
||||||
'Path to a file in which to store the user and password information. By default a'
|
_('Path to a file in which to store the user and password information. By default a'
|
||||||
' file in the calibre configuration directory is used.',
|
' 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'),
|
'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'
|
' 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
|
assert len(raw_options) % 4 == 0
|
||||||
# TODO: Mark these strings for translation, once you finalize the option set
|
# TODO: Mark these strings for translation, once you finalize the option set
|
||||||
|
Loading…
x
Reference in New Issue
Block a user