mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 14:12:30 -06:00
WebUI: Improve translation macro.
Now we use QBT_TR(translatable string)QBT_TR.
This commit is contained in:
@@ -1,102 +1,102 @@
|
||||
<div id="ConnectionTab" class="PrefTab">
|
||||
<fieldset class="settings">
|
||||
<legend>_(Listening Port)</legend>
|
||||
<label for="port_value">_(Port used for incoming connections:)</label>
|
||||
<legend>QBT_TR(Listening Port)QBT_TR</legend>
|
||||
<label for="port_value">QBT_TR(Port used for incoming connections:)QBT_TR</label>
|
||||
<input type="text" id="port_value" style="width: 4em;"/><br/>
|
||||
<input type="checkbox" id="upnp_checkbox"/>
|
||||
<label for="upnp_checkbox">_(Use UPnP / NAT-PMP port forwarding from my router)</label>
|
||||
<label for="upnp_checkbox">QBT_TR(Use UPnP / NAT-PMP port forwarding from my router)QBT_TR</label>
|
||||
</fieldset>
|
||||
<fieldset class="settings">
|
||||
<legend>_(Connections Limits)</legend>
|
||||
<legend>QBT_TR(Connections Limits)QBT_TR</legend>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" id="max_connec_checkbox" onClick="updateMaxConnecEnabled();"/>
|
||||
<label for="max_connec_checkbox">_(Global maximum number of connections:)</label>
|
||||
<label for="max_connec_checkbox">QBT_TR(Global maximum number of connections:)QBT_TR</label>
|
||||
</td>
|
||||
<td><input type="text" id="max_connec_value" style="width: 4em;"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" id="max_connec_per_torrent_checkbox" onClick="updateMaxConnecPerTorrentEnabled();"/>
|
||||
<label for="max_connec_per_torrent_checkbox">_(Maximum number of connections per torrent:)</label>
|
||||
<label for="max_connec_per_torrent_checkbox">QBT_TR(Maximum number of connections per torrent:)QBT_TR</label>
|
||||
</td>
|
||||
<td><input type="text" id="max_connec_per_torrent_value" style="width: 4em;"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" id="max_uploads_per_torrent_checkbox" onClick="updateMaxUploadsPerTorrentEnabled();"/>
|
||||
<label for="max_uploads_per_torrent_checkbox">_(Maximum number of upload slots per torrent:)</label>
|
||||
<label for="max_uploads_per_torrent_checkbox">QBT_TR(Maximum number of upload slots per torrent:)QBT_TR</label>
|
||||
</td>
|
||||
<td><input type="text" id="max_uploads_per_torrent_value" style="width: 4em;"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<fieldset class="settings">
|
||||
<legend>_(Global Rate Limits)</legend>
|
||||
<legend>QBT_TR(Global Rate Limits)QBT_TR</legend>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" id="up_limit_checkbox" onClick="updateUpLimitEnabled();"/>
|
||||
<label for ="up_limit_checkbox">_(Upload:)</label>
|
||||
<label for ="up_limit_checkbox">QBT_TR(Upload:)QBT_TR</label>
|
||||
</td>
|
||||
<td><input type="text" id="up_limit_value" style="width: 4em;"/> _(KiB/s)</td>
|
||||
<td><input type="text" id="up_limit_value" style="width: 4em;"/> QBT_TR(KiB/s)QBT_TR</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" id="dl_limit_checkbox" onClick="updateDlLimitEnabled();"/>
|
||||
<label for="dl_limit_checkbox">_(Download:)</label>
|
||||
<label for="dl_limit_checkbox">QBT_TR(Download:)QBT_TR</label>
|
||||
</td>
|
||||
<td><input type="text" id="dl_limit_value" style="width: 4em;"/> _(KiB/s)</td>
|
||||
<td><input type="text" id="dl_limit_value" style="width: 4em;"/> QBT_TR(KiB/s)QBT_TR</td>
|
||||
</tr>
|
||||
</table>
|
||||
<fieldset class="settings">
|
||||
<legend>_(Options)</legend>
|
||||
<legend>QBT_TR(Options)QBT_TR</legend>
|
||||
<input type="checkbox" id="enable_utp_checkbox"/>
|
||||
<label for="enable_utp_checkbox">_(Enable bandwidth management (uTP))</label><br/>
|
||||
<label for="enable_utp_checkbox">QBT_TR(Enable bandwidth management (uTP))QBT_TR</label><br/>
|
||||
<input type="checkbox" id="limit_utp_rate_checkbox"/>
|
||||
<label for="limit_utp_rate_checkbox">_(Apply rate limit to uTP connections)</label><br/>
|
||||
<label for="limit_utp_rate_checkbox">QBT_TR(Apply rate limit to uTP connections)QBT_TR</label><br/>
|
||||
<input type="checkbox" id="limit_tcp_overhead_checkbox"/>
|
||||
<label for="limit_tcp_overhead_checkbox">_(Apply rate limit to transport overhead)</label><br/>
|
||||
<label for="limit_tcp_overhead_checkbox">QBT_TR(Apply rate limit to transport overhead)QBT_TR</label><br/>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
<fieldset class="settings">
|
||||
<legend>_(Alternative Global Rate Limits)</legend>
|
||||
<legend>QBT_TR(Alternative Global Rate Limits)QBT_TR</legend>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
_(Upload:)
|
||||
QBT_TR(Upload:)QBT_TR
|
||||
</td>
|
||||
<td><input type="text" id="alt_up_limit_value" style="width: 4em;"/> _(KiB/s)</td>
|
||||
<td><input type="text" id="alt_up_limit_value" style="width: 4em;"/> QBT_TR(KiB/s)QBT_TR</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
_(Download:)
|
||||
QBT_TR(Download:)QBT_TR
|
||||
</td>
|
||||
<td><input type="text" id="alt_dl_limit_value" style="width: 4em;"/> _(KiB/s)</td>
|
||||
<td><input type="text" id="alt_dl_limit_value" style="width: 4em;"/> QBT_TR(KiB/s)QBT_TR</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<fieldset class="settings">
|
||||
<legend><input type="checkbox" id="limit_sheduling_checkbox" onClick="updateSchedulingEnabled();"/>
|
||||
<label for="limit_sheduling_checkbox">_(Schedule the use of alternative rate limits)</label></legend>
|
||||
_(from)
|
||||
<label for="limit_sheduling_checkbox">QBT_TR(Schedule the use of alternative rate limits)QBT_TR</label></legend>
|
||||
QBT_TR(from)QBT_TR
|
||||
<input type="text" id="schedule_from_hour" style="width: 1.5em;"/>:<input type="text" id="schedule_from_min" style="width: 1.5em;"/>
|
||||
_(to)
|
||||
QBT_TR(to)QBT_TR
|
||||
<input type="text" id="schedule_to_hour" style="width: 1.5em;"/>:<input type="text" id="schedule_to_min" style="width: 1.5em;"/>
|
||||
<br/>
|
||||
_(When:)
|
||||
QBT_TR(When:)QBT_TR
|
||||
<select id="schedule_freq_select">
|
||||
<option value="0">_(Every day)</option>
|
||||
<option value="1">_(Week days)</option>
|
||||
<option value="2">_(Week ends)</option>
|
||||
<option value="3">_(Monday)</option>
|
||||
<option value="4">_(Tuesday)</option>
|
||||
<option value="5">_(Wednesday)</option>
|
||||
<option value="6">_(Thursday)</option>
|
||||
<option value="7">_(Friday)</option>
|
||||
<option value="8">_(Saturday)</option>
|
||||
<option value="9">_(Sunday)</option>
|
||||
<option value="0">QBT_TR(Every day)QBT_TR</option>
|
||||
<option value="1">QBT_TR(Week days)QBT_TR</option>
|
||||
<option value="2">QBT_TR(Week ends)QBT_TR</option>
|
||||
<option value="3">QBT_TR(Monday)QBT_TR</option>
|
||||
<option value="4">QBT_TR(Tuesday)QBT_TR</option>
|
||||
<option value="5">QBT_TR(Wednesday)QBT_TR</option>
|
||||
<option value="6">QBT_TR(Thursday)QBT_TR</option>
|
||||
<option value="7">QBT_TR(Friday)QBT_TR</option>
|
||||
<option value="8">QBT_TR(Saturday)QBT_TR</option>
|
||||
<option value="9">QBT_TR(Sunday)QBT_TR</option>
|
||||
</select>
|
||||
</br/>
|
||||
</fieldset>
|
||||
@@ -105,161 +105,161 @@
|
||||
|
||||
<div id="BittorrentTab" class="PrefTab invisible">
|
||||
<fieldset class="settings">
|
||||
<legend>_(Privacy)</legend>
|
||||
<legend>QBT_TR(Privacy)QBT_TR</legend>
|
||||
<input type="checkbox" id="dht_checkbox"/>
|
||||
<label for="dht_checkbox">_(Enable DHT (decentralized network) to find more peers)</label><br/>
|
||||
<label for="dht_checkbox">QBT_TR(Enable DHT (decentralized network) to find more peers)QBT_TR</label><br/>
|
||||
<input type="checkbox" id="DHTPortDiffThanBT_checkbox" onclick="updateDHTPortSettings();"/>
|
||||
<label for="DHTPortDiffThanBT_checkbox">_(Use a different port for DHT and BitTorrent)</label><br/>
|
||||
<label for="DHTPort_txt" style="margin-left: 20px;">_(DHT port:)</label>
|
||||
<label for="DHTPortDiffThanBT_checkbox">QBT_TR(Use a different port for DHT and BitTorrent)QBT_TR</label><br/>
|
||||
<label for="DHTPort_txt" style="margin-left: 20px;">QBT_TR(DHT port:)QBT_TR</label>
|
||||
<input type="text" id="DHTPort_txt" value="6881"/><br/>
|
||||
<input type="checkbox" id="pex_checkbox"/>
|
||||
<label for="pex_checkbox">_(Enable Peer Exchange (PeX) to find more peers)</label><br/>
|
||||
<label for="pex_checkbox">QBT_TR(Enable Peer Exchange (PeX) to find more peers)QBT_TR</label><br/>
|
||||
<input type="checkbox" id="lsd_checkbox"/>
|
||||
<label for="lsd_checkbox">_(Enable Local Peer Discovery to find more peers)</label><br/>
|
||||
<label for="lsd_checkbox">QBT_TR(Enable Local Peer Discovery to find more peers)QBT_TR</label><br/>
|
||||
|
||||
<label for="encryption_select">_(Encryption mode:)</label>
|
||||
<label for="encryption_select">QBT_TR(Encryption mode:)QBT_TR</label>
|
||||
<select id="encryption_select">
|
||||
<option value="0">_(Prefer encryption)</option>
|
||||
<option value="1">_(Require encryption)</option>
|
||||
<option value="2">_(Disable encryption)</option>
|
||||
<option value="0">QBT_TR(Prefer encryption)QBT_TR</option>
|
||||
<option value="1">QBT_TR(Require encryption)QBT_TR</option>
|
||||
<option value="2">QBT_TR(Disable encryption)QBT_TR</option>
|
||||
</select><br/>
|
||||
<input type="checkbox" id="anonymous_mode_checkbox" onClick="toggleAnonymousMode()"/>
|
||||
<label for="anonymous_mode_checkbox">_(Enable anonymous mode) (<a href="https://github.com/qbittorrent/qBittorrent/wiki/Anonymous-Mode">More information</a>)</label><br/>
|
||||
<label for="anonymous_mode_checkbox">QBT_TR(Enable anonymous mode)QBT_TR (<a href="https://github.com/qbittorrent/qBittorrent/wiki/Anonymous-Mode">More information</a>)</label><br/>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div id="DownloadsTab" class="PrefTab invisible">
|
||||
<fieldset class="settings">
|
||||
<legend>_(Hard Disk)</legend>
|
||||
<legend>QBT_TR(Hard Disk)QBT_TR</legend>
|
||||
<div class="formRow">
|
||||
<label for="savepath_text" class="leftLabelLarge">_(Save files to location:)</label>
|
||||
<label for="savepath_text" class="leftLabelLarge">QBT_TR(Save files to location:)QBT_TR</label>
|
||||
<input type="text" id="savepath_text"/>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<input type="checkbox" id="temppath_checkbox" onclick="updateTempDirEnabled();"/>
|
||||
<label for="temppath_checkbox">_(Keep incomplete torrents in:)</label>
|
||||
<label for="temppath_checkbox">QBT_TR(Keep incomplete torrents in:)QBT_TR</label>
|
||||
<input type="text" id="temppath_text"/>
|
||||
</div>
|
||||
<br/>
|
||||
_(Automatically add torrents from:)<br/>
|
||||
QBT_TR(Automatically add torrents from:)QBT_TR<br/>
|
||||
<table border="1" id="watched_folders_tab">
|
||||
<thead><tr><th>_(Watched Folder)</th><th>_(Download here)</th></tr></thead>
|
||||
<thead><tr><th>QBT_TR(Watched Folder)QBT_TR</th><th>QBT_TR(Download here)QBT_TR</th></tr></thead>
|
||||
<tbody></tbody>
|
||||
<tfoot><tr><td style="padding-top:4px;"><input type="text" id="new_watch_folder_txt"/></td><td style="padding-top:4px;"><input type="checkbox" id="new_watch_folder_dl" style="padding-left:18px;"/><img src="theme/list-add" alt="Add" style="padding-left:2px;width:16px;cursor:pointer;margin-right:-18px;" onclick="javascript:addWatchFolder();"/></td></tr></tfoot>
|
||||
</table><br/>
|
||||
|
||||
<input type="checkbox" id="exportdir_checkbox" onclick="updateExportDirEnabled();"/>
|
||||
<label for="exportdir_checkbox">_(Copy .torrent files to:)</label>
|
||||
<label for="exportdir_checkbox">QBT_TR(Copy .torrent files to:)QBT_TR</label>
|
||||
<input type="text" id="exportdir_text"/><br/>
|
||||
<span id="appendexttr">
|
||||
<input type="checkbox" id="appendext_checkbox"/>
|
||||
<label for="appendext_checkbox">_(Append .!qB extension to incomplete files)</label><br/>
|
||||
<label for="appendext_checkbox">QBT_TR(Append .!qB extension to incomplete files)QBT_TR</label><br/>
|
||||
</span>
|
||||
|
||||
<input type="checkbox" id="preallocateall_checkbox"/>
|
||||
<label for="preallocateall_checkbox">_(Pre-allocate disk space for all files)</label><br/>
|
||||
<label for="preallocateall_checkbox">QBT_TR(Pre-allocate disk space for all files)QBT_TR</label><br/>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="settings">
|
||||
<legend>_(Email notification upon download completion)</legend>
|
||||
<legend>QBT_TR(Email notification upon download completion)QBT_TR</legend>
|
||||
<input type="checkbox" id="mail_notification_checkbox" onclick="updateMailNotification();"/>
|
||||
<label for="mail_notification_checkbox">_(Email notification upon download completion)</label><br/>
|
||||
<label for="mail_notification_checkbox">QBT_TR(Email notification upon download completion)QBT_TR</label><br/>
|
||||
<div class="formRow">
|
||||
<label for="dest_email_txt" class="leftLabelLarge">_(Destination email:)</label><input type="text" id="dest_email_txt"/>
|
||||
<label for="dest_email_txt" class="leftLabelLarge">QBT_TR(Destination email:)QBT_TR</label><input type="text" id="dest_email_txt"/>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<label for="smtp_server_txt" class="leftLabelLarge">_(SMTP server:)</label><input type="text" id="smtp_server_txt"/>
|
||||
<label for="smtp_server_txt" class="leftLabelLarge">QBT_TR(SMTP server:)QBT_TR</label><input type="text" id="smtp_server_txt"/>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<input type="checkbox" id="mail_ssl_checkbox"/><label for="mail_ssl_checkbox">_(This server requires a secure connection (SSL))</label>
|
||||
<input type="checkbox" id="mail_ssl_checkbox"/><label for="mail_ssl_checkbox">QBT_TR(This server requires a secure connection (SSL))QBT_TR</label>
|
||||
</div>
|
||||
<input type="checkbox" id="mail_auth_checkbox" onclick="updateMailAuthSettings();"/><label for="mail_auth_checkbox">_(Authentication)</label><br/>
|
||||
<input type="checkbox" id="mail_auth_checkbox" onclick="updateMailAuthSettings();"/><label for="mail_auth_checkbox">QBT_TR(Authentication)QBT_TR</label><br/>
|
||||
<div class="formRow">
|
||||
<label for="mail_username_text" class="leftLabelLarge">_(Username:)</label><input type="text" id="mail_username_text"/>
|
||||
<label for="mail_username_text" class="leftLabelLarge">QBT_TR(Username:)QBT_TR</label><input type="text" id="mail_username_text"/>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<label for="mail_password_text" class="leftLabelLarge">_(Password:)</label><input type="password" id="mail_password_text"/>
|
||||
<label for="mail_password_text" class="leftLabelLarge">QBT_TR(Password:)QBT_TR</label><input type="password" id="mail_password_text"/>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="settings">
|
||||
<legend>_(Run an external program on torrent completion)</legend>
|
||||
<legend>QBT_TR(Run an external program on torrent completion)QBT_TR</legend>
|
||||
<input type="checkbox" id="autorun_checkbox" onclick="updateAutoRun();"/>
|
||||
<label for="autorun_checkbox">_(Run an external program on torrent completion)</label><br/>
|
||||
<label for="autorun_checkbox">QBT_TR(Run an external program on torrent completion)QBT_TR</label><br/>
|
||||
<input type="text" id="autorunProg_txt" style="width: 400px;"/><br/>
|
||||
<i>_(The following parameters are supported:)
|
||||
<i>QBT_TR(The following parameters are supported:)QBT_TR
|
||||
<ul>
|
||||
<li>%f: _(Torrent path)</li>
|
||||
<li>%n: _(Torrent name)</li>
|
||||
<li>%f: QBT_TR(Torrent path)QBT_TR</li>
|
||||
<li>%n: QBT_TR(Torrent name)QBT_TR</li>
|
||||
</ul></i>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="settings">
|
||||
<legend>_(Torrent Queueing)</legend>
|
||||
<legend>QBT_TR(Torrent Queueing)QBT_TR</legend>
|
||||
<input type="checkbox" id="queueing_checkbox" onclick="updateQueueingSystem();"/>
|
||||
<label for="queueing_checkbox">_(Torrent Queueing)</label><br/>
|
||||
<label for="queueing_checkbox">QBT_TR(Torrent Queueing)QBT_TR</label><br/>
|
||||
<div class="formRow">
|
||||
<label for="max_active_dl_value" style="margin-left: 20px;" class="leftLabelLarge">_(Maximum active downloads:)</label>
|
||||
<label for="max_active_dl_value" style="margin-left: 20px;" class="leftLabelLarge">QBT_TR(Maximum active downloads:)QBT_TR</label>
|
||||
<input type="text" id="max_active_dl_value" style="width: 4em;"/>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<label for="max_active_up_value" style="margin-left: 20px;" class="leftLabelLarge">_(Maximum active uploads:)</label>
|
||||
<label for="max_active_up_value" style="margin-left: 20px;" class="leftLabelLarge">QBT_TR(Maximum active uploads:)QBT_TR</label>
|
||||
<input type="text" id="max_active_up_value" style="width: 4em;"/>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<label for="max_active_to_value" style="margin-left: 20px;" class="leftLabelLarge">_(Maximum active torrents:)</label>
|
||||
<label for="max_active_to_value" style="margin-left: 20px;" class="leftLabelLarge">QBT_TR(Maximum active torrents:)QBT_TR</label>
|
||||
<input type="text" id="max_active_to_value" style="width: 4em;"/>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<input type="checkbox" id="dont_count_slow_torrents_checkbox"/>
|
||||
<label for="dont_count_slow_torrents_checkbox">_(Do not count slow torrents in these limits)</label>
|
||||
<label for="dont_count_slow_torrents_checkbox">QBT_TR(Do not count slow torrents in these limits)QBT_TR</label>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div id="FilterTab" class="PrefTab invisible">
|
||||
<fieldset class="settings">
|
||||
<legend>_(IP Filtering)</legend>
|
||||
<legend>QBT_TR(IP Filtering)QBT_TR</legend>
|
||||
<input type="checkbox" id="ipfilter_enabled_checkbox" onclick="updateFilterSettings();"/>
|
||||
<label for="ipfilter_enabled_checkbox">_(IP Filtering)</label><br/>
|
||||
<label for="ipfilter_text">_(Filter path (.dat, .p2p, .p2b):)</label>
|
||||
<label for="ipfilter_enabled_checkbox">QBT_TR(IP Filtering)QBT_TR</label><br/>
|
||||
<label for="ipfilter_text">QBT_TR(Filter path (.dat, .p2p, .p2b):)QBT_TR</label>
|
||||
<input type="text" id="ipfilter_text"/>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<div id="ProxyTab" class="PrefTab invisible">
|
||||
<fieldset class="settings">
|
||||
<legend>_(Proxy Server)</legend>
|
||||
<legend>QBT_TR(Proxy Server)QBT_TR</legend>
|
||||
<div class="formRow">
|
||||
<label for="peer_proxy_type_select" class="leftLabelSmall">_(Type:)</label>
|
||||
<label for="peer_proxy_type_select" class="leftLabelSmall">QBT_TR(Type:)QBT_TR</label>
|
||||
<select id ="peer_proxy_type_select" onchange="updatePeerProxySettings();">
|
||||
<option value="none">_((None))</option>
|
||||
<option value="socks4">_(SOCKS4)</option>
|
||||
<option value="socks5">_(SOCKS5)</option>
|
||||
<option value="http">_(HTTP)</option>
|
||||
<option value="none">QBT_TR((None))QBT_TR</option>
|
||||
<option value="socks4">QBT_TR(SOCKS4)QBT_TR</option>
|
||||
<option value="socks5">QBT_TR(SOCKS5)QBT_TR</option>
|
||||
<option value="http">QBT_TR(HTTP)QBT_TR</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<label for="peer_proxy_host_text" class="leftLabelSmall">_(Host:)</label>
|
||||
<label for="peer_proxy_host_text" class="leftLabelSmall">QBT_TR(Host:)QBT_TR</label>
|
||||
<input type="text" id="peer_proxy_host_text" />
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<label for="peer_proxy_port_value" class="leftLabelSmall">_(Port:)</label>
|
||||
<label for="peer_proxy_port_value" class="leftLabelSmall">QBT_TR(Port:)QBT_TR</label>
|
||||
<input type="text" id="peer_proxy_port_value" style="width: 4em;"/>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<input type="checkbox" id="use_peer_proxy_checkbox"/>
|
||||
<label for="use_peer_proxy_checkbox">_(Use proxy for peer connections)</label>
|
||||
<label for="use_peer_proxy_checkbox">QBT_TR(Use proxy for peer connections)QBT_TR</label>
|
||||
</div>
|
||||
<input type="checkbox" id="peer_proxy_auth_checkbox" onclick="updatePeerProxyAuthSettings();"/>
|
||||
<label for="peer_proxy_auth_checkbox">_(Authentication)</label><br/>
|
||||
<label for="peer_proxy_auth_checkbox">QBT_TR(Authentication)QBT_TR</label><br/>
|
||||
|
||||
<div class="formRow">
|
||||
<label for="peer_proxy_username_text" style="margin-left: 20px;" class="leftLabelSmall">_(Username:)</label>
|
||||
<label for="peer_proxy_username_text" style="margin-left: 20px;" class="leftLabelSmall">QBT_TR(Username:)QBT_TR</label>
|
||||
<input type="text" id="peer_proxy_username_text" />
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<label for="peer_proxy_password_text" style="margin-left: 20px;" class="leftLabelSmall">_(Password:)</label>
|
||||
<label for="peer_proxy_password_text" style="margin-left: 20px;" class="leftLabelSmall">QBT_TR(Password:)QBT_TR</label>
|
||||
<input type="password" id="peer_proxy_password_text" />
|
||||
</div>
|
||||
</fieldset>
|
||||
@@ -267,8 +267,8 @@
|
||||
|
||||
<div id="WebUITab" class="PrefTab invisible">
|
||||
<fieldset class="settings">
|
||||
<legend>_(Language)</legend>
|
||||
<label for="locale_select">_(User Interface Language:)</label>
|
||||
<legend>QBT_TR(Language)QBT_TR</legend>
|
||||
<label for="locale_select">QBT_TR(User Interface Language:)QBT_TR</label>
|
||||
<select id="locale_select">
|
||||
<option value="en">English</option>
|
||||
<option value="en_AU">English(Australia)</option>
|
||||
@@ -314,57 +314,57 @@
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="settings">
|
||||
<legend>_(HTTP Server)</legend>
|
||||
<label for="webui_port_value">_(Port:)</label><input type="text" id="webui_port_value" style="width: 4em;"/><br/>
|
||||
<legend>QBT_TR(HTTP Server)QBT_TR</legend>
|
||||
<label for="webui_port_value">QBT_TR(Port:)QBT_TR</label><input type="text" id="webui_port_value" style="width: 4em;"/><br/>
|
||||
|
||||
<input type="checkbox" id="use_https_checkbox" onclick="updateHttpsSettings();" />
|
||||
<label for="use_https_checkbox">_(Use HTTPS instead of HTTP)</label><br/>
|
||||
<label for="use_https_checkbox">QBT_TR(Use HTTPS instead of HTTP)QBT_TR</label><br/>
|
||||
<div class="formRow">
|
||||
<label for="ssl_key_textarea" style="margin-left: 20px;" class="leftLabelSmall">_(Key:)</label>
|
||||
<label for="ssl_key_textarea" style="margin-left: 20px;" class="leftLabelSmall">QBT_TR(Key:)QBT_TR</label>
|
||||
<textarea id="ssl_key_textarea" rows="5" cols="70"></textarea>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<label for="ssl_cert_textarea" style="margin-left: 20px;" class="leftLabelSmall">_(Certificate:)</label>
|
||||
<label for="ssl_cert_textarea" style="margin-left: 20px;" class="leftLabelSmall">QBT_TR(Certificate:)QBT_TR</label>
|
||||
<textarea id="ssl_cert_textarea" rows="5" cols="70"></textarea>
|
||||
</div>
|
||||
<div style="padding-left: 10px;"><a href=http://httpd.apache.org/docs/2.2/ssl/ssl_faq.html#aboutcerts>Information about certificates</a></div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="settings">
|
||||
<legend>_(Authentication)</legend>
|
||||
<legend>QBT_TR(Authentication)QBT_TR</legend>
|
||||
<div class="formRow">
|
||||
<label for="webui_username_text" class="leftLabelSmall">_(Username:)</label><input type="text" id="webui_username_text" />
|
||||
<label for="webui_username_text" class="leftLabelSmall">QBT_TR(Username:)QBT_TR</label><input type="text" id="webui_username_text" />
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<label for="webui_password_text" class="leftLabelSmall">_(Password:)</label><input type="password" id="webui_password_text" />
|
||||
<label for="webui_password_text" class="leftLabelSmall">QBT_TR(Password:)QBT_TR</label><input type="password" id="webui_password_text" />
|
||||
</div>
|
||||
|
||||
<input type="checkbox" id="bypass_local_auth_checkbox" />
|
||||
<label for="bypass_local_auth_checkbox">_(Bypass authentication for localhost)</label>
|
||||
<label for="bypass_local_auth_checkbox">QBT_TR(Bypass authentication for localhost)QBT_TR</label>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="settings">
|
||||
<legend><input type="checkbox" id="use_dyndns_checkbox" onclick="updateDynDnsSettings();" />
|
||||
<label for="use_dyndns_checkbox">_(Update my dynamic domain name)</label></legend>
|
||||
<label for="use_dyndns_checkbox">QBT_TR(Update my dynamic domain name)QBT_TR</label></legend>
|
||||
<select id="dyndns_select">
|
||||
<option value="0">DynDNS</option>
|
||||
<option value="1">NO-IP</option>
|
||||
</select>
|
||||
<input type="button" value="_(Register)" onclick="registerDynDns();"/><br/><br/>
|
||||
<input type="button" value="QBT_TR(Register)QBT_TR" onclick="registerDynDns();"/><br/><br/>
|
||||
<div class="formRow">
|
||||
<label for="dyndns_domain_text" class="leftLabelSmall">_(Domain name:)</label><input type="text" id="dyndns_domain_text"/>
|
||||
<label for="dyndns_domain_text" class="leftLabelSmall">QBT_TR(Domain name:)QBT_TR</label><input type="text" id="dyndns_domain_text"/>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<label for="dyndns_username_text" class="leftLabelSmall">_(Username:)</label><input type="text" id="dyndns_username_text"/>
|
||||
<label for="dyndns_username_text" class="leftLabelSmall">QBT_TR(Username:)QBT_TR</label><input type="text" id="dyndns_username_text"/>
|
||||
</div>
|
||||
<div class="formRow">
|
||||
<label for="dyndns_password_text" class="leftLabelSmall">_(Password:)</label><input type="password" id="dyndns_password_text"/>
|
||||
<label for="dyndns_password_text" class="leftLabelSmall">QBT_TR(Password:)QBT_TR</label><input type="password" id="dyndns_password_text"/>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
<center><input type="button" value="_(Save)" onclick="applyPreferences();"/></center>
|
||||
<center><input type="button" value="QBT_TR(Save)QBT_TR" onclick="applyPreferences();"/></center>
|
||||
|
||||
<script type="text/javascript">
|
||||
var WatchedFoldersTable = new HtmlTable($("watched_folders_tab"));
|
||||
@@ -840,7 +840,7 @@ applyPreferences = function() {
|
||||
// Connection
|
||||
var listen_port = $('port_value').getProperty('value').toInt();
|
||||
if(listen_port <= 1024 || listen_port > 65535) {
|
||||
alert("_(The port used for incoming connections must be greater than 1024 and less than 65535.)");
|
||||
alert("QBT_TR(The port used for incoming connections must be greater than 1024 and less than 65535.)QBT_TR");
|
||||
return;
|
||||
}
|
||||
settings.set('listen_port', listen_port);
|
||||
@@ -851,7 +851,7 @@ applyPreferences = function() {
|
||||
if($('dl_limit_checkbox').getProperty('checked')) {
|
||||
dl_limit = $('dl_limit_value').getProperty('value').toInt();
|
||||
if(dl_limit <= 0) {
|
||||
alert("_(Download rate limit must be greater than 0 or disabled.)");
|
||||
alert("QBT_TR(Download rate limit must be greater than 0 or disabled.)QBT_TR");
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -861,7 +861,7 @@ applyPreferences = function() {
|
||||
if($('up_limit_checkbox').getProperty('checked')) {
|
||||
up_limit = $('up_limit_value').getProperty('value').toInt();
|
||||
if(up_limit <= 0) {
|
||||
alert("_(Upload rate limit must be greater than 0 or disabled.)");
|
||||
alert("QBT_TR(Upload rate limit must be greater than 0 or disabled.)QBT_TR");
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -878,7 +878,7 @@ applyPreferences = function() {
|
||||
if($('max_connec_checkbox').getProperty('checked')) {
|
||||
max_connec = $('max_connec_value').getProperty('value').toInt();
|
||||
if(max_connec <= 0) {
|
||||
alert("_(Maximum number of connections limit must be greater than 0 or disabled.)");
|
||||
alert("QBT_TR(Maximum number of connections limit must be greater than 0 or disabled.)QBT_TR");
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -888,7 +888,7 @@ applyPreferences = function() {
|
||||
if($('max_connec_per_torrent_checkbox').getProperty('checked')) {
|
||||
max_connec_per_torrent = $('max_connec_per_torrent_value').getProperty('value').toInt();
|
||||
if(max_connec_per_torrent <= 0) {
|
||||
alert("_(Maximum number of connections per torrent limit must be greater than 0 or disabled.)");
|
||||
alert("QBT_TR(Maximum number of connections per torrent limit must be greater than 0 or disabled.)QBT_TR");
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -898,7 +898,7 @@ applyPreferences = function() {
|
||||
if($('max_uploads_per_torrent_checkbox').getProperty('checked')) {
|
||||
max_uploads_per_torrent = $('max_uploads_per_torrent_value').getProperty('value').toInt();
|
||||
if(max_uploads_per_torrent <= 0) {
|
||||
alert("_(Maximum number of upload slots per torrent limit must be greater than 0 or disabled.)");
|
||||
alert("QBT_TR(Maximum number of upload slots per torrent limit must be greater than 0 or disabled.)QBT_TR");
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -907,14 +907,14 @@ applyPreferences = function() {
|
||||
// Alternative speed limits
|
||||
var alt_dl_limit = $('alt_dl_limit_value').getProperty('value').toInt();
|
||||
if(alt_dl_limit <= 0) {
|
||||
alert("_(Download rate limit must be greater than 0 or disabled.)");
|
||||
alert("QBT_TR(Download rate limit must be greater than 0 or disabled.)QBT_TR");
|
||||
return;
|
||||
}
|
||||
settings.set('alt_dl_limit', alt_dl_limit);
|
||||
|
||||
var alt_up_limit = $('alt_up_limit_value').getProperty('value').toInt();
|
||||
if(alt_up_limit <= 0) {
|
||||
alert("_(Upload rate limit must be greater than 0 or disabled.)");
|
||||
alert("QBT_TR(Upload rate limit must be greater than 0 or disabled.)QBT_TR");
|
||||
return;
|
||||
}
|
||||
settings.set('alt_up_limit', alt_up_limit);
|
||||
@@ -1014,7 +1014,7 @@ applyPreferences = function() {
|
||||
// Web UI
|
||||
var web_ui_port = $('webui_port_value').getProperty('value').toInt();
|
||||
if(web_ui_port <= 1024 || web_ui_port > 65535) {
|
||||
alert("_(The port used for the Web UI must be greater than 1024 and less than 65535.)");
|
||||
alert("QBT_TR(The port used for the Web UI must be greater than 1024 and less than 65535.)QBT_TR");
|
||||
return;
|
||||
}
|
||||
settings.set('web_ui_port', web_ui_port);
|
||||
@@ -1023,11 +1023,11 @@ applyPreferences = function() {
|
||||
var web_ui_password = $('webui_password_text').getProperty('value');
|
||||
// Add some username/password length checking
|
||||
if(web_ui_username.length < 3) {
|
||||
alert("_(The Web UI username must be at least 3 characters long.)");
|
||||
alert("QBT_TR(The Web UI username must be at least 3 characters long.)QBT_TR");
|
||||
return;
|
||||
}
|
||||
if(web_ui_password.length < 3) {
|
||||
alert("_(The Web UI password must be at least 3 characters long.)");
|
||||
alert("QBT_TR(The Web UI password must be at least 3 characters long.)QBT_TR");
|
||||
return;
|
||||
}
|
||||
settings.set('web_ui_username', web_ui_username);
|
||||
@@ -1056,7 +1056,7 @@ applyPreferences = function() {
|
||||
data: {'json': json_str,
|
||||
},
|
||||
onFailure: function() {
|
||||
alert("_(Unable to save program preferences, qBittorrent is probably unreachable.)");
|
||||
alert("QBT_TR(Unable to save program preferences, qBittorrent is probably unreachable.)QBT_TR");
|
||||
window.parent.closeWindows();
|
||||
},
|
||||
onSuccess: function() {
|
||||
|
||||
Reference in New Issue
Block a user