Update valid options and strings in TorrentSelector

This commit is contained in:
Kai Huuhko 2016-08-16 12:38:36 +03:00
parent 8431b94e7f
commit 194b1815c8
2 changed files with 322 additions and 404 deletions

View File

@ -59,20 +59,15 @@ class TorrentSelector(StandardWindow):
names = {
1: _("Seed Mode"),
2: "Override Resume Data",
4: "Upload Mode",
8: _("Share Mode"),
16: _("Apply IP Filter"),
32: "Start Paused",
64: "Auto Managed",
32: _("Start Paused"),
128: _("Duplicate Is Error"),
256: "Merge Resume Trackers",
512: "Updates Subscribe",
1024: _("Super Seeding"),
2048: _("Sequential Download"),
4096: _("Use Resume Save Path"),
}
tooltips = {
1: utf8_to_markup(_(
@ -90,35 +85,6 @@ Setting Seed Mode on a torrent without metadata (a .torrent
file) is a no-op and will be ignored.'''
)),
2: utf8_to_markup(
'''If Override Resume Data is set, flags set for this torrent in this
add_torrent_params object will take precedence over whatever states
are saved in the resume data. For instance, the paused,
auto_managed, sequential_download, seed_mode, super_seeding,
max_uploads, max_connections, upload_limit and download_limit are
all affected by this flag. The intention of this flag is to have
any field in add_torrent_params configuring the torrent override
the corresponding configuration from the resume file, with the one
exception of save resume data, which has its own flag (for historic
reasons).'''
),
4: utf8_to_markup(
'''If Upload Mode is set, the torrent will be initialized in upload-
mode, which means it will not make any piece requests. This state
is typically entered on disk I/O errors, and if the torrent is also
auto managed, it will be taken out of this state periodically. This
mode can be used to avoid race conditions when adjusting priorities
of pieces before allowing the torrent to start downloading.
If the torrent is auto-managed, the torrent will eventually be
taken out of upload-mode, regardless of how it got there. If it's
important to manually control when the torrent leaves upload mode,
don't make it auto managed.'''
),
8: utf8_to_markup(_(
'''Determines if the torrent should be added in share mode or not.
@ -149,7 +115,7 @@ torrents needs to be excempt for some reason, being an auto-update
torrent for instance.'''
)),
32: utf8_to_markup(
32: utf8_to_markup(_(
'''Specifies whether or not the torrent is to be started in a paused
state. I.e. it won't connect to the tracker or any of the peers
@ -157,40 +123,7 @@ until it's resumed. This is typically a good way of avoiding race
conditions when setting configuration options on torrents before
starting them.'''
),
64: utf8_to_markup(
'''If the torrent is auto-managed, the torrent may be resumed at any
point, regardless of how it paused. If it's important to manually
control when the torrent is paused and resumed, don't make it auto
managed.
If auto-managed, the torrent will be queued, started and seeded
automatically by libtorrent. When this is set, the torrent should
also be started as paused. The default queue order is the order the
torrents were added. They are all downloaded in that order. For
more details, see queuing.
If you pass in resume data, the auto-managed state of the torrent
when the resume data was saved will override the auto-managed state
you pass in here. You can override this by setting
Override Resume Data.'''
),
# 128: _(""),
256: utf8_to_markup(
'''Defaults to off and specifies whether tracker URLs loaded from
resume data should be added to the trackers in the torrent or
replace the trackers.'''
),
512: utf8_to_markup(
'''On by default and means that this torrent will be part of state
updates when calling post_torrent_updates().'''
),
)),
1024: utf8_to_markup(_(
'''Sets the torrent into super seeding mode. If the torrent is not a
@ -201,14 +134,6 @@ seed, this flag has no effect.'''
'''Sets the sequential download state for the torrent.'''
)),
4096: utf8_to_markup(_(
'''If this flag is set, the save path from the resume data file,
if present, is honored. This defaults to not being set, in
which case the save_path specified in add_torrent_params is
always used.'''
)),
}
@ -312,16 +237,8 @@ always used.'''
def option_flag_cb(c, flag):
self.add_dict["flags"] = self.add_dict["flags"] ^ flag
for name, flag in add_torrent_params_flags_t.names.items():
if (
name == "flag_auto_managed" or
name == "flag_update_subscribe" or
name == "flag_override_resume_data" or
name == "flag_merge_resume_trackers" or
name == "flag_paused" or
name == "flag_upload_mode" or
name == "flag_use_resume_save_path"
):
for name, flag in sorted(add_torrent_params_flags_t.names.items()):
if not int(flag) in self.names.keys():
continue
c = Check(
opt_box, size_hint_align=(0.0, 0.5),

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-08-04 18:18+0300\n"
"POT-Creation-Date: 2016-08-16 12:38+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,285 +17,6 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../epour/gui/Widgets.py:130
msgid "Close"
msgstr ""
#: ../epour/gui/Widgets.py:143
msgid "OK"
msgstr ""
#: ../epour/gui/Widgets.py:152
msgid "Confirm exit"
msgstr ""
#: ../epour/gui/Widgets.py:153
msgid "Are you sure you wish to exit Epour?"
msgstr ""
#: ../epour/gui/Widgets.py:155
msgid "Yes"
msgstr ""
#: ../epour/gui/Widgets.py:159
msgid "No"
msgstr ""
#: ../epour/gui/__init__.py:91
msgid "Add torrent"
msgstr ""
#: ../epour/gui/__init__.py:103
msgid "Pause Session"
msgstr ""
#: ../epour/gui/__init__.py:106
msgid "Resume Session"
msgstr ""
#: ../epour/gui/__init__.py:121
msgid "Preferences"
msgstr ""
#: ../epour/gui/__init__.py:124
msgid "General"
msgstr ""
#: ../epour/gui/__init__.py:127
msgid "Proxy"
msgstr ""
#: ../epour/gui/__init__.py:130 ../epour/gui/__init__.py:340
msgid "Session"
msgstr ""
#: ../epour/gui/__init__.py:133
msgid "Exit"
msgstr ""
#: ../epour/gui/__init__.py:240
msgid "Torrent {} has finished downloading."
msgstr ""
#: ../epour/gui/__init__.py:371
msgid "Peer connections"
msgstr ""
#: ../epour/gui/__init__.py:379
msgid "Upload slots"
msgstr ""
#: ../epour/gui/__init__.py:388
msgid "Listening"
msgstr ""
#: ../epour/gui/__init__.py:432 ../epour/gui/TorrentProps.py:539
msgid "Queued"
msgstr ""
#: ../epour/gui/__init__.py:432 ../epour/gui/TorrentProps.py:539
msgid "Checking"
msgstr ""
#: ../epour/gui/__init__.py:432 ../epour/gui/TorrentProps.py:539
msgid "Downloading metadata"
msgstr ""
#: ../epour/gui/__init__.py:433 ../epour/gui/TorrentProps.py:539
msgid "Downloading"
msgstr ""
#: ../epour/gui/__init__.py:433 ../epour/gui/TorrentProps.py:540
msgid "Finished"
msgstr ""
#: ../epour/gui/__init__.py:433 ../epour/gui/TorrentProps.py:540
msgid "Seeding"
msgstr ""
#: ../epour/gui/__init__.py:433 ../epour/gui/TorrentProps.py:540
msgid "Allocating"
msgstr ""
#: ../epour/gui/__init__.py:434 ../epour/gui/TorrentProps.py:540
msgid "Checking resume data"
msgstr ""
#: ../epour/gui/__init__.py:448
msgid "Invalid torrent"
msgstr ""
#: ../epour/gui/__init__.py:459
#, python-brace-format
msgid "{0:.0%} complete, ETA: {1} (Down: {2}/s Up: {3}/s Queue pos: {4})"
msgstr ""
#: ../epour/gui/__init__.py:538
msgid "Resume"
msgstr ""
#: ../epour/gui/__init__.py:538
msgid "Pause"
msgstr ""
#: ../epour/gui/__init__.py:543
msgid "Queue"
msgstr ""
#: ../epour/gui/__init__.py:545
msgid "Up"
msgstr ""
#: ../epour/gui/__init__.py:548
msgid "Down"
msgstr ""
#: ../epour/gui/__init__.py:549
msgid "Top"
msgstr ""
#: ../epour/gui/__init__.py:551
msgid "Bottom"
msgstr ""
#: ../epour/gui/__init__.py:553
msgid "Remove torrent"
msgstr ""
#: ../epour/gui/__init__.py:556
msgid "and data files"
msgstr ""
#: ../epour/gui/__init__.py:560
msgid "Force reannounce"
msgstr ""
#: ../epour/gui/__init__.py:571
msgid "Force DHT reannounce"
msgstr ""
#: ../epour/gui/__init__.py:574
msgid "Scrape tracker"
msgstr ""
#: ../epour/gui/__init__.py:582
msgid "Force re-check"
msgstr ""
#: ../epour/gui/__init__.py:596
msgid "Torrent properties"
msgstr ""
#: ../epour/gui/__init__.py:632
msgid "Time when added"
msgstr ""
#: ../epour/gui/__init__.py:633
msgid "Time when completed"
msgstr ""
#: ../epour/gui/__init__.py:634
msgid "All time downloaded"
msgstr ""
#: ../epour/gui/__init__.py:635
msgid "All time uploaded"
msgstr ""
#: ../epour/gui/__init__.py:636
msgid "Total wanted done"
msgstr ""
#: ../epour/gui/__init__.py:637
msgid "Total wanted"
msgstr ""
#: ../epour/gui/__init__.py:638
msgid "Total downloaded this session"
msgstr ""
#: ../epour/gui/__init__.py:640
msgid "Total uploaded this session"
msgstr ""
#: ../epour/gui/__init__.py:641
msgid "Total failed"
msgstr ""
#: ../epour/gui/__init__.py:642
msgid "Number of seeds"
msgstr ""
#: ../epour/gui/__init__.py:643
msgid "Number of peers"
msgstr ""
#: ../epour/gui/__init__.py:672 ../epour/gui/__init__.py:715
msgid "N/A"
msgstr ""
#: ../epour/gui/__init__.py:695
#, python-format
msgid "Pieces (scaled 1:%d)"
msgstr ""
#: ../epour/gui/TorrentProps.py:90
msgid "Enable/disable file download"
msgstr ""
#: ../epour/gui/TorrentProps.py:124
msgid "Invalid torrent handle."
msgstr ""
#: ../epour/gui/TorrentProps.py:149
msgid "Torrent info"
msgstr ""
#: ../epour/gui/TorrentProps.py:157
msgid "Torrent settings"
msgstr ""
#: ../epour/gui/TorrentProps.py:165
msgid "Torrent status"
msgstr ""
#: ../epour/gui/TorrentProps.py:174
msgid "Magnet URI"
msgstr ""
#: ../epour/gui/TorrentProps.py:182
msgid "Copy"
msgstr ""
#: ../epour/gui/TorrentProps.py:209
#, python-format
msgid "Epour - Files for torrent: %s"
msgstr ""
#: ../epour/gui/TorrentProps.py:251
msgid "Select all"
msgstr ""
#: ../epour/gui/TorrentProps.py:255
msgid "Select none"
msgstr ""
#: ../epour/gui/TorrentProps.py:394
msgid "Private"
msgstr ""
#: ../epour/gui/TorrentProps.py:445
msgid "Storage path"
msgstr ""
#: ../epour/gui/TorrentProps.py:451
msgid "Select"
msgstr ""
#: ../epour/gui/TorrentProps.py:503
msgid "disabled"
msgstr ""
#: ../epour/gui/Preferences.py:97
msgid "Epour General Preferences"
msgstr ""
@ -409,35 +130,314 @@ msgstr ""
msgid "Epour Session Preferences"
msgstr ""
#: ../epour/gui/TorrentProps.py:90
msgid "Enable/disable file download"
msgstr ""
#: ../epour/gui/TorrentProps.py:124
msgid "Invalid torrent handle."
msgstr ""
#: ../epour/gui/TorrentProps.py:149
msgid "Torrent info"
msgstr ""
#: ../epour/gui/TorrentProps.py:157
msgid "Torrent settings"
msgstr ""
#: ../epour/gui/TorrentProps.py:165
msgid "Torrent status"
msgstr ""
#: ../epour/gui/TorrentProps.py:174
msgid "Magnet URI"
msgstr ""
#: ../epour/gui/TorrentProps.py:182
msgid "Copy"
msgstr ""
#: ../epour/gui/TorrentProps.py:209
#, python-format
msgid "Epour - Files for torrent: %s"
msgstr ""
#: ../epour/gui/TorrentProps.py:251
msgid "Select all"
msgstr ""
#: ../epour/gui/TorrentProps.py:255
msgid "Select none"
msgstr ""
#: ../epour/gui/TorrentProps.py:394
msgid "Private"
msgstr ""
#: ../epour/gui/TorrentProps.py:445
msgid "Storage path"
msgstr ""
#: ../epour/gui/TorrentProps.py:451
msgid "Select"
msgstr ""
#: ../epour/gui/TorrentProps.py:503
msgid "disabled"
msgstr ""
#: ../epour/gui/TorrentProps.py:539 ../epour/gui/__init__.py:440
msgid "Queued"
msgstr ""
#: ../epour/gui/TorrentProps.py:539 ../epour/gui/__init__.py:440
msgid "Checking"
msgstr ""
#: ../epour/gui/TorrentProps.py:539 ../epour/gui/__init__.py:440
msgid "Downloading metadata"
msgstr ""
#: ../epour/gui/TorrentProps.py:539 ../epour/gui/__init__.py:441
msgid "Downloading"
msgstr ""
#: ../epour/gui/TorrentProps.py:540 ../epour/gui/__init__.py:441
msgid "Finished"
msgstr ""
#: ../epour/gui/TorrentProps.py:540 ../epour/gui/__init__.py:441
msgid "Seeding"
msgstr ""
#: ../epour/gui/TorrentProps.py:540 ../epour/gui/__init__.py:441
msgid "Allocating"
msgstr ""
#: ../epour/gui/TorrentProps.py:540 ../epour/gui/__init__.py:442
msgid "Checking resume data"
msgstr ""
#: ../epour/gui/Widgets.py:130
msgid "Close"
msgstr ""
#: ../epour/gui/Widgets.py:143
msgid "OK"
msgstr ""
#: ../epour/gui/Widgets.py:152
msgid "Confirm exit"
msgstr ""
#: ../epour/gui/Widgets.py:153
msgid "Are you sure you wish to exit Epour?"
msgstr ""
#: ../epour/gui/Widgets.py:155
msgid "Yes"
msgstr ""
#: ../epour/gui/Widgets.py:159
msgid "No"
msgstr ""
#: ../epour/gui/__init__.py:91
msgid "Add torrent"
msgstr ""
#: ../epour/gui/__init__.py:103
msgid "Pause Session"
msgstr ""
#: ../epour/gui/__init__.py:106
msgid "Resume Session"
msgstr ""
#: ../epour/gui/__init__.py:121
msgid "Preferences"
msgstr ""
#: ../epour/gui/__init__.py:124
msgid "General"
msgstr ""
#: ../epour/gui/__init__.py:127
msgid "Proxy"
msgstr ""
#: ../epour/gui/__init__.py:130 ../epour/gui/__init__.py:348
msgid "Session"
msgstr ""
#: ../epour/gui/__init__.py:133
msgid "Exit"
msgstr ""
#: ../epour/gui/__init__.py:248
msgid "Torrent {} has finished downloading."
msgstr ""
#: ../epour/gui/__init__.py:379
msgid "Peer connections"
msgstr ""
#: ../epour/gui/__init__.py:387
msgid "Upload slots"
msgstr ""
#: ../epour/gui/__init__.py:396
msgid "Listening"
msgstr ""
#: ../epour/gui/__init__.py:456
msgid "Invalid torrent"
msgstr ""
#: ../epour/gui/__init__.py:467
#, python-brace-format
msgid "{0:.0%} complete, ETA: {1} (Down: {2}/s Up: {3}/s Queue pos: {4})"
msgstr ""
#: ../epour/gui/__init__.py:546
msgid "Resume"
msgstr ""
#: ../epour/gui/__init__.py:546
msgid "Pause"
msgstr ""
#: ../epour/gui/__init__.py:551
msgid "Queue"
msgstr ""
#: ../epour/gui/__init__.py:553
msgid "Up"
msgstr ""
#: ../epour/gui/__init__.py:555
msgid "Down"
msgstr ""
#: ../epour/gui/__init__.py:557
msgid "Top"
msgstr ""
#: ../epour/gui/__init__.py:559
msgid "Bottom"
msgstr ""
#: ../epour/gui/__init__.py:561
msgid "Remove torrent"
msgstr ""
#: ../epour/gui/__init__.py:564
msgid "and data files"
msgstr ""
#: ../epour/gui/__init__.py:568
msgid "Force reannounce"
msgstr ""
#: ../epour/gui/__init__.py:579
msgid "Force DHT reannounce"
msgstr ""
#: ../epour/gui/__init__.py:582
msgid "Scrape tracker"
msgstr ""
#: ../epour/gui/__init__.py:590
msgid "Force re-check"
msgstr ""
#: ../epour/gui/__init__.py:604
msgid "Torrent properties"
msgstr ""
#: ../epour/gui/__init__.py:640
msgid "Time when added"
msgstr ""
#: ../epour/gui/__init__.py:641
msgid "Time when completed"
msgstr ""
#: ../epour/gui/__init__.py:642
msgid "All time downloaded"
msgstr ""
#: ../epour/gui/__init__.py:643
msgid "All time uploaded"
msgstr ""
#: ../epour/gui/__init__.py:644
msgid "Total wanted done"
msgstr ""
#: ../epour/gui/__init__.py:645
msgid "Total wanted"
msgstr ""
#: ../epour/gui/__init__.py:646
msgid "Total downloaded this session"
msgstr ""
#: ../epour/gui/__init__.py:648
msgid "Total uploaded this session"
msgstr ""
#: ../epour/gui/__init__.py:649
msgid "Total failed"
msgstr ""
#: ../epour/gui/__init__.py:650
msgid "Number of seeds"
msgstr ""
#: ../epour/gui/__init__.py:651
msgid "Number of peers"
msgstr ""
#: ../epour/gui/__init__.py:680 ../epour/gui/__init__.py:723
msgid "N/A"
msgstr ""
#: ../epour/gui/__init__.py:703
#, python-format
msgid "Pieces (scaled 1:%d)"
msgstr ""
#: ../epour/gui/TorrentSelector.py:61
msgid "Seed Mode"
msgstr ""
#: ../epour/gui/TorrentSelector.py:64
#: ../epour/gui/TorrentSelector.py:62
msgid "Share Mode"
msgstr ""
#: ../epour/gui/TorrentSelector.py:65
#: ../epour/gui/TorrentSelector.py:63
msgid "Apply IP Filter"
msgstr ""
#: ../epour/gui/TorrentSelector.py:68
#: ../epour/gui/TorrentSelector.py:64
msgid "Start Paused"
msgstr ""
#: ../epour/gui/TorrentSelector.py:65
msgid "Duplicate Is Error"
msgstr ""
#: ../epour/gui/TorrentSelector.py:71
#: ../epour/gui/TorrentSelector.py:66
msgid "Super Seeding"
msgstr ""
#: ../epour/gui/TorrentSelector.py:72
#: ../epour/gui/TorrentSelector.py:67
msgid "Sequential Download"
msgstr ""
#: ../epour/gui/TorrentSelector.py:73
msgid "Use Resume Save Path"
msgstr ""
#: ../epour/gui/TorrentSelector.py:79
#: ../epour/gui/TorrentSelector.py:74
msgid ""
"If Seed Mode is set, Epour will assume that all files are\n"
"present for this torrent and that they all match the hashes in the\n"
@ -453,7 +453,7 @@ msgid ""
"file) is a no-op and will be ignored."
msgstr ""
#: ../epour/gui/TorrentSelector.py:124
#: ../epour/gui/TorrentSelector.py:90
#, python-format
msgid ""
"Determines if the torrent should be added in share mode or not.\n"
@ -475,7 +475,7 @@ msgid ""
"The share mode has one setting, the share ratio target."
msgstr ""
#: ../epour/gui/TorrentSelector.py:145
#: ../epour/gui/TorrentSelector.py:111
msgid ""
"Determines if the IP filter should apply to this torrent or not. By\n"
"default all torrents are subject to filtering by the IP filter\n"
@ -484,73 +484,74 @@ msgid ""
"torrent for instance."
msgstr ""
#: ../epour/gui/TorrentSelector.py:196
#: ../epour/gui/TorrentSelector.py:120
msgid ""
"Specifies whether or not the torrent is to be started in a paused\n"
"state. I.e. it won't connect to the tracker or any of the peers\n"
"until it's resumed. This is typically a good way of avoiding race\n"
"conditions when setting configuration options on torrents before\n"
"starting them."
msgstr ""
#: ../epour/gui/TorrentSelector.py:129
msgid ""
"Sets the torrent into super seeding mode. If the torrent is not a\n"
"seed, this flag has no effect."
msgstr ""
#: ../epour/gui/TorrentSelector.py:202
#: ../epour/gui/TorrentSelector.py:135
msgid "Sets the sequential download state for the torrent."
msgstr ""
#: ../epour/gui/TorrentSelector.py:207
msgid ""
"If this flag is set, the save path from the resume data file,\n"
"if present, is honored. This defaults to not being set, in\n"
"which case the save_path specified in add_torrent_params is\n"
"always used."
msgstr ""
#: ../epour/gui/TorrentSelector.py:217
#: ../epour/gui/TorrentSelector.py:142
msgid "Add Torrent"
msgstr ""
#: ../epour/gui/TorrentSelector.py:243
#: ../epour/gui/TorrentSelector.py:168
msgid "Enter torrent file path / magnet URI / info hash"
msgstr ""
#: ../epour/gui/TorrentSelector.py:251
#: ../epour/gui/TorrentSelector.py:176
msgid "Select file"
msgstr ""
#: ../epour/gui/TorrentSelector.py:258
#: ../epour/gui/TorrentSelector.py:183
msgid "Advanced Options"
msgstr ""
#: ../epour/gui/TorrentSelector.py:281
#: ../epour/gui/TorrentSelector.py:206
msgid "Name"
msgstr ""
#: ../epour/gui/TorrentSelector.py:282
#: ../epour/gui/TorrentSelector.py:207
msgid "Tracker ID"
msgstr ""
#. Downloaded data is saved in this path
#: ../epour/gui/TorrentSelector.py:294
#: ../epour/gui/TorrentSelector.py:219
msgid "Data Save Path"
msgstr ""
#: ../epour/gui/TorrentSelector.py:343
#: ../epour/gui/TorrentSelector.py:261
msgid "Max Uploads"
msgstr ""
#: ../epour/gui/TorrentSelector.py:344
#: ../epour/gui/TorrentSelector.py:262
msgid "Max Connections"
msgstr ""
#: ../epour/gui/TorrentSelector.py:355
#: ../epour/gui/TorrentSelector.py:273
msgid "Upload Limit"
msgstr ""
#: ../epour/gui/TorrentSelector.py:356
#: ../epour/gui/TorrentSelector.py:274
msgid "Download Limit"
msgstr ""
#: ../epour/gui/TorrentSelector.py:382
#: ../epour/gui/TorrentSelector.py:299
msgid "Ok"
msgstr ""
#: ../epour/gui/TorrentSelector.py:386
#: ../epour/gui/TorrentSelector.py:303
msgid "Cancel"
msgstr ""