Run Prettier to format the files for consistency

This commit is contained in:
Pratik Borsadiya 2018-08-30 15:07:55 +05:30
parent 499f272ac7
commit 4c3d2fddc9
49 changed files with 6469 additions and 5890 deletions

View File

@ -1,28 +1,30 @@
angular angular
.module('webui.services.configuration', []) .module("webui.services.configuration", [])
.constant('$name', 'Aria2 WebUI') // name used across the entire UI .constant("$name", "Aria2 WebUI") // name used across the entire UI
.constant('$titlePattern', 'active: {active} - waiting: {waiting} - stopped: {stopped} — {name}') .constant("$titlePattern", "active: {active} - waiting: {waiting} - stopped: {stopped} — {name}")
.constant('$pageSize', 11) // number of downloads shown before pagination kicks in .constant("$pageSize", 11) // number of downloads shown before pagination kicks in
.constant('$authconf', { // default authentication configuration, never fill it in case the webui is hosted in public IP as it can be compromised .constant("$authconf", {
host: location.protocol.startsWith('http') ? location.hostname : 'localhost', // default authentication configuration, never fill it in case the webui is hosted in public IP as it can be compromised
path: '/jsonrpc', host: location.protocol.startsWith("http") ? location.hostname : "localhost",
path: "/jsonrpc",
port: 6800, port: 6800,
encrypt: false, encrypt: false,
auth: { // either add the token field or the user and pass field, not both. auth: {
// either add the token field or the user and pass field, not both.
// token: '$YOUR_SECRET_TOKEN$' // token: '$YOUR_SECRET_TOKEN$'
/*-----------------------------*/ /*-----------------------------*/
// user: '*YOUR_USERNAME*', // user: '*YOUR_USERNAME*',
// pass: '*YOUR_SECRET_PASS*' // pass: '*YOUR_SECRET_PASS*'
}, },
directURL: '' // If supplied, links will be created to enable direct download from the aria2 server, requires appropriate webserver to be configured directURL: "" // If supplied, links will be created to enable direct download from the aria2 server, requires appropriate webserver to be configured
}) })
.constant('$enable', { .constant("$enable", {
torrent: true, // bittorrent support only enabled if supported by aria2 build, set to false otherwise to permanently disable it torrent: true, // bittorrent support only enabled if supported by aria2 build, set to false otherwise to permanently disable it
metalink: true, // metalink support only enabled if supported by aria2 build, set to false to permanently disable it metalink: true, // metalink support only enabled if supported by aria2 build, set to false to permanently disable it
sidebar: { // configuration related to the sidebar next to the list of downloads sidebar: {
// configuration related to the sidebar next to the list of downloads
show: true, // set to false to completely hide the sidebar. Other elements inside will be automatically hidden show: true, // set to false to completely hide the sidebar. Other elements inside will be automatically hidden
stats: true, // set to false to hide the global statistic section (contains the speed graph for now) stats: true, // set to false to hide the global statistic section (contains the speed graph for now)
@ -31,16 +33,23 @@ angular
starredProps: true // only shown when at least one property is added to the starred list, set to false to permanently hide the Quick Access Settings inside the sidebar starredProps: true // only shown when at least one property is added to the starred list, set to false to permanently hide the Quick Access Settings inside the sidebar
} }
}) })
.constant('$starredProps', [ // default list of Quick Access Properties. Can be overridden by making modification through the Global Settings dialog .constant("$starredProps", [
// default list of Quick Access Properties. Can be overridden by making modification through the Global Settings dialog
// go to Global Settings dialog to see their description // go to Global Settings dialog to see their description
'dir', 'conf-path', 'auto-file-renaming', 'max-connection-per-server' "dir",
]) "conf-path",
.constant('$downloadProps', [ // Similar to starred Quick Access properties but for adding new downloads. "auto-file-renaming",
"max-connection-per-server"
])
.constant("$downloadProps", [
// Similar to starred Quick Access properties but for adding new downloads.
// go to Advance Download Options when adding a new download to view the list of possible options // go to Advance Download Options when adding a new download to view the list of possible options
'header', 'http-user', 'http-passwd', 'pause', 'dir', 'max-connection-per-server' "header",
]) "http-user",
.constant('$globalTimeout', 1000) // interval to update the individual downloads "http-passwd",
; "pause",
"dir",
"max-connection-per-server"
])
.constant("$globalTimeout", 1000); // interval to update the individual downloads

View File

@ -27,24 +27,31 @@
word-wrap: break-word; word-wrap: break-word;
} }
.active-download, .waiting-download, .stopped-download, .download { .active-download,
.waiting-download,
.stopped-download,
.download {
cursor: pointer; cursor: pointer;
width: 100%; width: 100%;
padding: 4px 5px; padding: 4px 5px;
background-color: #fff; background-color: #fff;
margin-bottom: 20px; margin-bottom: 20px;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12); box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14),
0 2px 1px -1px rgba(0, 0, 0, 0.12);
} }
/* fix table layout to break words */ /* fix table layout to break words */
@media (max-width: 767px) { @media (max-width: 767px) {
.active-download, .waiting-download, .stopped-download, .download { .active-download,
.waiting-download,
.stopped-download,
.download {
table-layout: fixed; table-layout: fixed;
} }
} }
.download-graph { .download-graph {
margin: .5em 30px .5em 0; margin: 0.5em 30px 0.5em 0;
} }
@media (min-width: 1200px) { @media (min-width: 1200px) {

View File

@ -1,13 +1,14 @@
@import 'https://fonts.googleapis.com/css?family=Lato:400,700'; @import "https://fonts.googleapis.com/css?family=Lato:400,700";
body { body {
font-family: 'Lato', sans-serif; font-family: "Lato", sans-serif;
overflow-y: scroll; overflow-y: scroll;
background-color: #f5f5f5; background-color: #f5f5f5;
padding-bottom: 5em; padding-bottom: 5em;
} }
input[type=checkbox], input[type=radio] { input[type="checkbox"],
input[type="radio"] {
vertical-align: middle; vertical-align: middle;
position: relative; position: relative;
} }
@ -21,8 +22,10 @@ input[type=checkbox], input[type=radio] {
background-color: #428bca; background-color: #428bca;
} }
.label-active, .badge-active, .progress-active .bar { .label-active,
background-color: #62C462; .badge-active,
.progress-active .bar {
background-color: #62c462;
} }
.progress-success .bar { .progress-success .bar {
@ -81,8 +84,8 @@ input[type=checkbox], input[type=radio] {
.main-navbar { .main-navbar {
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.1); box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.1);
background-color: #00897B; background-color: #00897b;
border-color: #00897B; border-color: #00897b;
} }
.main-navbar .navbar-brand { .main-navbar .navbar-brand {
@ -110,7 +113,8 @@ input[type=checkbox], input[type=radio] {
margin-bottom: 30px; margin-bottom: 30px;
background-color: #fff; background-color: #fff;
padding: 10px 20px 20px; padding: 10px 20px 20px;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 2px 1px -1px rgba(0, 0, 0, 0.12); box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14),
0 2px 1px -1px rgba(0, 0, 0, 0.12);
} }
.filter-input-group { .filter-input-group {

View File

@ -1,7 +1,7 @@
angular.module('webui.ctrls.alert', [ angular.module("webui.ctrls.alert", ["webui.services.alerts"]).controller("AlertCtrl", [
'webui.services.alerts' "$scope",
]) "$alerts",
.controller('AlertCtrl', ['$scope', '$alerts', '$sce', "$sce",
function(scope, alerts, sce) { function(scope, alerts, sce) {
scope.pendingAlerts = []; scope.pendingAlerts = [];
@ -10,7 +10,7 @@ angular.module('webui.ctrls.alert', [
}; };
alerts.addAlerter(function(msg, type) { alerts.addAlerter(function(msg, type) {
type = type || 'warning'; type = type || "warning";
var obj = { msg: sce.trustAsHtml(msg), type: type }; var obj = { msg: sce.trustAsHtml(msg), type: type };
scope.pendingAlerts = _.filter(scope.pendingAlerts, function(al) { scope.pendingAlerts = _.filter(scope.pendingAlerts, function(al) {
return !al.expired; return !al.expired;
@ -23,11 +23,11 @@ angular.module('webui.ctrls.alert', [
scope.pendingAlerts[ind].expired = true; scope.pendingAlerts[ind].expired = true;
// only remove if more notifications are pending in the pipeline // only remove if more notifications are pending in the pipeline
if (scope.pendingAlerts.length > 0) if (scope.pendingAlerts.length > 0) scope.removeAlert(ind);
scope.removeAlert(ind);
} }
}, type == "error" ? 15000 : 5000); }, type == "error" ? 15000 : 5000);
scope.$digest(); scope.$digest();
}); });
}]); }
]);

View File

@ -1,21 +1,49 @@
angular angular
.module('webui.ctrls.download', [ .module("webui.ctrls.download", [
"ui.bootstrap", "ui.bootstrap",
'webui.services.utils', 'webui.services.rpc', 'webui.services.rpc.helpers', 'webui.services.alerts', "webui.services.utils",
'webui.services.settings', 'webui.services.modals', 'webui.services.configuration', "webui.services.rpc",
'webui.services.errors', "webui.services.rpc.helpers",
]) "webui.services.alerts",
.controller('MainCtrl', [ "webui.services.settings",
'$scope', '$name', '$enable', '$rpc', '$rpchelpers', '$utils', '$alerts', '$modals', "webui.services.modals",
'$fileSettings', '$activeInclude', '$waitingExclude', '$pageSize', '$getErrorStatus', "webui.services.configuration",
"webui.services.errors"
])
.controller("MainCtrl", [
"$scope",
"$name",
"$enable",
"$rpc",
"$rpchelpers",
"$utils",
"$alerts",
"$modals",
"$fileSettings",
"$activeInclude",
"$waitingExclude",
"$pageSize",
"$getErrorStatus",
// for document title // for document title
'$rootScope', '$filter', "$rootScope",
function( "$filter",
scope, name, enable, rpc, rhelpers, utils, alerts, modals, function(
fsettings, activeInclude, waitingExclude, pageSize, getErrorStatus, scope,
rootScope, filter name,
) { enable,
rpc,
rhelpers,
utils,
alerts,
modals,
fsettings,
activeInclude,
waitingExclude,
pageSize,
getErrorStatus,
rootScope,
filter
) {
scope.name = name; // default UI name scope.name = name; // default UI name
scope.enable = enable; // UI enable options scope.enable = enable; // UI enable options
@ -23,7 +51,7 @@ function(
var slash = "/"; var slash = "/";
var allStopped = []; var allStopped = [];
scope.active = [], scope.waiting = [], scope.stopped = []; (scope.active = []), (scope.waiting = []), (scope.stopped = []);
scope.gstats = {}; scope.gstats = {};
scope.hideLinkedMetadata = true; scope.hideLinkedMetadata = true;
scope.propFilter = ""; scope.propFilter = "";
@ -31,49 +59,58 @@ function(
// pause the download // pause the download
// d: the download ctx // d: the download ctx
scope.pause = function(d) { scope.pause = function(d) {
rpc.once('forcePause', [d.gid]); rpc.once("forcePause", [d.gid]);
} };
// resume the download // resume the download
// d: the download ctx // d: the download ctx
scope.resume = function(d) { scope.resume = function(d) {
rpc.once('unpause', [d.gid]); rpc.once("unpause", [d.gid]);
} };
scope.restart = function(d) { scope.restart = function(d) {
// assumes downloads which are started by URIs, not torrents. // assumes downloads which are started by URIs, not torrents.
// the preferences are also not transferred, just simple restart // the preferences are also not transferred, just simple restart
rpc.once('getOption', [d.gid], function(data) { rpc.once("getOption", [d.gid], function(data) {
var prefs = data[0]; var prefs = data[0];
rpc.once('getFiles', [d.gid], function(data) { rpc.once("getFiles", [d.gid], function(data) {
var files = data[0]; var files = data[0];
var uris = var uris = _.chain(files)
_.chain(files).map(function(f) { return f.uris }) .map(function(f) {
.filter(function(uris) { return uris && uris.length }) return f.uris;
})
.filter(function(uris) {
return uris && uris.length;
})
.map(function(uris) { .map(function(uris) {
var u = _.chain(uris) var u = _.chain(uris)
.map(function(u) { return u.uri }) .map(function(u) {
.uniq().value(); return u.uri;
})
.uniq()
.value();
return u; return u;
}).value(); })
.value();
if (uris.length > 0) { if (uris.length > 0) {
console.log('adding uris:', uris, prefs); console.log("adding uris:", uris, prefs);
scope.remove(d, function() { scope.remove(
d,
function() {
rhelpers.addUris(uris, prefs); rhelpers.addUris(uris, prefs);
}, true); },
true
);
} }
}); });
}); });
} };
scope.canRestart = function(d) { scope.canRestart = function(d) {
return (['active', 'paused'].indexOf(d.status) == -1 return ["active", "paused"].indexOf(d.status) == -1 && !d.bittorrent;
&& !d.bittorrent); };
}
// remove the download, // remove the download,
// put it in stopped list if active, // put it in stopped list if active,
@ -83,16 +120,18 @@ function(
// HACK to make sure an angular digest is not running, as only one can happen at a time, and confirm is a blocking // HACK to make sure an angular digest is not running, as only one can happen at a time, and confirm is a blocking
// call so an rpc response can also trigger a digest call // call so an rpc response can also trigger a digest call
setTimeout(function() { setTimeout(function() {
if (!noConfirm && !confirm( if (
filter('translate')('Remove {{name}} and associated meta-data?', !noConfirm &&
{ name: d.name }))) { !confirm(
filter("translate")("Remove {{name}} and associated meta-data?", { name: d.name })
)
) {
return; return;
} }
var method = 'remove'; var method = "remove";
if (scope.getType(d) == 'stopped') if (scope.getType(d) == "stopped") method = "removeDownloadResult";
method = 'removeDownloadResult';
if (d.followedFrom) { if (d.followedFrom) {
scope.remove(d.followedFrom, function() {}, true); scope.remove(d.followedFrom, function() {}, true);
@ -100,7 +139,9 @@ function(
} }
rpc.once(method, [d.gid], cb); rpc.once(method, [d.gid], cb);
var lists = [scope.active, scope.waiting, scope.stopped], ind = -1, i; var lists = [scope.active, scope.waiting, scope.stopped],
ind = -1,
i;
for (var i = 0; i < lists.length; ++i) { for (var i = 0; i < lists.length; ++i) {
var list = lists[i]; var list = lists[i];
var idx = list.indexOf(d); var idx = list.indexOf(d);
@ -111,24 +152,23 @@ function(
return; return;
} }
}, 0); }, 0);
} };
// start filling in the model of active, // start filling in the model of active,
// waiting and stopped download // waiting and stopped download
rpc.subscribe('tellActive', [], function(data) { rpc.subscribe("tellActive", [], function(data) {
scope.$apply(function() { scope.$apply(function() {
utils.mergeMap(data[0], scope.active, scope.getCtx); utils.mergeMap(data[0], scope.active, scope.getCtx);
}); });
}); });
rpc.subscribe('tellWaiting', [0, 1000], function(data) { rpc.subscribe("tellWaiting", [0, 1000], function(data) {
scope.$apply(function() { scope.$apply(function() {
utils.mergeMap(data[0], scope.waiting, scope.getCtx); utils.mergeMap(data[0], scope.waiting, scope.getCtx);
}); });
}); });
rpc.subscribe("tellStopped", [0, 1000], function(data) {
rpc.subscribe('tellStopped', [0, 1000], function(data) {
scope.$apply(function() { scope.$apply(function() {
if (!scope.hideLinkedMetadata) { if (!scope.hideLinkedMetadata) {
utils.mergeMap(data[0], scope.stopped, scope.getCtx); utils.mergeMap(data[0], scope.stopped, scope.getCtx);
@ -157,14 +197,14 @@ function(
}); });
rootScope.pageTitle = utils.getTitle(); rootScope.pageTitle = utils.getTitle();
rpc.subscribe('getGlobalStat', [], function(data) { rpc.subscribe("getGlobalStat", [], function(data) {
scope.$apply(function() { scope.$apply(function() {
scope.gstats = data[0]; scope.gstats = data[0];
rootScope.pageTitle = utils.getTitle(scope.gstats); rootScope.pageTitle = utils.getTitle(scope.gstats);
}); });
}); });
rpc.once('getVersion', [], function(data) { rpc.once("getVersion", [], function(data) {
scope.$apply(function() { scope.$apply(function() {
scope.miscellaneous = data[0]; scope.miscellaneous = data[0];
}); });
@ -195,10 +235,10 @@ function(
if (!scope.downloadFilterCommitted) { if (!scope.downloadFilterCommitted) {
return downloads; return downloads;
} }
var filter = scope.downloadFilterCommitted. var filter = scope.downloadFilterCommitted
replace(/[{}()\[\]\\^$.?]/g, "\\$&"). .replace(/[{}()\[\]\\^$.?]/g, "\\$&")
replace(/\*/g, ".*"). .replace(/\*/g, ".*")
replace(/\./g, "."); .replace(/\./g, ".");
filter = new RegExp(filter, "i"); filter = new RegExp(filter, "i");
return _.filter(downloads, function(d) { return _.filter(downloads, function(d) {
if (filter.test(d.name)) return true; if (filter.test(d.name)) return true;
@ -224,14 +264,7 @@ function(
}; };
scope.resetFilters = function() { scope.resetFilters = function() {
scope.filterSpeed = scope.filterSpeed = scope.filterActive = scope.filterWaiting = scope.filterComplete = scope.filterError = scope.filterPaused = scope.filterRemoved = true;
scope.filterActive =
scope.filterWaiting =
scope.filterComplete =
scope.filterError =
scope.filterPaused =
scope.filterRemoved =
true;
scope.clearFilter(); scope.clearFilter();
scope.persistFilters(); scope.persistFilters();
}; };
@ -288,7 +321,6 @@ function(
}, 0); }, 0);
}; };
// max downloads shown in one page // max downloads shown in one page
scope.pageSize = pageSize; scope.pageSize = pageSize;
@ -297,14 +329,12 @@ function(
// total amount of downloads returned by aria2 // total amount of downloads returned by aria2
scope.totalAria2Downloads = function() { scope.totalAria2Downloads = function() {
return scope.active.length return scope.active.length + scope.waiting.length + scope.stopped.length;
+ scope.waiting.length };
+ scope.stopped.length;
}
scope.getErrorStatus = function(errorCode) { scope.getErrorStatus = function(errorCode) {
return getErrorStatus(+errorCode); return getErrorStatus(+errorCode);
} };
// actual downloads used by the view // actual downloads used by the view
scope.getDownloads = function() { scope.getDownloads = function() {
@ -312,56 +342,70 @@ function(
if (scope.filterActive) { if (scope.filterActive) {
if (!scope.filterSpeed) { if (!scope.filterSpeed) {
categories.push(_.filter(scope.active, function (e) { categories.push(
_.filter(scope.active, function(e) {
return !+e.uploadSpeed && !+e.downloadSpeed; return !+e.uploadSpeed && !+e.downloadSpeed;
})); })
} );
else { } else {
categories.push(scope.active); categories.push(scope.active);
} }
} } else if (scope.filterSpeed) {
else if (scope.filterSpeed) { categories.push(
categories.push(_.filter(scope.active, function (e) { _.filter(scope.active, function(e) {
return +e.uploadSpeed || +e.downloadSpeed; return +e.uploadSpeed || +e.downloadSpeed;
})); })
);
} }
if (scope.filterWaiting) { if (scope.filterWaiting) {
categories.push(_.filter(scope.waiting, function (e) { categories.push(
_.filter(scope.waiting, function(e) {
return e.status == "waiting"; return e.status == "waiting";
})); })
);
} }
if (scope.filterPaused) { if (scope.filterPaused) {
categories.push(_.filter(scope.waiting, function (e) { categories.push(
_.filter(scope.waiting, function(e) {
return e.status == "paused"; return e.status == "paused";
})); })
);
} }
if (scope.filterError) { if (scope.filterError) {
categories.push(_.filter(scope.stopped, function (e) { categories.push(
_.filter(scope.stopped, function(e) {
return e.status == "error"; return e.status == "error";
})); })
);
} }
if (scope.filterComplete) { if (scope.filterComplete) {
categories.push(_.filter(scope.stopped, function (e) { categories.push(
_.filter(scope.stopped, function(e) {
return e.status == "complete"; return e.status == "complete";
})); })
);
} }
if (scope.filterRemoved) { if (scope.filterRemoved) {
categories.push(_.filter(scope.stopped, function (e) { categories.push(
_.filter(scope.stopped, function(e) {
return e.status == "removed"; return e.status == "removed";
})); })
);
} }
var downloads = categories.map(function (category) { var downloads = categories
.map(function(category) {
// sort downloads within category by completness, most completed first // sort downloads within category by completness, most completed first
return _.sortBy(category, function (e) { return _.sortBy(category, function(e) {
return -(e.completedLength / e.totalLength); return -(e.completedLength / e.totalLength);
}); });
}).reduce(function (downloads, category) { })
.reduce(function(downloads, category) {
return downloads.concat(category); return downloads.concat(category);
}, []); }, []);
@ -369,19 +413,19 @@ function(
scope.totalDownloads = downloads.length; scope.totalDownloads = downloads.length;
downloads = downloads.slice( (scope.currentPage - 1) * scope.pageSize ); downloads = downloads.slice((scope.currentPage - 1) * scope.pageSize);
downloads.splice( scope.pageSize ); downloads.splice(scope.pageSize);
return downloads; return downloads;
} };
scope.hasDirectURL = function() { scope.hasDirectURL = function() {
return rpc.getDirectURL() != ''; return rpc.getDirectURL() != "";
} };
scope.getDirectURL = function() { scope.getDirectURL = function() {
return rpc.getDirectURL(); return rpc.getDirectURL();
} };
// convert the donwload form aria2 to once used by the view, // convert the donwload form aria2 to once used by the view,
// minor additions of some fields and checks // minor additions of some fields and checks
@ -391,8 +435,7 @@ function(
dir: d.dir, dir: d.dir,
status: d.status, status: d.status,
gid: d.gid, gid: d.gid,
followedBy: (d.followedBy && d.followedBy.length == 1 followedBy: d.followedBy && d.followedBy.length == 1 ? d.followedBy[0] : null,
? d.followedBy[0] : null),
followedFrom: null, followedFrom: null,
numPieces: d.numPieces, numPieces: d.numPieces,
connections: d.connections, connections: d.connections,
@ -414,7 +457,7 @@ function(
fmtUploadSpeed: utils.fmtspeed(d.uploadSpeed), fmtUploadSpeed: utils.fmtspeed(d.uploadSpeed),
collapsed: true, collapsed: true,
animCollapsed: true, animCollapsed: true,
files: [], files: []
}; };
if (d.verifiedLength) { if (d.verifiedLength) {
ctx.verifiedLength = d.verifiedLength; ctx.verifiedLength = d.verifiedLength;
@ -424,27 +467,21 @@ function(
ctx.verifyIntegrityPending = d.verifyIntegrityPending; ctx.verifyIntegrityPending = d.verifyIntegrityPending;
ctx.status = "verifyPending"; ctx.status = "verifyPending";
} }
} } else {
else { if (ctx.gid !== d.gid) ctx.files = [];
if (ctx.gid !== d.gid)
ctx.files = [];
ctx.dir = d.dir; ctx.dir = d.dir;
ctx.status = d.status; ctx.status = d.status;
if(d.verifiedLength) if (d.verifiedLength) ctx.status = "verifing";
ctx.status = "verifing"; if (d.verifyIntegrityPending) ctx.status = "verifyPending";
if(d.verifyIntegrityPending)
ctx.status = "verifyPending"
ctx.errorCode = d.errorCode; ctx.errorCode = d.errorCode;
ctx.gid = d.gid; ctx.gid = d.gid;
ctx.followedBy = (d.followedBy && d.followedBy.length == 1 ctx.followedBy = d.followedBy && d.followedBy.length == 1 ? d.followedBy[0] : null;
? d.followedBy[0] : null);
ctx.followedFrom = null; ctx.followedFrom = null;
ctx.numPieces = d.numPieces; ctx.numPieces = d.numPieces;
ctx.connections = d.connections; ctx.connections = d.connections;
if ( typeof d.numSeeders === 'undefined' ) { if (typeof d.numSeeders === "undefined") {
ctx.numSeeders = ""; ctx.numSeeders = "";
} } else {
else {
ctx.connectionsTitle = "Connections (Seeders)"; ctx.connectionsTitle = "Connections (Seeders)";
ctx.numSeeders = " (" + d.numSeeders + ")"; ctx.numSeeders = " (" + d.numSeeders + ")";
} }
@ -458,12 +495,12 @@ function(
ctx.fmtCompletedLength = utils.fmtsize(d.completedLength); ctx.fmtCompletedLength = utils.fmtsize(d.completedLength);
} }
if (!d.verifiedLength) { if (!d.verifiedLength) {
delete ctx.verifiedLength delete ctx.verifiedLength;
} else if (ctx.verifiedLength !== d.verifiedLength) { } else if (ctx.verifiedLength !== d.verifiedLength) {
ctx.verifiedLength = d.verifiedLength; ctx.verifiedLength = d.verifiedLength;
} }
if (!d.verifyIntegrityPending) { if (!d.verifyIntegrityPending) {
delete ctx.verifyIntegrityPending delete ctx.verifyIntegrityPending;
} else if (ctx.verifyIntegrityPending !== d.verifyIntegrityPending) { } else if (ctx.verifyIntegrityPending !== d.verifyIntegrityPending) {
ctx.verifyIntegrityPending = d.verifyIntegrityPending; ctx.verifyIntegrityPending = d.verifyIntegrityPending;
} }
@ -500,19 +537,18 @@ function(
cfile.relpath = file.path.replace(re_slashes, slash); cfile.relpath = file.path.replace(re_slashes, slash);
if (!cfile.relpath) { if (!cfile.relpath) {
cfile.relpath = (file.uris && file.uris[0] && file.uris[0].uri) || "Unknown"; cfile.relpath = (file.uris && file.uris[0] && file.uris[0].uri) || "Unknown";
} } else if (!cfile.relpath.startsWith("[")) {
else if (!cfile.relpath.startsWith("[")) { // METADATA // METADATA
cfile.relpath = cfile.relpath.substr(ctx.dir.length + 1); cfile.relpath = cfile.relpath.substr(ctx.dir.length + 1);
} }
} }
cfile.selected = (file.selected === "true"); cfile.selected = file.selected === "true";
} }
cfiles.length = files.length; cfiles.length = files.length;
if (cfiles.length) { if (cfiles.length) {
dlName = cfiles[0].relpath; dlName = cfiles[0].relpath;
} }
} } else {
else {
delete ctx.files; delete ctx.files;
} }
@ -520,8 +556,7 @@ function(
if (d.bittorrent) { if (d.bittorrent) {
btName = d.bittorrent.info && d.bittorrent.info.name; btName = d.bittorrent.info && d.bittorrent.info.name;
ctx.bittorrent = true; ctx.bittorrent = true;
} } else {
else {
delete ctx.bittorrent; delete ctx.bittorrent;
} }
@ -538,8 +573,7 @@ function(
if (_.isArray(status)) { if (_.isArray(status)) {
if (status.length == 0) return false; if (status.length == 0) return false;
return hasStatus(d, status[0]) || hasStatus(d, status.slice(1)); return hasStatus(d, status[0]) || hasStatus(d, status.slice(1));
} } else {
else {
return d.status == status; return d.status == status;
} }
}; };
@ -548,8 +582,8 @@ function(
// current download speed, // current download speed,
// could be smarter by different heuristics // could be smarter by different heuristics
scope.getEta = function(d) { scope.getEta = function(d) {
return (d.totalLength-d.completedLength) / d.downloadSpeed; return (d.totalLength - d.completedLength) / d.downloadSpeed;
} };
scope.getProgressClass = function(d) { scope.getProgressClass = function(d) {
switch (d.status) { switch (d.status) {
@ -572,23 +606,21 @@ function(
// gets the progress in percentages // gets the progress in percentages
scope.getProgress = function(d) { scope.getProgress = function(d) {
var percentage = 0 var percentage = 0;
if (d.verifiedLength) if (d.verifiedLength) percentage = (d.verifiedLength / d.totalLength) * 100 || 0;
percentage = (d.verifiedLength / d.totalLength) * 100 || 0; else percentage = (d.completedLength / d.totalLength) * 100 || 0;
else
percentage = (d.completedLength / d.totalLength) * 100 || 0;
percentage = percentage.toFixed(2); percentage = percentage.toFixed(2);
if(!percentage) percentage = 0; if (!percentage) percentage = 0;
return percentage; return percentage;
}; };
// gets the upload ratio // gets the upload ratio
scope.getRatio = function(d) { scope.getRatio = function(d) {
var ratio = 0 var ratio = 0;
ratio = (d.uploadLength / d.completedLength) || 0; ratio = d.uploadLength / d.completedLength || 0;
ratio = ratio.toFixed(2); ratio = ratio.toFixed(2);
if(!ratio) ratio = 0; if (!ratio) ratio = 0;
return ratio; return ratio;
}; };
@ -597,14 +629,13 @@ function(
scope.getType = function(d) { scope.getType = function(d) {
var type = d.status; var type = d.status;
if (type == "paused") type = "waiting"; if (type == "paused") type = "waiting";
if (["error", "removed", "complete"].indexOf(type) != -1) if (["error", "removed", "complete"].indexOf(type) != -1) type = "stopped";
type = "stopped";
return type; return type;
}; };
scope.selectFiles = function(d) { scope.selectFiles = function(d) {
console.log('got back files for the torrent ...'); console.log("got back files for the torrent ...");
modals.invoke('selectFiles', d.files, function(files) { modals.invoke("selectFiles", d.files, function(files) {
var indexes = ""; var indexes = "";
_.forEach(files, function(f) { _.forEach(files, function(f) {
if (f.selected) { if (f.selected) {
@ -613,57 +644,60 @@ function(
}); });
indexes = indexes.slice(1); indexes = indexes.slice(1);
rpc.once('changeOption', [d.gid, {'select-file': indexes}], function(res) { rpc.once("changeOption", [d.gid, { "select-file": indexes }], function(res) {
console.log('changed indexes to:', indexes, res); console.log("changed indexes to:", indexes, res);
})
}); });
} });
};
scope.showSettings = function(d) { scope.showSettings = function(d) {
var type = scope.getType(d) var type = scope.getType(d),
, settings = {}; settings = {};
rpc.once('getOption', [d.gid], function(data) { rpc.once("getOption", [d.gid], function(data) {
var vals = data[0]; var vals = data[0];
var sets = _.cloneDeep(fsettings); var sets = _.cloneDeep(fsettings);
for (var i in sets) { for (var i in sets) {
if (type == 'active' && activeInclude.indexOf(i) == -1) continue; if (type == "active" && activeInclude.indexOf(i) == -1) continue;
if (type == 'waiting' && waitingExclude.indexOf(i) != -1) continue; if (type == "waiting" && waitingExclude.indexOf(i) != -1) continue;
settings[i] = sets[i]; settings[i] = sets[i];
settings[i].val = vals[i] || settings[i].val; settings[i].val = vals[i] || settings[i].val;
} }
modals.invoke('settings', settings, d.name + ' settings', 'Change', function(settings) { modals.invoke("settings", settings, d.name + " settings", "Change", function(settings) {
var sets = {}; var sets = {};
for (var i in settings) { sets[i] = settings[i].val }; for (var i in settings) {
sets[i] = settings[i].val;
}
rpc.once('changeOption', [d.gid, sets]); rpc.once("changeOption", [d.gid, sets]);
}); });
}); });
return false; return false;
};
scope.moveDown = function(d) {
rpc.once("changePosition", [d.gid, 1, "POS_CUR"]);
};
scope.moveUp = function(d) {
rpc.once("changePosition", [d.gid, -1, "POS_CUR"]);
};
} }
scope.moveDown = function (d) { ])
rpc.once('changePosition', [d.gid, 1, 'POS_CUR']); .filter("objFilter", function() {
};
scope.moveUp = function (d) {
rpc.once('changePosition', [d.gid, -1, 'POS_CUR']);
};
}])
.filter('objFilter', function(){
return function(input, filter) { return function(input, filter) {
input = input || {}; input = input || {};
var out = {}; var out = {};
for(key in input) { for (key in input) {
if (key.startsWith(filter)){ if (key.startsWith(filter)) {
out[key] = input[key]; out[key] = input[key];
} }
} }
return out; return out;
}; };
}); });

View File

@ -3,7 +3,7 @@ var parseFiles = function(files, cb) {
var txts = []; var txts = [];
var onload = function(res) { var onload = function(res) {
var txt = res.target.result; var txt = res.target.result;
txts.push(txt.split(',')[1]); txts.push(txt.split(",")[1]);
cnt--; cnt--;
if (!cnt) { if (!cnt) {
cb(txts); cb(txts);
@ -11,13 +11,13 @@ var parseFiles = function(files, cb) {
}; };
_.each(files, function(file) { _.each(files, function(file) {
cnt++; cnt++;
console.log('starting file reader'); console.log("starting file reader");
var reader = new FileReader(); var reader = new FileReader();
reader.onload = onload; reader.onload = onload;
reader.onerror = function(err) { reader.onerror = function(err) {
// return error // return error
// TODO: find a better way to propogate error upstream // TODO: find a better way to propogate error upstream
console.log('got back error', err); console.log("got back error", err);
cb([]); cb([]);
}; };
reader.readAsDataURL(file); reader.readAsDataURL(file);
@ -25,14 +25,22 @@ var parseFiles = function(files, cb) {
}; };
angular angular
.module('webui.ctrls.modal', [ .module("webui.ctrls.modal", [
"ui.bootstrap", 'webui.services.deps', 'webui.services.modals', 'webui.services.rpc', "ui.bootstrap",
'webui.services.configuration' "webui.services.deps",
]) "webui.services.modals",
.controller('ModalCtrl', [ "webui.services.rpc",
'$_', '$scope', '$modal', "$modals", '$rpc','$fileSettings', '$downloadProps', "webui.services.configuration"
])
.controller("ModalCtrl", [
"$_",
"$scope",
"$modal",
"$modals",
"$rpc",
"$fileSettings",
"$downloadProps",
function(_, scope, $modal, modals, rpc, fsettings, dprops) { function(_, scope, $modal, modals, rpc, fsettings, dprops) {
scope.getUris = { scope.getUris = {
open: function(cb) { open: function(cb) {
var self = this; var self = this;
@ -54,43 +62,48 @@ angular
scope: scope, scope: scope,
windowClass: "modal-large" windowClass: "modal-large"
}); });
this.inst.result.then(function() { this.inst.result.then(
function() {
delete self.inst; delete self.inst;
if (self.cb) { if (self.cb) {
var settings = {}; var settings = {};
// no need to send in default values, just the changed ones // no need to send in default values, just the changed ones
for (var i in self.settings) { for (var i in self.settings) {
if (fsettings[i].val != self.settings[i].val) if (fsettings[i].val != self.settings[i].val) settings[i] = self.settings[i].val;
settings[i] = self.settings[i].val;
} }
for (var i in self.fsettings) { for (var i in self.fsettings) {
if (fsettings[i].val != self.fsettings[i].val) if (fsettings[i].val != self.fsettings[i].val)
settings[i] = self.fsettings[i].val; settings[i] = self.fsettings[i].val;
} }
console.log('sending settings:', settings); console.log("sending settings:", settings);
self.cb(self.parse(), settings); self.cb(self.parse(), settings);
} }
}, },
function() { function() {
delete self.inst; delete self.inst;
}); }
);
}, },
parse: function() { parse: function() {
return _ return _.chain(this.uris.trim().split(/\r?\n/g))
.chain(this.uris.trim().split(/\r?\n/g))
.map(function(d) { .map(function(d) {
return _(d) return _(d)
.replace(/["'][^"']*["']/g, function(c) { .replace(/["'][^"']*["']/g, function(c) {
return c.replace(/%/g,'%25').replace(/ /g,'%20'); return c.replace(/%/g, "%25").replace(/ /g, "%20");
}) })
.trim() .trim()
.split(/\s+/g) .split(/\s+/g)
.map(function(c) { .map(function(c) {
return c.replace(/%20/g,' ').replace(/%25/g,'%').replace(/["']/g,''); return c
.replace(/%20/g, " ")
.replace(/%25/g, "%")
.replace(/["']/g, "");
}); });
}) })
.filter(function(d) { return d.length }) .filter(function(d) {
return d.length;
})
.value(); .value();
} }
}; };
@ -106,7 +119,8 @@ angular
scope: scope, scope: scope,
windowClass: "modal-large" windowClass: "modal-large"
}); });
this.inst.result.then(function() { this.inst.result.then(
function() {
delete self.inst; delete self.inst;
if (cb) { if (cb) {
cb(self.settings); cb(self.settings);
@ -114,7 +128,8 @@ angular
}, },
function() { function() {
delete self.inst; delete self.inst;
}); }
);
} }
}; };
@ -123,22 +138,23 @@ angular
var self = this; var self = this;
this.files = _.cloneDeep(files); this.files = _.cloneDeep(files);
var groupFiles = function (files) { var groupFiles = function(files) {
// sort files alphabetically // sort files alphabetically
files.sort(function (a, b) { files.sort(function(a, b) {
if (a.relpath < b.relpath) { if (a.relpath < b.relpath) {
return -1; return -1;
} else { } else {
return 1; return 1;
} }
}); });
function OrganizedFolder () { function OrganizedFolder() {
this.dirs = {}; this.dirs = {};
this.files = []; this.files = [];
this.show = false; this.show = false;
this.selected = true; this.selected = true;
} }
var folder = new OrganizedFolder(), tmp; var folder = new OrganizedFolder(),
tmp;
for (var i = 0; i < files.length; i++) { for (var i = 0; i < files.length; i++) {
tmp = folder; tmp = folder;
var str = files[i].relpath; var str = files[i].relpath;
@ -160,7 +176,8 @@ angular
windowClass: "modal-large" windowClass: "modal-large"
}); });
this.inst.result.then(function() { this.inst.result.then(
function() {
delete self.inst; delete self.inst;
if (cb) { if (cb) {
@ -169,7 +186,8 @@ angular
}, },
function() { function() {
delete self.inst; delete self.inst;
}); }
);
} }
}; };
@ -182,10 +200,11 @@ angular
this.inst = $modal.open({ this.inst = $modal.open({
templateUrl: "connection.html", templateUrl: "connection.html",
scope: scope, scope: scope,
windowClass: "modal-large", windowClass: "modal-large"
}); });
this.inst.result.then(function() { this.inst.result.then(
function() {
delete self.inst; delete self.inst;
if (cb) { if (cb) {
cb(self.conf); cb(self.conf);
@ -193,11 +212,12 @@ angular
}, },
function() { function() {
delete self.inst; delete self.inst;
}); }
);
} }
}; };
_.each(['getTorrents', 'getMetalinks'], function(name) { _.each(["getTorrents", "getMetalinks"], function(name) {
scope[name] = { scope[name] = {
open: function(cb) { open: function(cb) {
var self = this; var self = this;
@ -215,10 +235,11 @@ angular
this.inst = $modal.open({ this.inst = $modal.open({
templateUrl: name + ".html", templateUrl: name + ".html",
scope: scope, scope: scope,
windowClass: "modal-large", windowClass: "modal-large"
}); });
this.inst.result.then(function() { this.inst.result.then(
function() {
delete self.inst; delete self.inst;
if (cb) { if (cb) {
parseFiles(self.files, function(txts) { parseFiles(self.files, function(txts) {
@ -234,14 +255,15 @@ angular
settings[i] = self.fsettings[i].val; settings[i] = self.fsettings[i].val;
} }
console.log('sending settings:', settings); console.log("sending settings:", settings);
cb(txts, settings); cb(txts, settings);
}); });
} }
}, },
function() { function() {
delete self.inst; delete self.inst;
}); }
);
} }
}; };
}); });
@ -254,24 +276,34 @@ angular
templateUrl: name + ".html", templateUrl: name + ".html",
scope: scope scope: scope
}); });
this.inst.result.then(function() { this.inst.result.then(
function() {
delete self.inst; delete self.inst;
}, },
function() { function() {
delete self.inst; delete self.inst;
}); }
);
} }
}; };
}); });
rpc.once('getVersion', [], function(data) { rpc.once("getVersion", [], function(data) {
scope.miscellaneous = data[0]; scope.miscellaneous = data[0];
}); });
_.each([ _.each(
'getUris', 'getTorrents', 'getMetalinks', 'selectFiles', [
'settings', 'connection', 'server_info', 'about' "getUris",
], function(name) { "getTorrents",
"getMetalinks",
"selectFiles",
"settings",
"connection",
"server_info",
"about"
],
function(name) {
modals.register(name, function() { modals.register(name, function() {
if (scope[name].inst) { if (scope[name].inst) {
// Already open. // Already open.
@ -280,6 +312,7 @@ angular
var args = Array.prototype.slice.call(arguments, 0); var args = Array.prototype.slice.call(arguments, 0);
scope[name].open.apply(scope[name], args); scope[name].open.apply(scope[name], args);
}); });
}); }
);
}]); }
]);

View File

@ -1,22 +1,38 @@
angular angular
.module('webui.ctrls.nav', [ .module("webui.ctrls.nav", [
'webui.services.configuration', 'webui.services.modals', "webui.services.configuration",
'webui.services.rpc', 'webui.services.rpc.helpers', "webui.services.modals",
'webui.services.settings', 'webui.services.utils' "webui.services.rpc",
]) "webui.services.rpc.helpers",
.controller('NavCtrl', [ "webui.services.settings",
'$scope', '$modals', "webui.services.utils"
'$rpc', '$rpchelpers', '$fileSettings', ])
'$globalSettings', '$globalExclude', .controller("NavCtrl", [
'$utils', '$translate', '$filter', "$scope",
"$modals",
"$rpc",
"$rpchelpers",
"$fileSettings",
"$globalSettings",
"$globalExclude",
"$utils",
"$translate",
"$filter",
function( function(
scope, modals, scope,
rpc, rhelpers, fsettings, modals,
gsettings, gexclude, rpc,
utils, translate, filter rhelpers,
fsettings,
gsettings,
gexclude,
utils,
translate,
filter
) { ) {
scope.isFeatureEnabled = function(f) {
scope.isFeatureEnabled = function(f) { return rhelpers.isFeatureEnabled(f) }; return rhelpers.isFeatureEnabled(f);
};
// initially collapsed in mobile resolution // initially collapsed in mobile resolution
scope.collapsed = true; scope.collapsed = true;
@ -29,44 +45,36 @@ angular
// manage download functions // manage download functions
scope.forcePauseAll = function() { scope.forcePauseAll = function() {
rpc.once('forcePauseAll', []); rpc.once("forcePauseAll", []);
} };
scope.purgeDownloadResult = function() { scope.purgeDownloadResult = function() {
rpc.once('purgeDownloadResult', []); rpc.once("purgeDownloadResult", []);
} };
scope.unpauseAll = function() { scope.unpauseAll = function() {
rpc.once('unpauseAll', []); rpc.once("unpauseAll", []);
} };
scope.addUris = function() { scope.addUris = function() {
modals.invoke( modals.invoke("getUris", _.bind(rhelpers.addUris, rhelpers));
'getUris', _.bind(rhelpers.addUris, rhelpers)
);
}; };
scope.addMetalinks = function() { scope.addMetalinks = function() {
modals.invoke( modals.invoke("getMetalinks", _.bind(rhelpers.addMetalinks, rhelpers));
'getMetalinks', _.bind(rhelpers.addMetalinks, rhelpers)
);
}; };
scope.addTorrents = function() { scope.addTorrents = function() {
modals.invoke( modals.invoke("getTorrents", _.bind(rhelpers.addTorrents, rhelpers));
'getTorrents', _.bind(rhelpers.addTorrents, rhelpers)
);
}; };
scope.changeCSettings = function() { scope.changeCSettings = function() {
modals.invoke( modals.invoke("connection", rpc.getConfiguration(), _.bind(rpc.configure, rpc));
'connection', rpc.getConfiguration(), _.bind(rpc.configure, rpc) };
);
}
scope.changeGSettings = function() { scope.changeGSettings = function() {
rpc.once('getGlobalOption', [], function(data) { rpc.once("getGlobalOption", [], function(data) {
var starred = utils.getCookie('aria2props'); var starred = utils.getCookie("aria2props");
if (!starred || !starred.indexOf) starred = []; if (!starred || !starred.indexOf) starred = [];
var vals = data[0]; var vals = data[0];
var settings = {}; var settings = {};
@ -88,58 +96,53 @@ angular
if (i in gexclude) continue; if (i in gexclude) continue;
if (!(i in settings)) { if (!(i in settings)) {
settings[i] = { name: i, val: vals[i], desc: '', starred: starred.indexOf(i) != -1 }; settings[i] = { name: i, val: vals[i], desc: "", starred: starred.indexOf(i) != -1 };
} } else {
else {
settings[i].val = vals[i]; settings[i].val = vals[i];
} }
} }
modals.invoke( modals.invoke(
'settings', _.cloneDeep(settings), "settings",
filter('translate')('Global Settings'), _.cloneDeep(settings),
filter('translate')('Save'), filter("translate")("Global Settings"),
filter("translate")("Save"),
function(chsettings) { function(chsettings) {
var sets = {}; var sets = {};
var starred = []; var starred = [];
for (var i in chsettings) { for (var i in chsettings) {
// no need to change default values // no need to change default values
if (settings[i].val != chsettings[i].val) if (settings[i].val != chsettings[i].val) sets[i] = chsettings[i].val;
sets[i] = chsettings[i].val
if (chsettings[i].starred) { if (chsettings[i].starred) {
starred.push(i); starred.push(i);
} }
}; }
console.log('saving aria2 settings:', sets); console.log("saving aria2 settings:", sets);
console.log('saving aria2 starred:', starred); console.log("saving aria2 starred:", starred);
rpc.once('changeGlobalOption', [sets]); rpc.once("changeGlobalOption", [sets]);
utils.setCookie('aria2props', starred); utils.setCookie("aria2props", starred);
}); }
);
}); });
}; };
scope.showServerInfo = function() { scope.showServerInfo = function() {
modals.invoke( modals.invoke("server_info");
'server_info'
);
}; };
scope.showAbout = function() { scope.showAbout = function() {
modals.invoke( modals.invoke("about");
'about'
);
}; };
scope.changeLanguage = function (langkey) { scope.changeLanguage = function(langkey) {
translate.use(langkey); translate.use(langkey);
}; };
scope.shutDownServer = function () { scope.shutDownServer = function() {
rpc.once('shutdown', []); rpc.once("shutdown", []);
}; };
}]); }
]);

View File

@ -1,14 +1,25 @@
angular.module('webui.ctrls.props', [ angular
'webui.services.utils', 'webui.services.settings', 'webui.services.deps', .module("webui.ctrls.props", [
'webui.services.rpc', 'webui.services.configuration', "webui.services.utils",
]) "webui.services.settings",
.controller('StarredPropsCtrl', ['$scope', '$_', '$utils', '$rpc', '$globalSettings', '$fileSettings', '$starredProps', "webui.services.deps",
"webui.services.rpc",
"webui.services.configuration"
])
.controller("StarredPropsCtrl", [
"$scope",
"$_",
"$utils",
"$rpc",
"$globalSettings",
"$fileSettings",
"$starredProps",
function(scope, _, utils, rpc, gsettings, fsettings, starredProps) { function(scope, _, utils, rpc, gsettings, fsettings, starredProps) {
scope._props = []; scope._props = [];
scope.dirty = true; scope.dirty = true;
scope.properties = []; scope.properties = [];
scope.getProps = function() { scope.getProps = function() {
var props = utils.getCookie('aria2props'); var props = utils.getCookie("aria2props");
if (!props || !props.indexOf) props = starredProps; // default properties starred in the global configuration file if (!props || !props.indexOf) props = starredProps; // default properties starred in the global configuration file
return props; return props;
@ -20,7 +31,7 @@ angular.module('webui.ctrls.props', [
} }
return false; return false;
} };
scope.save = function() { scope.save = function() {
var sets = {}; var sets = {};
@ -33,11 +44,11 @@ angular.module('webui.ctrls.props', [
} }
if (found) { if (found) {
rpc.once('changeGlobalOption', [sets]); rpc.once("changeGlobalOption", [sets]);
}
} }
};
rpc.subscribe('getGlobalOption', [], function(data) { rpc.subscribe("getGlobalOption", [], function(data) {
var vals = data[0]; var vals = data[0];
var props = scope.getProps(); var props = scope.getProps();
var arr = []; var arr = [];
@ -51,21 +62,18 @@ angular.module('webui.ctrls.props', [
} }
set.name = props[i]; set.name = props[i];
arr.push(set); arr.push(set);
} } else if (props[i] in fsettings) {
else if (props[i] in fsettings) {
set = fsettings[props[i]]; set = fsettings[props[i]];
if (props[i] in vals) { if (props[i] in vals) {
set.val = vals[props[i]]; set.val = vals[props[i]];
} }
set.name = props[i]; set.name = props[i];
arr.push(set); arr.push(set);
} } else if (props[i] in vals) {
else if (props[i] in vals) { arr.push({ name: props[i], val: vals[props[i]] });
arr.push({name: props[i], val: vals[props[i]]});
} }
} }
utils.mergeMap(arr, scope.properties, function(prop, nprop) { utils.mergeMap(arr, scope.properties, function(prop, nprop) {
nprop = nprop || {}; nprop = nprop || {};
nprop.name = prop.name; nprop.name = prop.name;
@ -74,12 +82,12 @@ angular.module('webui.ctrls.props', [
if (nprop._val == nprop.val || nprop.val == prop.val) { if (nprop._val == nprop.val || nprop.val == prop.val) {
nprop._val = prop.val; nprop._val = prop.val;
nprop.val = prop.val; nprop.val = prop.val;
} } else {
else {
nprop._val = prop.val; nprop._val = prop.val;
} }
nprop.desc = prop.desc; nprop.desc = prop.desc;
return nprop; return nprop;
}); });
}); });
}]); }
]);

View File

@ -1,10 +1,10 @@
var draw = function(canvas, chunks, fillStyle) { var draw = function(canvas, chunks, fillStyle) {
chunks = chunks || []; chunks = chunks || [];
if (!canvas.getContext) { if (!canvas.getContext) {
console.log('use chunk bar on an canvas implementation!'); console.log("use chunk bar on an canvas implementation!");
return; return;
} }
var ctx = canvas.getContext('2d'); var ctx = canvas.getContext("2d");
ctx.fillStyle = fillStyle || "#149BDF"; ctx.fillStyle = fillStyle || "#149BDF";
ctx.clearRect(0, 0, canvas.width, canvas.height); ctx.clearRect(0, 0, canvas.width, canvas.height);
var x = 0, var x = 0,
@ -12,22 +12,22 @@ var draw = function(canvas, chunks, fillStyle) {
height = canvas.height; height = canvas.height;
chunks.forEach(function(c) { chunks.forEach(function(c) {
var dx = c.ratio * width; var dx = c.ratio * width;
if (c.show) if (c.show) ctx.fillRect(x, 0, dx, height);
ctx.fillRect(x, 0, dx, height);
x += dx; x += dx;
}); });
}; };
// put chunkbar and bitfield attributes in a canvas element // put chunkbar and bitfield attributes in a canvas element
// to use the directive, draw is optional and canvas is // to use the directive, draw is optional and canvas is
// only drawn when it is true if given // only drawn when it is true if given
angular angular.module("webui.directives.chunkbar", ["webui.services.utils"]).directive("chunkbar", [
.module('webui.directives.chunkbar', ['webui.services.utils']) "$utils",
.directive('chunkbar', ['$utils', function(utils) { function(utils) {
return function(scope, elem, attrs) { return function(scope, elem, attrs) {
var bitfield = "", pieces = 0, canDraw = true; var bitfield = "",
pieces = 0,
canDraw = true;
var update = function() { var update = function() {
if (canDraw) if (canDraw) draw(elem[0], utils.getChunksFromHex(bitfield, pieces), attrs.fillStyle);
draw(elem[0], utils.getChunksFromHex(bitfield, pieces), attrs.fillStyle);
}; };
scope.$watch(attrs.bitfield, function(bf) { scope.$watch(attrs.bitfield, function(bf) {
bitfield = bf; bitfield = bf;
@ -46,4 +46,5 @@ angular
update(); update();
}; };
}]); }
]);

View File

@ -2,8 +2,12 @@
// the last 180 secs, it also takes draw as an optional attribute and only // the last 180 secs, it also takes draw as an optional attribute and only
// draws the graph when it is true, if not given then graph is always drawn // draws the graph when it is true, if not given then graph is always drawn
angular angular
.module('webui.directives.dgraph', ['webui.filters.bytes', 'webui.services.deps']) .module("webui.directives.dgraph", ["webui.filters.bytes", "webui.services.deps"])
.directive('dgraph', ['$', '$filter', '$parse', function($, filter, parse) { .directive("dgraph", [
"$",
"$filter",
"$parse",
function($, filter, parse) {
var ratio = 0.6; var ratio = 0.6;
var xfmt = "%H:%M:%S"; var xfmt = "%H:%M:%S";
var yTicks = 7; // Number of y-axis ticks (sans 0) var yTicks = 7; // Number of y-axis ticks (sans 0)
@ -11,45 +15,45 @@ angular
var yTickBase = 10240; // y-axis ticks must be a multiple of this (bytes). var yTickBase = 10240; // y-axis ticks must be a multiple of this (bytes).
try { try {
// Try to detect AM/PM locales. // Try to detect AM/PM locales.
if (!/16/.test(new Date(2000,0,1,16,7,9).toLocaleTimeString())) { if (!/16/.test(new Date(2000, 0, 1, 16, 7, 9).toLocaleTimeString())) {
xfmt = "%I:%M:%S %P"; xfmt = "%I:%M:%S %P";
} }
} } catch (ex) {
catch (ex) {
// Ignore. Browser does not support toLocaleTimeString. // Ignore. Browser does not support toLocaleTimeString.
} }
return function(scope, elem, attrs) { return function(scope, elem, attrs) {
var canDraw = false; var canDraw = false;
var graphSize = 180 var graphSize = 180,
, dspeed = 0, uspeed = 0, hasSpeeds = false dspeed = 0,
, dconf = { uspeed = 0,
hasSpeeds = false,
dconf = {
label: "DOWN", label: "DOWN",
data: [], data: [],
color: "#00ff00", color: "#00ff00",
lines: { show: true } lines: { show: true }
} },
, uconf = { uconf = {
label: "UP", label: "UP",
data: [], data: [],
color: "#0000ff", color: "#0000ff",
lines: { show: true } lines: { show: true }
} };
;
// hack for the null height for flot elem // hack for the null height for flot elem
elem.height(elem.width() * ratio); elem.height(elem.width() * ratio);
var graph = $.plot(elem, [dconf, uconf], { var graph = $.plot(elem, [dconf, uconf], {
legend: { legend: {
show: (attrs.nolabel == undefined), show: attrs.nolabel == undefined,
backgroundOpacity: 0, backgroundOpacity: 0,
margin: [10, 20], margin: [10, 20],
labelFormatter: function(label, series) { labelFormatter: function(label, series) {
if (!series.data.length) { if (!series.data.length) {
return label; return label;
} }
return label + " (" + filter("bspeed")(series.data[series.data.length-1][1]) + ")"; return label + " (" + filter("bspeed")(series.data[series.data.length - 1][1]) + ")";
}, },
position: "sw" position: "sw"
}, },
@ -66,12 +70,11 @@ angular
var res = [0]; var res = [0];
yt = +attrs.yticks || yticks; // allow users of directive to overwride yticks yt = +attrs.yticks || yticks; // allow users of directive to overwride yticks
var step = yTickBase * Math.max(1, Math.ceil(axis.max / (yt * yTickBase))) var step = yTickBase * Math.max(1, Math.ceil(axis.max / (yt * yTickBase)));
for (var s = 0; s < yt; s++) { for (var s = 0; s < yt; s++) {
var c = step * s; var c = step * s;
if (c > axis.max) if (c > axis.max) break;
break;
res.push(step * s); res.push(step * s);
} }
@ -79,7 +82,7 @@ angular
return res; return res;
}, },
tickFormatter: function(val, axis) { tickFormatter: function(val, axis) {
return filter('bspeed')(val); return filter("bspeed")(val);
}, },
min: 0 min: 0
} }
@ -110,7 +113,8 @@ angular
cnt.getDate(), cnt.getDate(),
cnt.getHours(), cnt.getHours(),
cnt.getMinutes(), cnt.getMinutes(),
cnt.getSeconds()); cnt.getSeconds()
);
if (dconf.data.length === graphSize) dconf.data.shift(); if (dconf.data.length === graphSize) dconf.data.shift();
dconf.data.push([cnt, dspeed]); dconf.data.push([cnt, dspeed]);
@ -122,7 +126,7 @@ angular
if (canDraw) { if (canDraw) {
draw(); draw();
} }
}; }
scope.$watch(attrs.dspeed, function(val) { scope.$watch(attrs.dspeed, function(val) {
if (val === undefined) { if (val === undefined) {
@ -146,10 +150,10 @@ angular
var interval = setInterval(update, 1000); var interval = setInterval(update, 1000);
angular.element(window).bind('resize', draw); angular.element(window).bind("resize", draw);
elem.bind('$destroy', function() { elem.bind("$destroy", function() {
clearInterval(interval); clearInterval(interval);
}); });
}; };
}]); }
]);

View File

@ -2,13 +2,14 @@
// puts the files selected in an attribute // puts the files selected in an attribute
var app = angular.module("webui.directives.fileselect", ["webui.services.deps"]); var app = angular.module("webui.directives.fileselect", ["webui.services.deps"]);
app.directive("indeterminate", [ app.directive("indeterminate", [
"$parse", function syncInput (parse) { "$parse",
function syncInput(parse) {
return { return {
require : "ngModel", require: "ngModel",
// Restrict the directive so it can only be used as an attribute // Restrict the directive so it can only be used as an attribute
restrict : "A", restrict: "A",
link : function link (scope, elem, attr, ngModelCtrl) { link: function link(scope, elem, attr, ngModelCtrl) {
// Whenever the bound value of the attribute changes we update // Whenever the bound value of the attribute changes we update
// use upward emit notification for change to prevent the performance penalty bring by $scope.$watch // use upward emit notification for change to prevent the performance penalty bring by $scope.$watch
var getter = parse(attr["ngModel"]); var getter = parse(attr["ngModel"]);
@ -16,40 +17,45 @@ app.directive("indeterminate", [
var children = []; // cache children input var children = []; // cache children input
var cacheSelectedSubInputNumber = 0; var cacheSelectedSubInputNumber = 0;
var cacheNoSelectedSubInputNumber = 0; var cacheNoSelectedSubInputNumber = 0;
var get = function () { var get = function() {
return getter(scope); return getter(scope);
}; };
// the internal 'indeterminate' flag on the attached dom element // the internal 'indeterminate' flag on the attached dom element
var setIndeterminateState = function (newValue) { var setIndeterminateState = function(newValue) {
elem.prop("indeterminate", newValue); elem.prop("indeterminate", newValue);
}; };
var setModelValueWithSideEffect = function (newVal) { // will cause to emit corresponding events var setModelValueWithSideEffect = function(newVal) {
// will cause to emit corresponding events
ngModelCtrl.$setViewValue(newVal); ngModelCtrl.$setViewValue(newVal);
ngModelCtrl.$render(); ngModelCtrl.$render();
}; };
var passIfIsLeafChild = function (callback) { // ensure to execute callback only when this input has one or more subinputs var passIfIsLeafChild = function(callback) {
return function () { // ensure to execute callback only when this input has one or more subinputs
return function() {
if (children.length > 0) { if (children.length > 0) {
callback.apply(this, arguments); callback.apply(this, arguments);
} }
}; };
}; };
var passIfNotIsLeafChild = function (callback) { // ensure to execute callback only when this input hasn't any subinput var passIfNotIsLeafChild = function(callback) {
return function () { // ensure to execute callback only when this input hasn't any subinput
return function() {
if (children.length === 0) { if (children.length === 0) {
callback.apply(this, arguments); callback.apply(this, arguments);
} }
}; };
}; };
var passThroughThisScope = function (callback) { // pass through the event from the scope where they sent var passThroughThisScope = function(callback) {
return function (event) { // pass through the event from the scope where they sent
return function(event) {
if (event.targetScope !== event.currentScope) { if (event.targetScope !== event.currentScope) {
return callback.apply(this, arguments); return callback.apply(this, arguments);
} }
}; };
}; };
var passIfIsIndeterminate = function (callback) { // pass through the event when this input is indeterminate var passIfIsIndeterminate = function(callback) {
return function () { // pass through the event when this input is indeterminate
return function() {
if (!elem.prop("indeterminate")) { if (!elem.prop("indeterminate")) {
return callback.apply(this, arguments); return callback.apply(this, arguments);
} }
@ -64,28 +70,42 @@ app.directive("indeterminate", [
if (attr["indeterminate"] && parse(attr["indeterminate"]).constant) { if (attr["indeterminate"] && parse(attr["indeterminate"]).constant) {
setIndeterminateState(scope.$eval(attr["indeterminate"])); // set to default value (set in template) setIndeterminateState(scope.$eval(attr["indeterminate"])); // set to default value (set in template)
} }
if (attr["indeterminate"] && parse(attr["indeterminate"]).constant && !scope.$eval(attr["indeterminate"])) { if (
attr["indeterminate"] &&
parse(attr["indeterminate"]).constant &&
!scope.$eval(attr["indeterminate"])
) {
// when this input wont have subinput, they will only receive parent change and emit child change event // when this input wont have subinput, they will only receive parent change and emit child change event
ngModelCtrl.$viewChangeListeners.push(passIfNotIsLeafChild(function () { ngModelCtrl.$viewChangeListeners.push(
passIfNotIsLeafChild(function() {
scope.$emit("childSelectedChange", get()); // notifies parents to change their state scope.$emit("childSelectedChange", get()); // notifies parents to change their state
})); })
scope.$on("ParentSelectedChange", passThroughThisScope(passIfNotIsLeafChild( );
function (event, newVal) { scope.$on(
"ParentSelectedChange",
passThroughThisScope(
passIfNotIsLeafChild(function(event, newVal) {
setModelValueWithSideEffect(newVal); // set value to parent's value; this will cause listener to emit childChange event; this won't be a infinite loop setModelValueWithSideEffect(newVal); // set value to parent's value; this will cause listener to emit childChange event; this won't be a infinite loop
}))); })
)
);
// init first time and only once // init first time and only once
scope.$emit("i'm child input", get); // traverses upwards toward the root scope notifying the listeners for keep reference to this input's value scope.$emit("i'm child input", get); // traverses upwards toward the root scope notifying the listeners for keep reference to this input's value
scope.$emit("childSelectedChange", get()); // force emitted, and force the parent change their state base on children at first time scope.$emit("childSelectedChange", get()); // force emitted, and force the parent change their state base on children at first time
} else { } else {
// establish parent-child's relation // establish parent-child's relation
// listen for the child emitted token // listen for the child emitted token
scope.$on("i'm child input", passThroughThisScope( // can't apply pass passIfIsLeafChild, at beginning all has not child input scope.$on(
function (event, child) { "i'm child input",
passThroughThisScope(
// can't apply pass passIfIsLeafChild, at beginning all has not child input
function(event, child) {
children.push(child); children.push(child);
}) }
)
); );
var updateBaseOnChildrenState = function (event, newChildValue) { var updateBaseOnChildrenState = function(event, newChildValue) {
if ((cacheSelectedSubInputNumber + cacheNoSelectedSubInputNumber) !== children.length) { if (cacheSelectedSubInputNumber + cacheNoSelectedSubInputNumber !== children.length) {
// cache childern state // cache childern state
cacheSelectedSubInputNumber = 0; cacheSelectedSubInputNumber = 0;
cacheNoSelectedSubInputNumber = 0; cacheNoSelectedSubInputNumber = 0;
@ -107,18 +127,25 @@ app.directive("indeterminate", [
cacheNoSelectedSubInputNumber++; cacheNoSelectedSubInputNumber++;
} }
} }
var allSelected = (cacheNoSelectedSubInputNumber === 0); // if doesn't has any no selected input var allSelected = cacheNoSelectedSubInputNumber === 0; // if doesn't has any no selected input
var anySeleted = (cacheSelectedSubInputNumber > 0); var anySeleted = cacheSelectedSubInputNumber > 0;
setIndeterminateState(allSelected !== anySeleted); // if at least one is selected, but not all then set input property indeterminate to true setIndeterminateState(allSelected !== anySeleted); // if at least one is selected, but not all then set input property indeterminate to true
setModelValueWithSideEffect(allSelected); // change binding model value and trigger onchange event setModelValueWithSideEffect(allSelected); // change binding model value and trigger onchange event
}; };
// is not leaf input, Only receive child change and parent change event // is not leaf input, Only receive child change and parent change event
ngModelCtrl.$viewChangeListeners.push(passIfIsLeafChild(passIfIsIndeterminate(function () { ngModelCtrl.$viewChangeListeners.push(
passIfIsLeafChild(
passIfIsIndeterminate(function() {
// emit when input property indeterminate is false, prevent recursively emitting event from parent to children, children to parent // emit when input property indeterminate is false, prevent recursively emitting event from parent to children, children to parent
scope.$broadcast("ParentSelectedChange", get()); scope.$broadcast("ParentSelectedChange", get());
}))); })
)
);
// reset input state base on children inputs // reset input state base on children inputs
scope.$on("childSelectedChange", passThroughThisScope(passIfIsLeafChild(updateBaseOnChildrenState))); scope.$on(
"childSelectedChange",
passThroughThisScope(passIfIsLeafChild(updateBaseOnChildrenState))
);
} }
} }
}; };

View File

@ -1,15 +1,18 @@
// watches changes in the file upload control (input[file]) and // watches changes in the file upload control (input[file]) and
// puts the files selected in an attribute // puts the files selected in an attribute
angular angular.module("webui.directives.fselect", ["webui.services.deps"]).directive("fselect", [
.module('webui.directives.fselect', ['webui.services.deps']) "$parse",
.directive('fselect', ['$parse', function(parse) { function(parse) {
return function(scope, elem, attrs) { return function(scope, elem, attrs) {
var setfiles = parse(attrs.fselect || attrs.files).assign; var setfiles = parse(attrs.fselect || attrs.files).assign;
elem.bind('change', function() { elem
.bind("change", function() {
setfiles(scope, elem[0].files); setfiles(scope, elem[0].files);
}).filestyle({ })
placeholder : 'No file selected', .filestyle({
iconName : 'fa fa-folder-open', placeholder: "No file selected",
iconName: "fa fa-folder-open"
}); });
}; };
}]); }
]);

View File

@ -2,16 +2,15 @@ webui.directive("textarea", function() {
return { return {
restrict: "E", restrict: "E",
link: function(scope, element) { link: function(scope, element) {
element.attr( element
"placeholder", .attr("placeholder", function(index, placeholder) {
function(index, placeholder) {
if (placeholder !== undefined) { if (placeholder !== undefined) {
return placeholder.replace(/\\n/g, "\n"); return placeholder.replace(/\\n/g, "\n");
} else { } else {
return placeholder; return placeholder;
} }
} })
).bind("keydown keypress", function(event) { .bind("keydown keypress", function(event) {
if (event.ctrlKey && event.which === 13) { if (event.ctrlKey && event.which === 13) {
event.preventDefault(); event.preventDefault();
scope.$close(); scope.$close();

View File

@ -1,11 +1,20 @@
angular.module('webui.filters.bytes', ["webui.services.utils"]) angular
.filter('blength', ['$filter', "$utils", function(filter, utils) { .module("webui.filters.bytes", ["webui.services.utils"])
.filter("blength", [
"$filter",
"$utils",
function(filter, utils) {
return utils.fmtsize; return utils.fmtsize;
}]) }
.filter('bspeed', ['$filter', "$utils", function(filter, utils) { ])
.filter("bspeed", [
"$filter",
"$utils",
function(filter, utils) {
return utils.fmtspeed; return utils.fmtspeed;
}]) }
.filter('time', function() { ])
.filter("time", function() {
function pad(f) { function pad(f) {
return ("0" + f).substr(-2); return ("0" + f).substr(-2);
} }
@ -15,11 +24,11 @@ angular.module('webui.filters.bytes', ["webui.services.utils"])
if (!time || !isFinite(time)) return "∞"; if (!time || !isFinite(time)) return "∞";
var secs = time % 60; var secs = time % 60;
if (time < 60) return secs + "s"; if (time < 60) return secs + "s";
var mins = Math.floor((time % 3600) / 60) var mins = Math.floor((time % 3600) / 60);
if (time < 3600) return pad(mins) + ":" + pad(secs); if (time < 3600) return pad(mins) + ":" + pad(secs);
var hrs = Math.floor((time % 86400) / 3600); var hrs = Math.floor((time % 86400) / 3600);
if (time < 86400) return pad(hrs) + ":" + pad(mins) + ":" + pad(secs); if (time < 86400) return pad(hrs) + ":" + pad(mins) + ":" + pad(secs);
var days = Math.floor(time / 86400); var days = Math.floor(time / 86400);
return days + "::" + pad(hrs) + ":" + pad(mins) + ":" + pad(secs); return days + "::" + pad(hrs) + ":" + pad(mins) + ":" + pad(secs);
}; };
}); });

View File

@ -1,4 +1,3 @@
angular.module('webui.filters.url', ["webui.services.utils"]) angular.module("webui.filters.url", ["webui.services.utils"]).filter("encodeURI", function() {
.filter('encodeURI', function() {
return window.encodeURI; return window.encodeURI;
}); });

View File

@ -1,16 +1,28 @@
var webui = angular.module('webui', [ var webui = angular.module("webui", [
'webui.services.utils', 'webui.services.deps', 'webui.services.base64', "webui.services.utils",
'webui.services.configuration', 'webui.services.rpc', "webui.services.deps",
'webui.services.modals', 'webui.services.alerts', "webui.services.base64",
'webui.services.settings', 'webui.services.settings.filters', "webui.services.configuration",
'webui.filters.bytes','webui.filters.url', "webui.services.rpc",
'webui.directives.chunkbar', 'webui.directives.dgraph', 'webui.directives.fselect', "webui.directives.fileselect", "webui.services.modals",
'webui.ctrls.download', 'webui.ctrls.nav', 'webui.ctrls.modal', 'webui.ctrls.alert', "webui.services.alerts",
'webui.ctrls.props', "webui.services.settings",
"webui.services.settings.filters",
"webui.filters.bytes",
"webui.filters.url",
"webui.directives.chunkbar",
"webui.directives.dgraph",
"webui.directives.fselect",
"webui.directives.fileselect",
"webui.ctrls.download",
"webui.ctrls.nav",
"webui.ctrls.modal",
"webui.ctrls.alert",
"webui.ctrls.props",
// external deps // external deps
'ui.bootstrap', "ui.bootstrap",
// translate // translate
'pascalprecht.translate' "pascalprecht.translate"
]); ]);
function mergeTranslation(translation, base) { function mergeTranslation(translation, base) {
@ -27,25 +39,25 @@ function mergeTranslation(translation, base) {
return translation; return translation;
} }
webui.config(function ($translateProvider, $locationProvider) { webui.config(function($translateProvider, $locationProvider) {
$translateProvider $translateProvider
.translations('en_US', translations.en_US) .translations("en_US", translations.en_US)
.translations('nl_NL', mergeTranslation(translations.nl_NL, translations.en_US)) .translations("nl_NL", mergeTranslation(translations.nl_NL, translations.en_US))
.translations('th_TH', mergeTranslation(translations.th_TH, translations.en_US)) .translations("th_TH", mergeTranslation(translations.th_TH, translations.en_US))
.translations('zh_CN', mergeTranslation(translations.zh_CN, translations.en_US)) .translations("zh_CN", mergeTranslation(translations.zh_CN, translations.en_US))
.translations('zh_TW', mergeTranslation(translations.zh_TW, translations.en_US)) .translations("zh_TW", mergeTranslation(translations.zh_TW, translations.en_US))
.translations('pl_PL', mergeTranslation(translations.pl_PL, translations.en_US)) .translations("pl_PL", mergeTranslation(translations.pl_PL, translations.en_US))
.translations('fr_FR', mergeTranslation(translations.fr_FR, translations.en_US)) .translations("fr_FR", mergeTranslation(translations.fr_FR, translations.en_US))
.translations('de_DE', mergeTranslation(translations.de_DE, translations.en_US)) .translations("de_DE", mergeTranslation(translations.de_DE, translations.en_US))
.translations('es_ES', mergeTranslation(translations.es_ES, translations.en_US)) .translations("es_ES", mergeTranslation(translations.es_ES, translations.en_US))
.translations('ru_RU', mergeTranslation(translations.ru_RU, translations.en_US)) .translations("ru_RU", mergeTranslation(translations.ru_RU, translations.en_US))
.translations('it_IT', mergeTranslation(translations.it_IT, translations.en_US)) .translations("it_IT", mergeTranslation(translations.it_IT, translations.en_US))
.translations('tr_TR', mergeTranslation(translations.tr_TR, translations.en_US)) .translations("tr_TR", mergeTranslation(translations.tr_TR, translations.en_US))
.translations('cs_CZ', mergeTranslation(translations.cs_CZ, translations.en_US)) .translations("cs_CZ", mergeTranslation(translations.cs_CZ, translations.en_US))
.translations('fa_IR', mergeTranslation(translations.fa_IR, translations.en_US)) .translations("fa_IR", mergeTranslation(translations.fa_IR, translations.en_US))
.translations('id_ID', mergeTranslation(translations.id_ID, translations.en_US)) .translations("id_ID", mergeTranslation(translations.id_ID, translations.en_US))
.translations('pt_BR', mergeTranslation(translations.pt_BR, translations.en_US)) .translations("pt_BR", mergeTranslation(translations.pt_BR, translations.en_US))
.useSanitizeValueStrategy('escapeParameters') .useSanitizeValueStrategy("escapeParameters")
.determinePreferredLanguage(); .determinePreferredLanguage();
$locationProvider.html5Mode({ $locationProvider.html5Mode({
@ -56,13 +68,15 @@ webui.config(function ($translateProvider, $locationProvider) {
$(function() { $(function() {
if (!String.prototype.startsWith) { if (!String.prototype.startsWith) {
Object.defineProperty(String.prototype, 'startsWith', { Object.defineProperty(String.prototype, "startsWith", {
enumerable: false, configurable: false, writable: false, enumerable: false,
value: function (searchString, position) { configurable: false,
writable: false,
value: function(searchString, position) {
position = position || 0; position = position || 0;
return this.indexOf(searchString, position) === position; return this.indexOf(searchString, position) === position;
} }
}); });
} }
angular.bootstrap(document, ['webui']) angular.bootstrap(document, ["webui"]);
}); });

View File

@ -7,7 +7,8 @@
* Version 1.2.1 * Version 1.2.1
* Licensed under the MIT license. * Licensed under the MIT license.
*/ */
(function($) {"use strict"; (function($) {
"use strict";
var nextId = 0; var nextId = 0;
@ -18,28 +19,28 @@
}; };
Filestyle.prototype = { Filestyle.prototype = {
clear : function() { clear: function() {
this.$element.val(''); this.$element.val("");
this.$elementFilestyle.find(':text').val(''); this.$elementFilestyle.find(":text").val("");
this.$elementFilestyle.find('.badge').remove(); this.$elementFilestyle.find(".badge").remove();
}, },
destroy : function() { destroy: function() {
this.$element.removeAttr('style').removeData('filestyle'); this.$element.removeAttr("style").removeData("filestyle");
this.$elementFilestyle.remove(); this.$elementFilestyle.remove();
}, },
disabled : function(value) { disabled: function(value) {
if (value === true) { if (value === true) {
if (!this.options.disabled) { if (!this.options.disabled) {
this.$element.attr('disabled', 'true'); this.$element.attr("disabled", "true");
this.$elementFilestyle.find('label').attr('disabled', 'true'); this.$elementFilestyle.find("label").attr("disabled", "true");
this.options.disabled = true; this.options.disabled = true;
} }
} else if (value === false) { } else if (value === false) {
if (this.options.disabled) { if (this.options.disabled) {
this.$element.removeAttr('disabled'); this.$element.removeAttr("disabled");
this.$elementFilestyle.find('label').removeAttr('disabled'); this.$elementFilestyle.find("label").removeAttr("disabled");
this.options.disabled = false; this.options.disabled = false;
} }
} else { } else {
@ -47,7 +48,7 @@
} }
}, },
buttonBefore : function(value) { buttonBefore: function(value) {
if (value === true) { if (value === true) {
if (!this.options.buttonBefore) { if (!this.options.buttonBefore) {
this.options.buttonBefore = true; this.options.buttonBefore = true;
@ -71,23 +72,23 @@
} }
}, },
icon : function(value) { icon: function(value) {
if (value === true) { if (value === true) {
if (!this.options.icon) { if (!this.options.icon) {
this.options.icon = true; this.options.icon = true;
this.$elementFilestyle.find('label').prepend(this.htmlIcon()); this.$elementFilestyle.find("label").prepend(this.htmlIcon());
} }
} else if (value === false) { } else if (value === false) {
if (this.options.icon) { if (this.options.icon) {
this.options.icon = false; this.options.icon = false;
this.$elementFilestyle.find('.icon-span-filestyle').remove(); this.$elementFilestyle.find(".icon-span-filestyle").remove();
} }
} else { } else {
return this.options.icon; return this.options.icon;
} }
}, },
input : function(value) { input: function(value) {
if (value === true) { if (value === true) {
if (!this.options.input) { if (!this.options.input) {
this.options.input = true; this.options.input = true;
@ -98,170 +99,205 @@
this.$elementFilestyle.prepend(this.htmlInput()); this.$elementFilestyle.prepend(this.htmlInput());
} }
this.$elementFilestyle.find('.badge').remove(); this.$elementFilestyle.find(".badge").remove();
this.pushNameFiles(); this.pushNameFiles();
this.$elementFilestyle.find('.group-span-filestyle').addClass('input-group-btn'); this.$elementFilestyle.find(".group-span-filestyle").addClass("input-group-btn");
} }
} else if (value === false) { } else if (value === false) {
if (this.options.input) { if (this.options.input) {
this.options.input = false; this.options.input = false;
this.$elementFilestyle.find(':text').remove(); this.$elementFilestyle.find(":text").remove();
var files = this.pushNameFiles(); var files = this.pushNameFiles();
if (files.length > 0 && this.options.badge) { if (files.length > 0 && this.options.badge) {
this.$elementFilestyle.find('label').append(' <span class="badge">' + files.length + '</span>'); this.$elementFilestyle
.find("label")
.append(' <span class="badge">' + files.length + "</span>");
} }
this.$elementFilestyle.find('.group-span-filestyle').removeClass('input-group-btn'); this.$elementFilestyle.find(".group-span-filestyle").removeClass("input-group-btn");
} }
} else { } else {
return this.options.input; return this.options.input;
} }
}, },
size : function(value) { size: function(value) {
if (value !== undefined) { if (value !== undefined) {
var btn = this.$elementFilestyle.find('label'), input = this.$elementFilestyle.find('input'); var btn = this.$elementFilestyle.find("label"),
input = this.$elementFilestyle.find("input");
btn.removeClass('btn-lg btn-sm'); btn.removeClass("btn-lg btn-sm");
input.removeClass('input-lg input-sm'); input.removeClass("input-lg input-sm");
if (value != 'nr') { if (value != "nr") {
btn.addClass('btn-' + value); btn.addClass("btn-" + value);
input.addClass('input-' + value); input.addClass("input-" + value);
} }
} else { } else {
return this.options.size; return this.options.size;
} }
}, },
placeholder : function(value) { placeholder: function(value) {
if (value !== undefined) { if (value !== undefined) {
this.options.placeholder = value; this.options.placeholder = value;
this.$elementFilestyle.find('input').attr('placeholder', value); this.$elementFilestyle.find("input").attr("placeholder", value);
} else { } else {
return this.options.placeholder; return this.options.placeholder;
} }
}, },
buttonText : function(value) { buttonText: function(value) {
if (value !== undefined) { if (value !== undefined) {
this.options.buttonText = value; this.options.buttonText = value;
this.$elementFilestyle.find('label .buttonText').html(this.options.buttonText); this.$elementFilestyle.find("label .buttonText").html(this.options.buttonText);
} else { } else {
return this.options.buttonText; return this.options.buttonText;
} }
}, },
buttonName : function(value) { buttonName: function(value) {
if (value !== undefined) { if (value !== undefined) {
this.options.buttonName = value; this.options.buttonName = value;
this.$elementFilestyle.find('label').attr({ this.$elementFilestyle.find("label").attr({
'class' : 'btn ' + this.options.buttonName class: "btn " + this.options.buttonName
}); });
} else { } else {
return this.options.buttonName; return this.options.buttonName;
} }
}, },
iconName : function(value) { iconName: function(value) {
if (value !== undefined) { if (value !== undefined) {
this.$elementFilestyle.find('.icon-span-filestyle').attr({ this.$elementFilestyle.find(".icon-span-filestyle").attr({
'class' : 'icon-span-filestyle ' + this.options.iconName class: "icon-span-filestyle " + this.options.iconName
}); });
} else { } else {
return this.options.iconName; return this.options.iconName;
} }
}, },
htmlIcon : function() { htmlIcon: function() {
if (this.options.icon) { if (this.options.icon) {
return '<span class="icon-span-filestyle ' + this.options.iconName + '"></span> '; return '<span class="icon-span-filestyle ' + this.options.iconName + '"></span> ';
} else { } else {
return ''; return "";
} }
}, },
htmlInput : function() { htmlInput: function() {
if (this.options.input) { if (this.options.input) {
return '<input type="text" class="form-control ' + (this.options.size == 'nr' ? '' : 'input-' + this.options.size) + '" placeholder="'+ this.options.placeholder +'" disabled> '; return (
'<input type="text" class="form-control ' +
(this.options.size == "nr" ? "" : "input-" + this.options.size) +
'" placeholder="' +
this.options.placeholder +
'" disabled> '
);
} else { } else {
return ''; return "";
} }
}, },
// puts the name of the input files // puts the name of the input files
// return files // return files
pushNameFiles : function() { pushNameFiles: function() {
var content = '', files = []; var content = "",
files = [];
if (this.$element[0].files === undefined) { if (this.$element[0].files === undefined) {
files[0] = { files[0] = {
'name' : this.$element[0] && this.$element[0].value name: this.$element[0] && this.$element[0].value
}; };
} else { } else {
files = this.$element[0].files; files = this.$element[0].files;
} }
for (var i = 0; i < files.length; i++) { for (var i = 0; i < files.length; i++) {
content += files[i].name.split("\\").pop() + ', '; content += files[i].name.split("\\").pop() + ", ";
} }
if (content !== '') { if (content !== "") {
this.$elementFilestyle.find(':text').val(content.replace(/\, $/g, '')); this.$elementFilestyle.find(":text").val(content.replace(/\, $/g, ""));
} else { } else {
this.$elementFilestyle.find(':text').val(''); this.$elementFilestyle.find(":text").val("");
} }
return files; return files;
}, },
constructor : function() { constructor: function() {
var _self = this, var _self = this,
html = '', html = "",
id = _self.$element.attr('id'), id = _self.$element.attr("id"),
files = [], files = [],
btn = '', btn = "",
clear = '', clear = "",
$label; $label;
if (id === '' || !id) { if (id === "" || !id) {
id = 'filestyle-' + nextId; id = "filestyle-" + nextId;
_self.$element.attr({ _self.$element.attr({
'id' : id id: id
}); });
nextId++; nextId++;
} }
html = '<div class="group-span-filestyle ' + (_self.options.input ? 'input-group-btn' : html =
'btn-group') + '">'; '<div class="group-span-filestyle ' +
btn = '<label for="' + id + '" class="btn ' + _self.options.buttonName + ' ' + (_self.options.input ? "input-group-btn" : "btn-group") +
(_self.options.size == 'nr' ? '' : 'btn-' + _self.options.size) + '" ' + '">';
(_self.options.disabled || _self.$element.attr('disabled') ? 'disabled="true"' : '') + '>' + btn =
_self.htmlIcon() + '<span class="buttonText">' + _self.options.buttonText + '</span>' + '<label for="' +
'</label>' id +
clear = '<button id="' + id + '-clear" class="btn btn-default" aria-label="Clear">' + '" class="btn ' +
'<i class="fa fa-times"></i></span></button>' _self.options.buttonName +
" " +
(_self.options.size == "nr" ? "" : "btn-" + _self.options.size) +
'" ' +
(_self.options.disabled || _self.$element.attr("disabled") ? 'disabled="true"' : "") +
">" +
_self.htmlIcon() +
'<span class="buttonText">' +
_self.options.buttonText +
"</span>" +
"</label>";
clear =
'<button id="' +
id +
'-clear" class="btn btn-default" aria-label="Clear">' +
'<i class="fa fa-times"></i></span></button>';
html = _self.options.buttonBefore ? html + btn + clear + '</div>' + _self.htmlInput() : _self.htmlInput() + html + clear + btn + '</div>'; html = _self.options.buttonBefore
? html + btn + clear + "</div>" + _self.htmlInput()
: _self.htmlInput() + html + clear + btn + "</div>";
_self.$elementFilestyle = $('<div class="bootstrap-filestyle input-group">' + html + '</div>'); _self.$elementFilestyle = $(
_self.$elementFilestyle.find('.group-span-filestyle').attr('tabindex', "0").keypress(function(e) { '<div class="bootstrap-filestyle input-group">' + html + "</div>"
);
_self.$elementFilestyle
.find(".group-span-filestyle")
.attr("tabindex", "0")
.keypress(function(e) {
if (e.keyCode === 13 || e.charCode === 32) { if (e.keyCode === 13 || e.charCode === 32) {
_self.$elementFilestyle.find('label').click(); _self.$elementFilestyle.find("label").click();
return false; return false;
} }
}); });
_self.$elementFilestyle.find('#' + id + '-clear').click(function(e) { _self.$elementFilestyle.find("#" + id + "-clear").click(function(e) {
_self.clear(); _self.clear();
}); });
// hidding input file and add filestyle // hidding input file and add filestyle
_self.$element.css({ _self.$element
'position' : 'absolute', .css({
'clip' : 'rect(0px 0px 0px 0px)' // using 0px for work in IE8 position: "absolute",
}).attr('tabindex', "-1").after(_self.$elementFilestyle); clip: "rect(0px 0px 0px 0px)" // using 0px for work in IE8
})
.attr("tabindex", "-1")
.after(_self.$elementFilestyle);
if (_self.options.disabled || _self.$element.attr('disabled')) { if (_self.options.disabled || _self.$element.attr("disabled")) {
_self.$element.attr('disabled', 'true'); _self.$element.attr("disabled", "true");
} }
// Getting input file value // Getting input file value
@ -269,22 +305,24 @@
var files = _self.pushNameFiles(); var files = _self.pushNameFiles();
if (_self.options.input == false && _self.options.badge) { if (_self.options.input == false && _self.options.badge) {
if (_self.$elementFilestyle.find('.badge').length == 0) { if (_self.$elementFilestyle.find(".badge").length == 0) {
_self.$elementFilestyle.find('label').append(' <span class="badge">' + files.length + '</span>'); _self.$elementFilestyle
.find("label")
.append(' <span class="badge">' + files.length + "</span>");
} else if (files.length == 0) { } else if (files.length == 0) {
_self.$elementFilestyle.find('.badge').remove(); _self.$elementFilestyle.find(".badge").remove();
} else { } else {
_self.$elementFilestyle.find('.badge').html(files.length); _self.$elementFilestyle.find(".badge").html(files.length);
} }
} else { } else {
_self.$elementFilestyle.find('.badge').remove(); _self.$elementFilestyle.find(".badge").remove();
} }
}); });
// Check if browser is Firefox // Check if browser is Firefox
if (window.navigator.userAgent.search(/firefox/i) > -1) { if (window.navigator.userAgent.search(/firefox/i) > -1) {
// Simulating choose file for firefox // Simulating choose file for firefox
_self.$elementFilestyle.find('label').click(function() { _self.$elementFilestyle.find("label").click(function() {
_self.$element.click(); _self.$element.click();
return false; return false;
}); });
@ -295,22 +333,30 @@
var old = $.fn.filestyle; var old = $.fn.filestyle;
$.fn.filestyle = function(option, value) { $.fn.filestyle = function(option, value) {
var get = '', element = this.each(function() { var get = "",
if ($(this).attr('type') === 'file') { element = this.each(function() {
var $this = $(this), data = $this.data('filestyle'), options = $.extend({}, $.fn.filestyle.defaults, option, typeof option === 'object' && option); if ($(this).attr("type") === "file") {
var $this = $(this),
data = $this.data("filestyle"),
options = $.extend(
{},
$.fn.filestyle.defaults,
option,
typeof option === "object" && option
);
if (!data) { if (!data) {
$this.data('filestyle', ( data = new Filestyle(this, options))); $this.data("filestyle", (data = new Filestyle(this, options)));
data.constructor(); data.constructor();
} }
if ( typeof option === 'string') { if (typeof option === "string") {
get = data[option](value); get = data[option](value);
} }
} }
}); });
if ( typeof get !== undefined) { if (typeof get !== undefined) {
return get; return get;
} else { } else {
return element; return element;
@ -318,16 +364,16 @@
}; };
$.fn.filestyle.defaults = { $.fn.filestyle.defaults = {
'buttonText' : 'Choose file', buttonText: "Choose file",
'iconName' : 'glyphicon glyphicon-folder-open', iconName: "glyphicon glyphicon-folder-open",
'buttonName' : 'btn-default', buttonName: "btn-default",
'size' : 'nr', size: "nr",
'input' : true, input: true,
'badge' : true, badge: true,
'icon' : true, icon: true,
'buttonBefore' : false, buttonBefore: false,
'disabled' : false, disabled: false,
'placeholder': '' placeholder: ""
}; };
$.fn.filestyle.noConflict = function() { $.fn.filestyle.noConflict = function() {
@ -336,19 +382,19 @@
}; };
$(function() { $(function() {
$('.filestyle').each(function() { $(".filestyle").each(function() {
var $this = $(this), options = { var $this = $(this),
options = {
'input' : $this.attr('data-input') !== 'false', input: $this.attr("data-input") !== "false",
'icon' : $this.attr('data-icon') !== 'false', icon: $this.attr("data-icon") !== "false",
'buttonBefore' : $this.attr('data-buttonBefore') === 'true', buttonBefore: $this.attr("data-buttonBefore") === "true",
'disabled' : $this.attr('data-disabled') === 'true', disabled: $this.attr("data-disabled") === "true",
'size' : $this.attr('data-size'), size: $this.attr("data-size"),
'buttonText' : $this.attr('data-buttonText'), buttonText: $this.attr("data-buttonText"),
'buttonName' : $this.attr('data-buttonName'), buttonName: $this.attr("data-buttonName"),
'iconName' : $this.attr('data-iconName'), iconName: $this.attr("data-iconName"),
'badge' : $this.attr('data-badge') !== 'false', badge: $this.attr("data-badge") !== "false",
'placeholder': $this.attr('data-placeholder') placeholder: $this.attr("data-placeholder")
}; };
$this.filestyle(options); $this.filestyle(options);

View File

@ -1,5 +1,6 @@
angular.module('webui.services.alerts', ['webui.services.deps']) angular.module("webui.services.alerts", ["webui.services.deps"]).factory("$alerts", [
.factory('$alerts', ['$_', function(_) { "$_",
function(_) {
var alerters = []; var alerters = [];
return { return {
addAlert: function() { addAlert: function() {
@ -15,7 +16,8 @@ angular.module('webui.services.alerts', ['webui.services.deps'])
}, },
// a simple function for debugging // a simple function for debugging
log: function(msg) { log: function(msg) {
this.addAlert(msg, 'info'); this.addAlert(msg, "info");
} }
}; };
}]); }
]);

View File

@ -1,10 +1,9 @@
angular angular.module("webui.services.base64", []).factory("$base64", [
.module('webui.services.base64', []) function() {
.factory('$base64', [function() {
var obj = {}; var obj = {};
var a64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/', var a64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
a256 = { a256 = {
indexOf: function (c) { indexOf: function(c) {
return c.charCodeAt(0); return c.charCodeAt(0);
}, },
charAt: String.fromCharCode charAt: String.fromCharCode
@ -12,7 +11,14 @@ angular
function code(s, discard, alpha, beta, w1, w2) { function code(s, discard, alpha, beta, w1, w2) {
s = String(s); s = String(s);
var b = 0, x = '', i, c, bs = 1, sb = 1, length = s.length, tmp; var b = 0,
x = "",
i,
c,
bs = 1,
sb = 1,
length = s.length,
tmp;
for (i = 0; i < length || (!discard && sb > 1); i += 1) { for (i = 0; i < length || (!discard && sb > 1); i += 1) {
b *= w1; b *= w1;
bs *= w1; bs *= w1;
@ -37,22 +43,23 @@ angular
return x; return x;
} }
obj.btoa = function (s) { obj.btoa = function(s) {
s = code(s, false, a256, a64, 256, 64); s = code(s, false, a256, a64, 256, 64);
return s + '===='.slice((s.length % 4) || 4); return s + "====".slice(s.length % 4 || 4);
}; };
obj.atob = function (s) { obj.atob = function(s) {
var i; var i;
s = String(s).split('='); s = String(s).split("=");
for (i = s.length - 1; i >= 0; i -= 1) { for (i = s.length - 1; i >= 0; i -= 1) {
if (s[i].length % 4 === 1) { if (s[i].length % 4 === 1) {
throw new RangeError(); throw new RangeError();
} }
s[i] = code(s[i], true, a64, a256, 64, 256); s[i] = code(s[i], true, a64, a256, 64, 256);
} }
return s.join(''); return s.join("");
}; };
return obj; return obj;
}]); }
]);

View File

@ -1,5 +1,5 @@
angular angular
.module('webui.services.deps', []) .module("webui.services.deps", [])
.value('$', $) .value("$", $)
.value('$_', _) .value("$_", _)
.value('$json', JSON); .value("$json", JSON);

View File

@ -1,9 +1,7 @@
angular angular.module("webui.services.errors", []).value("$getErrorStatus", function(errorCode) {
.module('webui.services.errors', [])
.value('$getErrorStatus', function(errorCode) {
// normalize it to 0 // normalize it to 0
errorCode = errorCode - 1; errorCode = errorCode - 1;
switch(errorCode) { switch (errorCode) {
case 0: case 0:
return "download was unsuccessful"; return "download was unsuccessful";
case 1: case 1:

View File

@ -1,5 +1,4 @@
angular.module('webui.services.modals', []) angular.module("webui.services.modals", []).factory("$modals", function() {
.factory('$modals', function() {
var modals = {}; var modals = {};
return { return {
// register a new modal, cb is the function which // register a new modal, cb is the function which

View File

@ -1,9 +1,18 @@
angular.module('webui.services.rpc.helpers', [ angular
'webui.services.deps', 'webui.services.rpc', 'webui.services.alerts' .module("webui.services.rpc.helpers", [
]) "webui.services.deps",
.factory('$rpchelpers', ['$_', '$rpc', '$alerts', function(_, rpc, alerts) { "webui.services.rpc",
var miscellaneous = {version: '', enabledFeatures: []}; "webui.services.alerts"
rpc.once('getVersion', [], function(data) { miscellaneous = data[0]}); ])
.factory("$rpchelpers", [
"$_",
"$rpc",
"$alerts",
function(_, rpc, alerts) {
var miscellaneous = { version: "", enabledFeatures: [] };
rpc.once("getVersion", [], function(data) {
miscellaneous = data[0];
});
return { return {
isFeatureEnabled: function(feature) { isFeatureEnabled: function(feature) {
return miscellaneous.enabledFeatures.indexOf(feature) != -1; return miscellaneous.enabledFeatures.indexOf(feature) != -1;
@ -17,18 +26,17 @@ angular.module('webui.services.rpc.helpers', [
// parse options passed in the URIs. E.g. http://ex1.com/f1.jpg --out=image.jpg --check-integrity // parse options passed in the URIs. E.g. http://ex1.com/f1.jpg --out=image.jpg --check-integrity
var uriSettings = _.cloneDeep(settings); var uriSettings = _.cloneDeep(settings);
_.each(uri, function(uri_element) { _.each(uri, function(uri_element) {
if (uri_element.startsWith('--')) { if (uri_element.startsWith("--")) {
uri_options = uri_element.split(/--|=(.*)/); uri_options = uri_element.split(/--|=(.*)/);
if (uri_options.length > 2) { if (uri_options.length > 2) {
uriSettings[uri_options[2]] = uri_options[3] || 'true'; uriSettings[uri_options[2]] = uri_options[3] || "true";
} }
} } else {
else {
uri_parsed.push(uri_element); uri_parsed.push(uri_element);
} }
}); });
// passing true to batch all the addUri calls // passing true to batch all the addUri calls
rpc.once('addUri', [uri_parsed, uriSettings], cb, true); rpc.once("addUri", [uri_parsed, uriSettings], cb, true);
}); });
// now dispatch all addUri syscalls // now dispatch all addUri syscalls
@ -37,7 +45,7 @@ angular.module('webui.services.rpc.helpers', [
addTorrents: function(txts, settings, cb) { addTorrents: function(txts, settings, cb) {
_.each(txts, function(txt) { _.each(txts, function(txt) {
// passing true to batch all the addUri calls // passing true to batch all the addUri calls
rpc.once('addTorrent', [txt, [], settings], cb, true); rpc.once("addTorrent", [txt, [], settings], cb, true);
}); });
// now dispatch all addUri syscalls // now dispatch all addUri syscalls
@ -46,11 +54,12 @@ angular.module('webui.services.rpc.helpers', [
addMetalinks: function(txts, settings, cb) { addMetalinks: function(txts, settings, cb) {
_.each(txts, function(txt) { _.each(txts, function(txt) {
// passing true to batch all the addUri calls // passing true to batch all the addUri calls
rpc.once('addMetalink', [txt, settings], cb, true); rpc.once("addMetalink", [txt, settings], cb, true);
}); });
// now dispatch all addUri syscalls // now dispatch all addUri syscalls
rpc.forceUpdate(); rpc.forceUpdate();
} }
}; };
}]); }
]);

View File

@ -1,7 +1,10 @@
angular angular
.module('webui.services.rpc.jsoncall', [ .module("webui.services.rpc.jsoncall", ["webui.services.deps", "webui.services.base64"])
'webui.services.deps', 'webui.services.base64']) .factory("$jsoncall", [
.factory('$jsoncall', ['$', '$json', '$base64', function($, JSON, base64) { "$",
"$json",
"$base64",
function($, JSON, base64) {
return { return {
init: function(conf) { init: function(conf) {
this.avgTimeout = 2000; this.avgTimeout = 2000;
@ -13,10 +16,10 @@ angular
$.post({ $.post({
url: url, url: url,
timeout: this.avgTimeout, timeout: this.avgTimeout,
contentType: 'application/json', contentType: "application/json",
data: JSON.stringify({ data: JSON.stringify({
jsonrpc: 2.0, jsonrpc: 2.0,
id: 'webui', id: "webui",
method: funcName, method: funcName,
params: params params: params
}), }),
@ -29,9 +32,14 @@ angular
}, },
invoke: function(opts) { invoke: function(opts) {
var rpc = this; var rpc = this;
var scheme = rpc.serverConf.encrypt ? 'https' : 'http'; var scheme = rpc.serverConf.encrypt ? "https" : "http";
rpc.ariaRequest( rpc.ariaRequest(
scheme + '://' + rpc.serverConf.host + ':' + rpc.serverConf.port + (rpc.serverConf.path || '/jsonrpc'), scheme +
"://" +
rpc.serverConf.host +
":" +
rpc.serverConf.port +
(rpc.serverConf.path || "/jsonrpc"),
opts.name, opts.name,
opts.params, opts.params,
opts.success, opts.success,
@ -43,34 +51,35 @@ angular
return opts.error(); return opts.error();
} }
var authUrl = scheme + '://' + var authUrl =
rpc.serverConf.auth.user + ":" + scheme +
rpc.serverConf.auth.pass + "@" + "://" +
rpc.serverConf.host + ':' + rpc.serverConf.auth.user +
rpc.serverConf.port + (rpc.serverConf.path || '/jsonrpc'); ":" +
rpc.serverConf.auth.pass +
"@" +
rpc.serverConf.host +
":" +
rpc.serverConf.port +
(rpc.serverConf.path || "/jsonrpc");
// hack is to basically inject an image with same uri as the aria2 rpc url, // hack is to basically inject an image with same uri as the aria2 rpc url,
// most browsers will then cache the authentication details and we dont have // most browsers will then cache the authentication details and we dont have
// to give them next time we make a request // to give them next time we make a request
var img = $('<img/>').attr("src", authUrl); var img = $("<img/>").attr("src", authUrl);
$('body').append(img); $("body").append(img);
img.remove(); img.remove();
// timeout to let the image load and then make a request, // timeout to let the image load and then make a request,
setTimeout(function() { setTimeout(function() {
rpc.ariaRequest( rpc.ariaRequest(authUrl, opts.name, opts.params, opts.success, function() {
authUrl,
opts.name,
opts.params,
opts.success,
function() {
console.log("jsonrpc disconnect!!!"); console.log("jsonrpc disconnect!!!");
return opts.error(); return opts.error();
} });
);
}, rpc.avgTimeout); }, rpc.avgTimeout);
} }
); );
} }
}; };
}]); }
]);

View File

@ -1,23 +1,30 @@
angular angular
.module('webui.services.rpc', [ .module("webui.services.rpc", [
'webui.services.rpc.syscall', 'webui.services.configuration', 'webui.services.alerts', "webui.services.rpc.syscall",
'webui.services.utils' "webui.services.configuration",
]) "webui.services.alerts",
.factory('$rpc', [ "webui.services.utils"
'$syscall', '$globalTimeout', '$alerts', '$utils', ])
'$rootScope', '$location', '$authconf', '$filter', .factory("$rpc", [
function(syscall, globalTimeout, alerts, utils, rootScope, uri, authconf, filter) { "$syscall",
"$globalTimeout",
"$alerts",
"$utils",
"$rootScope",
"$location",
"$authconf",
"$filter",
function(syscall, globalTimeout, alerts, utils, rootScope, uri, authconf, filter) {
var subscriptions = [],
configurations = [authconf],
currentConf = {},
currentToken,
timeout = null,
forceNextUpdate = false;
var subscriptions = [] var cookieConf = utils.getCookie("aria2conf");
, configurations = [authconf]
, currentConf = {}
, currentToken
, timeout = null
, forceNextUpdate = false;
var cookieConf = utils.getCookie('aria2conf');
// try at the start, so that it is presistant even when default authconf works // try at the start, so that it is presistant even when default authconf works
if(cookieConf) configurations.unshift(cookieConf); if (cookieConf) configurations.unshift(cookieConf);
if (uri.search().host) { if (uri.search().host) {
configurations.unshift(uri.search()); configurations.unshift(uri.search());
@ -28,27 +35,28 @@ function(syscall, globalTimeout, alerts, utils, rootScope, uri, authconf, filter
}; };
} }
if (['http', 'https'].indexOf(uri.protocol()) != -1 && uri.host() != 'localhost') { if (["http", "https"].indexOf(uri.protocol()) != -1 && uri.host() != "localhost") {
configurations.push({ configurations.push(
{
host: uri.host(), host: uri.host(),
path: '/jsonrpc', path: "/jsonrpc",
port: 6800, port: 6800,
encrypt: false encrypt: false
}, },
{ {
host: uri.host(), host: uri.host(),
port: uri.port(), port: uri.port(),
path: '/jsonrpc', path: "/jsonrpc",
encrypt: ( uri.protocol() == 'https' ) encrypt: uri.protocol() == "https"
}, },
{ {
host: uri.host(), host: uri.host(),
port: uri.port(), port: uri.port(),
path: authconf.path, path: authconf.path,
encrypt: ( uri.protocol() == 'https' ) encrypt: uri.protocol() == "https"
}); }
);
} }
// set if we got error on connection. This will cause another connection attempt. // set if we got error on connection. This will cause another connection attempt.
var needNewConnection = true; var needNewConnection = true;
@ -58,7 +66,6 @@ function(syscall, globalTimeout, alerts, utils, rootScope, uri, authconf, filter
// (i.e. serially) so should be private // (i.e. serially) so should be private
// to maintain that invariant // to maintain that invariant
var update = function() { var update = function() {
clearTimeout(timeout); clearTimeout(timeout);
timeout = null; timeout = null;
@ -71,7 +78,7 @@ function(syscall, globalTimeout, alerts, utils, rootScope, uri, authconf, filter
return; return;
} }
if (syscall.state == 'initializing') { if (syscall.state == "initializing") {
console.log("Syscall is initializing, waiting"); console.log("Syscall is initializing, waiting");
timeout = setTimeout(update, globalTimeout); timeout = setTimeout(update, globalTimeout);
return; return;
@ -82,8 +89,7 @@ function(syscall, globalTimeout, alerts, utils, rootScope, uri, authconf, filter
currentConf = configurations[0]; currentConf = configurations[0];
if (currentConf && currentConf.auth && currentConf.auth.token) { if (currentConf && currentConf.auth && currentConf.auth.token) {
currentToken = currentConf.auth.token; currentToken = currentConf.auth.token;
} } else {
else {
currentToken = null; currentToken = null;
} }
syscall.init(currentConf); syscall.init(currentConf);
@ -93,7 +99,7 @@ function(syscall, globalTimeout, alerts, utils, rootScope, uri, authconf, filter
var params = _.map(subs, function(s) { var params = _.map(subs, function(s) {
var p = s.params; var p = s.params;
if (currentToken) { if (currentToken) {
p = ["token:" + currentToken].concat(p || []); p = ["token:" + currentToken].concat(p || []);
} }
return { return {
@ -109,19 +115,28 @@ function(syscall, globalTimeout, alerts, utils, rootScope, uri, authconf, filter
// If some proposed configurations are still in the pipeline then retry // If some proposed configurations are still in the pipeline then retry
if (configurations.length) { if (configurations.length) {
alerts.log(filter('translate')("The last connection attempt was unsuccessful. Trying another configuration")); alerts.log(
filter("translate")(
"The last connection attempt was unsuccessful. Trying another configuration"
)
);
timeout = setTimeout(update, 0); timeout = setTimeout(update, 0);
} } else {
else { alerts.addAlert(
alerts.addAlert('<strong>' + filter('translate')('Oh Snap!') + '</strong> ' + "<strong>" +
filter('translate')('Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings') filter("translate")("Oh Snap!") +
, 'error'); "</strong> " +
filter("translate")(
"Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings"
),
"error"
);
timeout = setTimeout(update, globalTimeout); timeout = setTimeout(update, globalTimeout);
} }
}; };
syscall.invoke({ syscall.invoke({
name: 'system.multicall', name: "system.multicall",
params: [params], params: [params],
success: function(data) { success: function(data) {
var failed = _.some(data.result, function(d) { var failed = _.some(data.result, function(d) {
@ -130,8 +145,15 @@ function(syscall, globalTimeout, alerts, utils, rootScope, uri, authconf, filter
if (failed) { if (failed) {
needNewConnection = true; needNewConnection = true;
alerts.addAlert('<strong>' + filter('translate')('Oh Snap!') + '</strong> ' + alerts.addAlert(
filter('translate')('Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings', 'error')); "<strong>" +
filter("translate")("Oh Snap!") +
"</strong> " +
filter("translate")(
"Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings",
"error"
)
);
timeout = setTimeout(update, globalTimeout); timeout = setTimeout(update, globalTimeout);
return; return;
} }
@ -140,13 +162,20 @@ function(syscall, globalTimeout, alerts, utils, rootScope, uri, authconf, filter
// configuration worked, save it in cookie for next time and // configuration worked, save it in cookie for next time and
// delete the pipelined configurations!! // delete the pipelined configurations!!
if (currentToken) if (currentToken)
alerts.addAlert(filter('translate')('Successfully connected to Aria2 through its remote RPC …'), 'success'); alerts.addAlert(
filter("translate")("Successfully connected to Aria2 through its remote RPC …"),
"success"
);
else else
alerts.addAlert(filter('translate')('Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)')); alerts.addAlert(
filter("translate")(
"Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)"
)
);
configurations = []; configurations = [];
} }
utils.setCookie('aria2conf', currentConf); utils.setCookie("aria2conf", currentConf);
var cbs = []; var cbs = [];
_.each(data.result, function(d, i) { _.each(data.result, function(d, i) {
@ -154,17 +183,16 @@ function(syscall, globalTimeout, alerts, utils, rootScope, uri, authconf, filter
if (handle) { if (handle) {
if (d.code) { if (d.code) {
console.error(handle, d); console.error(handle, d);
alerts.addAlert(d.message, 'error'); alerts.addAlert(d.message, "error");
} }
// run them later as the cb itself can mutate the subscriptions // run them later as the cb itself can mutate the subscriptions
cbs.push({cb: handle.cb, data: d}); cbs.push({ cb: handle.cb, data: d });
if (handle.once) { if (handle.once) {
handle.once = 2; handle.once = 2;
} }
} }
}); });
_.each(cbs, function(hnd) { _.each(cbs, function(hnd) {
hnd.cb(hnd.data); hnd.cb(hnd.data);
}); });
@ -174,8 +202,7 @@ function(syscall, globalTimeout, alerts, utils, rootScope, uri, authconf, filter
if (forceNextUpdate) { if (forceNextUpdate) {
forceNextUpdate = false; forceNextUpdate = false;
timeout = setTimeout(update, 0); timeout = setTimeout(update, 0);
} } else {
else {
timeout = setTimeout(update, globalTimeout); timeout = setTimeout(update, globalTimeout);
} }
}, },
@ -191,12 +218,15 @@ function(syscall, globalTimeout, alerts, utils, rootScope, uri, authconf, filter
// each one will be tried one after the other till success, // each one will be tried one after the other till success,
// for all options for one conf read rpc/syscall.js // for all options for one conf read rpc/syscall.js
configure: function(conf) { configure: function(conf) {
alerts.addAlert(filter('translate')('Trying to connect to aria2 using the new connection configuration'), 'info'); alerts.addAlert(
filter("translate")(
"Trying to connect to aria2 using the new connection configuration"
),
"info"
);
if (conf instanceof Array) if (conf instanceof Array) configurations = conf;
configurations = conf; else configurations = [conf];
else
configurations = [conf];
if (timeout) { if (timeout) {
clearTimeout(timeout); clearTimeout(timeout);
@ -205,10 +235,14 @@ function(syscall, globalTimeout, alerts, utils, rootScope, uri, authconf, filter
}, },
// get current configuration being used // get current configuration being used
getConfiguration: function() { return currentConf }, getConfiguration: function() {
return currentConf;
},
// get currently configured directURL // get currently configured directURL
getDirectURL : function() { return currentConf.directURL }, getDirectURL: function() {
return currentConf.directURL;
},
// syscall is done only once, delay is optional // syscall is done only once, delay is optional
// and pass true to only dispatch it in the global timeout // and pass true to only dispatch it in the global timeout
@ -219,7 +253,7 @@ function(syscall, globalTimeout, alerts, utils, rootScope, uri, authconf, filter
subscriptions.push({ subscriptions.push({
once: true, once: true,
name: 'aria2.' + name, name: "aria2." + name,
params: params, params: params,
cb: cb cb: cb
}); });
@ -239,7 +273,7 @@ function(syscall, globalTimeout, alerts, utils, rootScope, uri, authconf, filter
var handle = { var handle = {
once: false, once: false,
name: 'aria2.' + name, name: "aria2." + name,
params: params, params: params,
cb: cb cb: cb
}; };
@ -261,12 +295,12 @@ function(syscall, globalTimeout, alerts, utils, rootScope, uri, authconf, filter
if (timeout) { if (timeout) {
clearTimeout(timeout); clearTimeout(timeout);
timeout = setTimeout(update, 0); timeout = setTimeout(update, 0);
} } else {
else {
// a batch call is already in progress, // a batch call is already in progress,
// wait till it returns and force the next one // wait till it returns and force the next one
forceNextUpdate = true; forceNextUpdate = true;
} }
} }
}; };
}]); }
]);

View File

@ -1,10 +1,17 @@
angular angular
.module('webui.services.rpc.sockcall', [ .module("webui.services.rpc.sockcall", [
'webui.services.deps', 'webui.services.utils', 'webui.services.base64', "webui.services.deps",
'webui.services.alerts' "webui.services.utils",
]) "webui.services.base64",
.factory('$sockcall', ['$_', '$json', '$name', '$utils', '$alerts', "webui.services.alerts"
function(_, JSON, name, utils, alerts) { ])
.factory("$sockcall", [
"$_",
"$json",
"$name",
"$utils",
"$alerts",
function(_, JSON, name, utils, alerts) {
var sockRPC = { var sockRPC = {
// true when sockrpc is ready to be used, // true when sockrpc is ready to be used,
// false when either initializing // false when either initializing
@ -21,11 +28,13 @@ function(_, JSON, name, utils, alerts) {
conf: null, conf: null,
// socket connection scheme, default to unencrypted connection // socket connection scheme, default to unencrypted connection
scheme: 'ws', scheme: "ws",
// called when a connection error occurs // called when a connection error occurs
onerror: function(ev) { onerror: function(ev) {
_.each(sockRPC.handles, function(h) { h.error() }); _.each(sockRPC.handles, function(h) {
h.error();
});
sockRPC.handles = []; sockRPC.handles = [];
sockRPC.initialized = false; sockRPC.initialized = false;
if (sockRPC.onready) { if (sockRPC.onready) {
@ -35,7 +44,7 @@ function(_, JSON, name, utils, alerts) {
}, },
onclose: function(ev) { onclose: function(ev) {
if (sockRPC.handles && sockRPC.handles.length) if (sockRPC.handles && sockRPC.handles.length)
sockRPC.onerror('Connection reset while calling aria2'); sockRPC.onerror("Connection reset while calling aria2");
sockRPC.initialized = false; sockRPC.initialized = false;
if (sockRPC.onready) { if (sockRPC.onready) {
sockRPC.onready(); sockRPC.onready();
@ -45,7 +54,7 @@ function(_, JSON, name, utils, alerts) {
// when connection opens // when connection opens
onopen: function() { onopen: function() {
console.log('websocket initialized!!!'); console.log("websocket initialized!!!");
sockRPC.initialized = true; sockRPC.initialized = true;
if (sockRPC.onready) { if (sockRPC.onready) {
sockRPC.onready(); sockRPC.onready();
@ -53,7 +62,6 @@ function(_, JSON, name, utils, alerts) {
} }
}, },
// when message is recieved // when message is recieved
onmessage: function(message) { onmessage: function(message) {
var data = JSON.parse(message.data); var data = JSON.parse(message.data);
@ -85,7 +93,7 @@ function(_, JSON, name, utils, alerts) {
error: opts.error || angular.noop, error: opts.error || angular.noop,
id: data.id id: data.id
}); });
sockRPC.sock.send( JSON.stringify(data) ); sockRPC.sock.send(JSON.stringify(data));
}, },
// should be called initially to start using the sock rpc // should be called initially to start using the sock rpc
@ -99,27 +107,34 @@ function(_, JSON, name, utils, alerts) {
} }
if (typeof WebSocket == "undefined") { if (typeof WebSocket == "undefined") {
alerts.addAlert('Web sockets are not supported! Falling back to JSONP.', 'info'); alerts.addAlert("Web sockets are not supported! Falling back to JSONP.", "info");
onready(); onready();
return; return;
} }
sockRPC.conf = conf || sockRPC.conf; sockRPC.conf = conf || sockRPC.conf;
sockRPC.scheme = sockRPC.conf.encrypt ? 'wss' : 'ws'; sockRPC.scheme = sockRPC.conf.encrypt ? "wss" : "ws";
if (sockRPC.sock) { if (sockRPC.sock) {
sockRPC.sock.onopen = sockRPC.sock.onmessage = sockRPC.sock.onerror = sockRPC.sock.onclose = null; sockRPC.sock.onopen = sockRPC.sock.onmessage = sockRPC.sock.onerror = sockRPC.sock.onclose = null;
sockRPC.onerror({message: 'Changing the websocket aria2 server details'}); sockRPC.onerror({ message: "Changing the websocket aria2 server details" });
} }
try { try {
var authUrl = sockRPC.scheme + '://' + conf.host + ':' + conf.port + (conf.path || '/jsonrpc'); var authUrl =
sockRPC.scheme + "://" + conf.host + ":" + conf.port + (conf.path || "/jsonrpc");
if (sockRPC.conf.auth && sockRPC.conf.auth.user && sockRPC.conf.auth.pass) { if (sockRPC.conf.auth && sockRPC.conf.auth.user && sockRPC.conf.auth.pass) {
authUrl = sockRPC.scheme + '://' + authUrl =
sockRPC.conf.auth.user + ":" + sockRPC.scheme +
sockRPC.conf.auth.pass + "@" + "://" +
sockRPC.conf.host + ':' + sockRPC.conf.auth.user +
sockRPC.conf.port + (conf.path || '/jsonrpc'); ":" +
sockRPC.conf.auth.pass +
"@" +
sockRPC.conf.host +
":" +
sockRPC.conf.port +
(conf.path || "/jsonrpc");
} }
sockRPC.sock = new WebSocket(authUrl); sockRPC.sock = new WebSocket(authUrl);
@ -128,16 +143,15 @@ function(_, JSON, name, utils, alerts) {
sockRPC.sock.onerror = sockRPC.onerror; sockRPC.sock.onerror = sockRPC.onerror;
sockRPC.sock.onmessage = sockRPC.onmessage; sockRPC.sock.onmessage = sockRPC.onmessage;
sockRPC.onready = onready; sockRPC.onready = onready;
} } catch (ex) {
catch (ex) {
// ignoring IE security exception on local ip addresses // ignoring IE security exception on local ip addresses
console.log('not using websocket for aria2 rpc due to: ', ex); console.log("not using websocket for aria2 rpc due to: ", ex);
alerts.addAlert('Web sockets not working due to ' + ex.message, 'info'); alerts.addAlert("Web sockets not working due to " + ex.message, "info");
onready(); onready();
} }
}, }
}; };
return sockRPC; return sockRPC;
}]); }
]);

View File

@ -1,12 +1,18 @@
angular angular
.module('webui.services.rpc.syscall', [ .module("webui.services.rpc.syscall", [
'webui.services.rpc.jsoncall', 'webui.services.rpc.sockcall', "webui.services.rpc.jsoncall",
'webui.services.utils', 'webui.services.alerts' "webui.services.rpc.sockcall",
]) "webui.services.utils",
.factory('$syscall', ['$log', '$jsoncall', '$sockcall', '$alerts', "webui.services.alerts"
function(log, jsonRPC, sockRPC, alerts) { ])
.factory("$syscall", [
"$log",
"$jsoncall",
"$sockcall",
"$alerts",
function(log, jsonRPC, sockRPC, alerts) {
return { return {
state: 'none', state: "none",
// called to initialize the rpc interface, call everytime configuration changes // called to initialize the rpc interface, call everytime configuration changes
// conf has the following structure: // conf has the following structure:
// { // {
@ -20,12 +26,12 @@ function(log, jsonRPC, sockRPC, alerts) {
// } // }
init: function(conf) { init: function(conf) {
console.log("Syscall is initializing to", conf); console.log("Syscall is initializing to", conf);
this.state = 'initializing'; this.state = "initializing";
jsonRPC.init(conf); jsonRPC.init(conf);
var syscall = this; var syscall = this;
sockRPC.init(conf, function() { sockRPC.init(conf, function() {
console.log("Syscall is ready"); console.log("Syscall is ready");
syscall.state = 'ready'; syscall.state = "ready";
}); });
}, },
@ -42,10 +48,10 @@ function(log, jsonRPC, sockRPC, alerts) {
if (sockRPC.initialized) { if (sockRPC.initialized) {
return sockRPC.invoke(opts); return sockRPC.invoke(opts);
} } else {
else {
return jsonRPC.invoke(opts); return jsonRPC.invoke(opts);
} }
} }
}; };
}]); }
]);

View File

@ -1,14 +1,17 @@
angular.module('webui.services.settings.filters', []) angular
.value('$globalsettingsexclude', [ .module("webui.services.settings.filters", [])
"checksum", "index-out", "out", "pause", "select-file" .value("$globalsettingsexclude", ["checksum", "index-out", "out", "pause", "select-file"])
]) .value("$waitingsettingsexclude", [
.value('$waitingsettingsexclude', [ "dry-run",
"dry-run", "metalink-base-uri", "parameterized-uri", "pause", "metalink-base-uri",
"parameterized-uri",
"pause",
"piece-length" "piece-length"
]) ])
.value('$activesettingsfilter', [ .value("$activesettingsfilter", [
"bt-max-peers", "bt-request-peer-speed-limit", "bt-remove-unselected-file", "bt-max-peers",
"max-download-limit", "max-upload-limit", "bt-request-peer-speed-limit",
]); "bt-remove-unselected-file",
"max-download-limit",
"max-upload-limit"
]);

File diff suppressed because it is too large Load Diff

View File

@ -1,12 +1,15 @@
angular.module('webui.services.utils', ['webui.services.configuration']) angular.module("webui.services.utils", ["webui.services.configuration"]).factory("$utils", [
.factory('$utils', ['$filter', '$name', '$titlePattern', function(filter, $name, $titlePattern) { "$filter",
"$name",
"$titlePattern",
function(filter, $name, $titlePattern) {
var rnd16 = (function() { var rnd16 = (function() {
"use strict"; "use strict";
var rndBuffer = new Uint8Array(16); var rndBuffer = new Uint8Array(16);
var rnd16Weak = function() { var rnd16Weak = function() {
for (var i = 0, r; i < 16; i++) { for (var i = 0, r; i < 16; i++) {
if (!(i % 0x3)) r = Math.random() * 0x100000000 | 0; if (!(i % 0x3)) r = (Math.random() * 0x100000000) | 0;
rndBuffer[i] = r >>> ((i & 0x3) << 0x3) & 0xff; rndBuffer[i] = (r >>> ((i & 0x3) << 0x3)) & 0xff;
} }
return rndBuffer; return rndBuffer;
}; };
@ -18,8 +21,7 @@ angular.module('webui.services.utils', ['webui.services.configuration'])
try { try {
crypto.getRandomValues(rndBuffer); crypto.getRandomValues(rndBuffer);
return rndBuffer; return rndBuffer;
} } catch (ex) {
catch (ex) {
// Entropy might be exhausted // Entropy might be exhausted
return rnd16Weak(); return rnd16Weak();
} }
@ -27,7 +29,6 @@ angular.module('webui.services.utils', ['webui.services.configuration'])
})(); })();
var utils = { var utils = {
fmtsize: function(len) { fmtsize: function(len) {
len = +len; // coerce to number len = +len; // coerce to number
if (len <= 1024) { if (len <= 1024) {
@ -35,7 +36,7 @@ angular.module('webui.services.utils', ['webui.services.configuration'])
} }
len /= 1024; len /= 1024;
if (len <= 1024) { if (len <= 1024) {
return len.toFixed(1) + " KB" return len.toFixed(1) + " KB";
} }
len /= 1024; len /= 1024;
if (len <= 1024) { if (len <= 1024) {
@ -59,7 +60,7 @@ angular.module('webui.services.utils', ['webui.services.configuration'])
getCookie: function(key) { getCookie: function(key) {
var chunks = document.cookie.split(";"); var chunks = document.cookie.split(";");
for (var i = 0; i < chunks.length; i++) { for (var i = 0; i < chunks.length; i++) {
var ckey = chunks[i].substr(0, chunks[i].indexOf("=")).replace(/^\s+|\s+$/g,""); var ckey = chunks[i].substr(0, chunks[i].indexOf("=")).replace(/^\s+|\s+$/g, "");
var cvalue = chunks[i].substr(chunks[i].indexOf("=") + 1); var cvalue = chunks[i].substr(chunks[i].indexOf("=") + 1);
if (key == ckey) { if (key == ckey) {
return JSON.parse(unescape(cvalue)); return JSON.parse(unescape(cvalue));
@ -83,11 +84,28 @@ angular.module('webui.services.utils', ['webui.services.configuration'])
var r = rnd16(); var r = rnd16();
r[6] = (r[6] & 0xf) | 0x40; // Version 4 r[6] = (r[6] & 0xf) | 0x40; // Version 4
r[8] = (r[8] & 0x3f) | 0x80; // Version 4y r[8] = (r[8] & 0x3f) | 0x80; // Version 4y
return bt[r[0]] + bt[r[1]] + bt[r[2]] + bt[r[3]] + "-" + return (
bt[r[4]] + bt[r[5]] + "-" + bt[r[0]] +
bt[r[6]] + bt[r[7]] + "-" + bt[r[1]] +
bt[r[8]] + bt[r[9]] + "-" + bt[r[2]] +
bt[r[10]] + bt[r[11]] + bt[r[12]] + bt[r[13]] + bt[r[14]] + bt[r[15]]; bt[r[3]] +
"-" +
bt[r[4]] +
bt[r[5]] +
"-" +
bt[r[6]] +
bt[r[7]] +
"-" +
bt[r[8]] +
bt[r[9]] +
"-" +
bt[r[10]] +
bt[r[11]] +
bt[r[12]] +
bt[r[13]] +
bt[r[14]] +
bt[r[15]]
);
}; };
})(), })(),
randStr: function() { randStr: function() {
@ -118,21 +136,23 @@ angular.module('webui.services.utils', ['webui.services.configuration'])
}, },
// get info title from global statistics // get info title from global statistics
getTitle: function(stats) { getTitle: function(stats) {
if(!stats) { if (!stats) {
stats = {}; stats = {};
} }
return $titlePattern return $titlePattern
.replace('{active}', stats.numActive || '⌛') .replace("{active}", stats.numActive || "⌛")
.replace('{waiting}', stats.numWaiting || '⌛') .replace("{waiting}", stats.numWaiting || "⌛")
.replace('{download_speed}', utils.fmtspeed(stats.downloadSpeed) || '⌛') .replace("{download_speed}", utils.fmtspeed(stats.downloadSpeed) || "⌛")
.replace('{upload_speed}', utils.fmtspeed(stats.uploadSpeed) || '⌛') .replace("{upload_speed}", utils.fmtspeed(stats.uploadSpeed) || "⌛")
.replace('{stopped}', stats.numStopped || '⌛') .replace("{stopped}", stats.numStopped || "⌛")
.replace('{name}', $name); .replace("{name}", $name);
}, },
// get download chunks from aria2 bitfield // get download chunks from aria2 bitfield
getChunksFromHex: function(bitfield, numOfPieces) { getChunksFromHex: function(bitfield, numOfPieces) {
var chunks = [], len = 0, numPieces = parseInt(numOfPieces); var chunks = [],
len = 0,
numPieces = parseInt(numOfPieces);
if (!bitfield) return []; if (!bitfield) return [];
var totalDownloaded = 0; var totalDownloaded = 0;
@ -147,8 +167,7 @@ angular.module('webui.services.utils', ['webui.services.configuration'])
var prog = !!bit; var prog = !!bit;
if (len >= 1 && chunks[len - 1].show == prog) { if (len >= 1 && chunks[len - 1].show == prog) {
chunks[len - 1].ratio += chunk_ratio; chunks[len - 1].ratio += chunk_ratio;
} } else {
else {
chunks.push({ chunks.push({
ratio: chunk_ratio, ratio: chunk_ratio,
show: prog show: prog
@ -156,8 +175,7 @@ angular.module('webui.services.utils', ['webui.services.configuration'])
len++; len++;
} }
piecesProcessed++; piecesProcessed++;
if (piecesProcessed == numPieces) if (piecesProcessed == numPieces) return chunks;
return chunks;
} }
} }
} }
@ -165,4 +183,5 @@ angular.module('webui.services.utils', ['webui.services.configuration'])
} }
}; };
return utils; return utils;
}]); }
]);

View File

@ -1,154 +1,163 @@
if(typeof translations == 'undefined'){ if (typeof translations == "undefined") {
translations = {}; translations = {};
} }
translations.cs_CZ = { translations.cs_CZ = {
// header // header
'Search': 'Hledat', Search: "Hledat",
// Nav menu // Nav menu
'Add': 'Přidat', Add: "Přidat",
'By URIs': 'Z URI', "By URIs": "Z URI",
'By Torrents': 'Z torrentu', "By Torrents": "Z torrentu",
'By Metalinks': 'Z metalinku', "By Metalinks": "Z metalinku",
'Manage': 'Spravovat', Manage: "Spravovat",
'Pause All': 'Zastavit vše', "Pause All": "Zastavit vše",
'Resume Paused': 'Obnovit zastavené', "Resume Paused": "Obnovit zastavené",
'Purge Completed': 'Odstranit hotové', "Purge Completed": "Odstranit hotové",
'Shutdown Server': 'Vypnout server', "Shutdown Server": "Vypnout server",
'Settings': 'Nastavení', Settings: "Nastavení",
'Connection Settings': 'Nastavení připojení', "Connection Settings": "Nastavení připojení",
'Global Settings': 'Obecné nastavení', "Global Settings": "Obecné nastavení",
'Server info': 'Informace o serveru', "Server info": "Informace o serveru",
'About and contribute': 'Informace', "About and contribute": "Informace",
'Toggle navigation': 'Přepnout ovládání', "Toggle navigation": "Přepnout ovládání",
// body // body
// nav side bar // nav side bar
'Miscellaneous': 'Různé', Miscellaneous: "Různé",
'Global Statistics': 'Globální statistika', "Global Statistics": "Globální statistika",
'About': 'Informace', About: "Informace",
'Displaying': 'Zobrazuji', Displaying: "Zobrazuji",
'of': 'z', of: "z",
'downloads': 'stahování', downloads: "stahování",
'Language': 'Jazyk', Language: "Jazyk",
// download filters // download filters
'Download Filters': 'Filtry stahování', "Download Filters": "Filtry stahování",
'Running': 'Stahují se', Running: "Stahují se",
'Active': 'Aktivní', Active: "Aktivní",
'Waiting': 'Čekající', Waiting: "Čekající",
'Complete': 'Hotové', Complete: "Hotové",
'Error': 'Chyba', Error: "Chyba",
'Paused': 'Zastavené', Paused: "Zastavené",
'Removed': 'Odstraněné', Removed: "Odstraněné",
'Hide linked meta-data': 'Skrýt připojená meta-data', "Hide linked meta-data": "Skrýt připojená meta-data",
'Toggle': 'Prohodit', Toggle: "Prohodit",
'Reset filters': 'Smazat filtry', "Reset filters": "Smazat filtry",
// download status // download status
'Verifing': 'Ověřování', Verifing: "Ověřování",
'Verify Pending': 'Čekání na ověření', "Verify Pending": "Čekání na ověření",
// starred properties // starred properties
'Quick Access Settings': 'Rychlé nastavení', "Quick Access Settings": "Rychlé nastavení",
'Save': 'Uložit', Save: "Uložit",
'Save settings': 'Uložit nastavení', "Save settings": "Uložit nastavení",
'Currently no download in line to display, use the': 'Není co zobrazit, použijte', "Currently no download in line to display, use the": "Není co zobrazit, použijte",
'download button to start downloading files!': 'tlačítko pro stáhnutí souborů!', "download button to start downloading files!": "tlačítko pro stáhnutí souborů!",
'Peers': 'Zdroje', Peers: "Zdroje",
'More Info': 'Víc informací', "More Info": "Víc informací",
'Remove': 'Odstranit', Remove: "Odstranit",
'# of': '# z', "# of": "# z",
'Length': 'Délka', Length: "Délka",
// modals // modals
'Add Downloads By URIs': 'Přidat stahování z URI', "Add Downloads By URIs": "Přidat stahování z URI",
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.': "- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
'- Můžete začít stahovat více souborů v jeden okamžik, tak že na každý řádek dáte jinou URI', "- Můžete začít stahovat více souborů v jeden okamžik, tak že na každý řádek dáte jinou URI",
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.': "- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
'- Také můžete přidat více URI (Zrcadel) pro *stejný* soubor, tak že je dáte na jeden řádek oddělené mezerou ', "- Také můžete přidat více URI (Zrcadel) pro *stejný* soubor, tak že je dáte na jeden řádek oddělené mezerou ",
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '- URI může být HTTP(S)/FTP/BitTorrent-Magnet.', "- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.": "- URI může být HTTP(S)/FTP/BitTorrent-Magnet.",
'Download settings': 'Nastavení stahování', "Download settings": "Nastavení stahování",
'Advanced settings': 'Pokročilé nastavení', "Advanced settings": "Pokročilé nastavení",
'Cancel': 'Zrušit', Cancel: "Zrušit",
'Start': 'Spustit', Start: "Spustit",
'Choose': 'Zvolit', Choose: "Zvolit",
'Quick Access (shown on the main page)': 'Rychlý přístup (Zobrazení na hlavní stránce)', "Quick Access (shown on the main page)": "Rychlý přístup (Zobrazení na hlavní stránce)",
// add torrent modal // add torrent modal
'Add Downloads By Torrents': 'Přidat stahování z torrentu', "Add Downloads By Torrents": "Přidat stahování z torrentu",
'- Select the torrent from the local filesystem to start the download.': '- Pro stahování vyberte torrent soubor z disku', "- Select the torrent from the local filesystem to start the download.":
'- You can select multiple torrents to start multiple downloads.': ' - Můžete zvolit víc torrentů pro spuštění více stahování', "- Pro stahování vyberte torrent soubor z disku",
'- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.': '- Pro stahování pomocí BitTorrent-Magnet URL, použijte možnost \"Z URI\"', "- You can select multiple torrents to start multiple downloads.":
'Select Torrents': 'Vyberte torrenty', " - Můžete zvolit víc torrentů pro spuštění více stahování",
'Select a Torrent': 'Vyberte torrent', "- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.":
// add metalink modal '- Pro stahování pomocí BitTorrent-Magnet URL, použijte možnost "Z URI"',
'Add Downloads By Metalinks': 'Přidat stahovní pomocí metalinku', "Select Torrents": "Vyberte torrenty",
'Select Metalinks': 'Výběr metalinků', "Select a Torrent": "Vyberte torrent",
'- Select the Metalink from the local filesystem to start the download.': '- Pro stahování vyberte metalink soubor z disku', // add metalink modal
'- You can select multiple Metalinks to start multiple downloads.': '- Můžete zvolit víc mentalinků pro spuštění více stahování', "Add Downloads By Metalinks": "Přidat stahovní pomocí metalinku",
'Select a Metalink': 'Vyberte metalink', "Select Metalinks": "Výběr metalinků",
// select file modal "- Select the Metalink from the local filesystem to start the download.":
'Choose files to start download for': 'Vyberte soubory pro stažení', "- Pro stahování vyberte metalink soubor z disku",
'Select to download': 'Vyberte ke stažení', "- You can select multiple Metalinks to start multiple downloads.":
// settings modal "- Můžete zvolit víc mentalinků pro spuštění více stahování",
'Aria2 RPC host and port': 'Aria2 RPC host a port', "Select a Metalink": "Vyberte metalink",
'Enter the host': 'Zadejte hosta', // select file modal
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)': "Choose files to start download for": "Vyberte soubory pro stažení",
'Zadejte IP nebo DNS jméno serveru na kterém běží Aria2 RPC (výchozí: localhost)', "Select to download": "Vyberte ke stažení",
'Enter the port': 'Zadejte port', // settings modal
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)': "Aria2 RPC host and port": "Aria2 RPC host a port",
'Zadejte port serveru na kterém běží Aria2 RPC (výchozí: 6800)', "Enter the host": "Zadejte hosta",
'Enter the RPC path': 'Zadejte cestu k RPC', "Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'Zadejte cestu k endpointu Aria2 RPC (výchozí: /jsonrpc)', "Zadejte IP nebo DNS jméno serveru na kterém běží Aria2 RPC (výchozí: localhost)",
'SSL/TLS encryption': 'SSL/TLS šifrování', "Enter the port": "Zadejte port",
'Enable SSL/TLS encryption': 'Zapnout SSL/TLS šifrování', "Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
'Enter the secret token (optional)': 'Zadejte bezpečnostní token (volitelné)', "Zadejte port serveru na kterém běží Aria2 RPC (výchozí: 6800)",
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)': "Enter the RPC path": "Zadejte cestu k RPC",
'Zadejte bezpečnostní token k Aria2 RPC (nechte prázné pokud autentifikace není nastavena)', "Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
'Enter the username (optional)': 'Zadejte uživatelské jméno (volitelné)', "Zadejte cestu k endpointu Aria2 RPC (výchozí: /jsonrpc)",
'Enter the Aria2 RPC username (empty if authentication not enabled)': "SSL/TLS encryption": "SSL/TLS šifrování",
'Zadejte uživatelské jméno pro Aria2 RPC (nechte prázné pokud autentifikace není nastavena)', "Enable SSL/TLS encryption": "Zapnout SSL/TLS šifrování",
'Enter the password (optional)': 'Zadejte heslo (volitelné)', "Enter the secret token (optional)": "Zadejte bezpečnostní token (volitelné)",
'Enter the Aria2 RPC password (empty if authentication not enabled)': 'Zadej heslo k Aria2 RPC (nechte prázné pokud autentifikace není nastavena)', "Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
'Enter base URL (optional)': 'Zadejte kořenovou URL serveru (volitelné)', "Zadejte bezpečnostní token k Aria2 RPC (nechte prázné pokud autentifikace není nastavena)",
'Direct Download': 'Přímé stažení', "Enter the username (optional)": "Zadejte uživatelské jméno (volitelné)",
'If supplied, links will be created to enable direct download from the Aria2 server.': "Enter the Aria2 RPC username (empty if authentication not enabled)":
'Jestliže je nastaveno, je možné stáhnout soubor přímo z Aria2 serveru.', "Zadejte uživatelské jméno pro Aria2 RPC (nechte prázné pokud autentifikace není nastavena)",
'(Requires appropriate webserver to be configured.)': '(Je třeba udělat patřičnou konfiguraci webserveru)', "Enter the password (optional)": "Zadejte heslo (volitelné)",
'Save Connection configuration': 'Uložit nastavení', "Enter the Aria2 RPC password (empty if authentication not enabled)":
'Filter': 'Filtr', "Zadej heslo k Aria2 RPC (nechte prázné pokud autentifikace není nastavena)",
// server info modal "Enter base URL (optional)": "Zadejte kořenovou URL serveru (volitelné)",
'Aria2 server info': 'Informace o Aria2 serveru', "Direct Download": "Přímé stažení",
'Aria2 Version': 'Verze Aria2', "If supplied, links will be created to enable direct download from the Aria2 server.":
'Features Enabled': 'Zapnuté funkce', "Jestliže je nastaveno, je možné stáhnout soubor přímo z Aria2 serveru.",
// about modal "(Requires appropriate webserver to be configured.)":
'To download the latest version of the project, add issues or to contribute back, head on to': "(Je třeba udělat patřičnou konfiguraci webserveru)",
'Ke stažení aktuální verze, nahlášení problému či přispění, zamiřte na', "Save Connection configuration": "Uložit nastavení",
'Or you can open the latest version in the browser through': 'Nebo můžete spustit aktuální verzi pomocí:', Filter: "Filtr",
'Close': 'Zavřít', // server info modal
// labels "Aria2 server info": "Informace o Aria2 serveru",
'Download status':'Stav stahování', "Aria2 Version": "Verze Aria2",
'Download Speed':'Rychlost stahování', "Features Enabled": "Zapnuté funkce",
'Upload Speed':'Rychlost nahrávání', // about modal
'Estimated time':'Odhadovaný čas', "To download the latest version of the project, add issues or to contribute back, head on to":
'Download Size':'Velikost', "Ke stažení aktuální verze, nahlášení problému či přispění, zamiřte na",
'Downloaded':'Staženo', "Or you can open the latest version in the browser through":
'Progress':'Průběh', "Nebo můžete spustit aktuální verzi pomocí:",
'Download Path':'Cesta', Close: "Zavřít",
'Uploaded':'Nahráno', // labels
'Download GID':'GID', "Download status": "Stav stahování",
'Number of Pieces':'Počet fragmentů', "Download Speed": "Rychlost stahování",
'Piece Length':'Délka fragmentu', "Upload Speed": "Rychlost nahrávání",
"Estimated time": "Odhadovaný čas",
"Download Size": "Velikost",
Downloaded: "Staženo",
Progress: "Průběh",
"Download Path": "Cesta",
Uploaded: "Nahráno",
"Download GID": "GID",
"Number of Pieces": "Počet fragmentů",
"Piece Length": "Délka fragmentu",
//alerts //alerts
'The last connection attempt was unsuccessful. Trying another configuration': "The last connection attempt was unsuccessful. Trying another configuration":
'Poslední pokus o připojení se nezdařil. Zkuste jiné nastavení', "Poslední pokus o připojení se nezdařil. Zkuste jiné nastavení",
'Oh Snap!': 'A sakra!', "Oh Snap!": "A sakra!",
'Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings': "Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings":
'Nemohu se připojit k Aria2 RPC serveru. Zkusím to znovu za 10 sekund. Možná by se to chtělo podívat do Nastavení > Nastavení připojení', "Nemohu se připojit k Aria2 RPC serveru. Zkusím to znovu za 10 sekund. Možná by se to chtělo podívat do Nastavení > Nastavení připojení",
'Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings': "Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings":
'Během připojování k Aria2 RPC serveru selhala autentifikace. Zkusím to znovu za 10 sekund. Možná by se to chtělo podívat do Nastavení > Nastavení připojení', "Během připojování k Aria2 RPC serveru selhala autentifikace. Zkusím to znovu za 10 sekund. Možná by se to chtělo podívat do Nastavení > Nastavení připojení",
'Successfully connected to Aria2 through its remote RPC …': "Successfully connected to Aria2 through its remote RPC …":
'Úspěšně připojeno k Aria2 pomocí RPC...', "Úspěšně připojeno k Aria2 pomocí RPC...",
'Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)': "Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)":
'Úspěšně připojeno k Aria2 pomocí RPC, ale připojení není zabezpečené. Pro úplné zabezpečení přidejte bezpečnostní token při spuštění Aria2 (pomocí možnosti --rpc-secret) ', "Úspěšně připojeno k Aria2 pomocí RPC, ale připojení není zabezpečené. Pro úplné zabezpečení přidejte bezpečnostní token při spuštění Aria2 (pomocí možnosti --rpc-secret) ",
'Trying to connect to aria2 using the new connection configuration': "Trying to connect to aria2 using the new connection configuration":
'Zkouším se připojit k Aria2 za pomocí nového nastavení', "Zkouším se připojit k Aria2 za pomocí nového nastavení",
'Remove {{name}} and associated meta-data?': // {{name}} refers to the download name, do not modify. // {{name}} refers to the download name, do not modify.
'Odstranit {{name}} a příslušná meta-data?' "Remove {{name}} and associated meta-data?": "Odstranit {{name}} a příslušná meta-data?"
}; };

View File

@ -1,132 +1,144 @@
if(typeof translations == 'undefined'){ if (typeof translations == "undefined") {
translations = {}; translations = {};
} }
translations.de_DE = { translations.de_DE = {
// header // header
'Search': 'Suche', Search: "Suche",
// Nav menu // Nav menu
'Add': 'Hinzufügen', Add: "Hinzufügen",
'By URIs': 'mit URIs', "By URIs": "mit URIs",
'By Torrents': 'mit Torrents', "By Torrents": "mit Torrents",
'By Metalinks': 'mit Metalinks', "By Metalinks": "mit Metalinks",
'Manage': 'Verwalten', Manage: "Verwalten",
'Pause All': 'Alle anhalten', "Pause All": "Alle anhalten",
'Resume Paused': 'Angehaltene fortsetzen', "Resume Paused": "Angehaltene fortsetzen",
'Purge Completed': 'Fertige entfernen', "Purge Completed": "Fertige entfernen",
'Settings': 'Einstellungen', Settings: "Einstellungen",
'Connection Settings': 'Verbindungseinstellungen', "Connection Settings": "Verbindungseinstellungen",
'Global Settings': 'Globale Einstellungen', "Global Settings": "Globale Einstellungen",
'Server info': 'Server Information', "Server info": "Server Information",
'About and contribute': 'Über webui-aria2', "About and contribute": "Über webui-aria2",
'Toggle navigation': 'Navigation an/ausschalten', "Toggle navigation": "Navigation an/ausschalten",
// body // body
// nav side bar // nav side bar
'Miscellaneous': 'Verschiedenes', Miscellaneous: "Verschiedenes",
'Global Statistics': 'Globale Statistiken', "Global Statistics": "Globale Statistiken",
'About': 'Über', About: "Über",
'Displaying': 'Anzeige', Displaying: "Anzeige",
'of': 'von', of: "von",
'downloads': 'Downloads', downloads: "Downloads",
'Language': 'Sprache', Language: "Sprache",
// download filters // download filters
'Download Filters': 'Download Filter', "Download Filters": "Download Filter",
'Running': 'Laufende', Running: "Laufende",
'Active': 'Aktive', Active: "Aktive",
'Waiting': 'Wartende', Waiting: "Wartende",
'Complete': 'Fertige', Complete: "Fertige",
'Error': 'Fehler', Error: "Fehler",
'Paused': 'Angehaltene', Paused: "Angehaltene",
'Removed': 'Gelöschte', Removed: "Gelöschte",
'Hide linked meta-data': 'Blende verlinkte Meta-Daten aus', "Hide linked meta-data": "Blende verlinkte Meta-Daten aus",
'Toggle': 'Umschalten', Toggle: "Umschalten",
'Reset filters': 'Filter zurücksetzen', "Reset filters": "Filter zurücksetzen",
// starred properties // starred properties
'Quick Access Settings': 'Ausgewählte Einstellungen', "Quick Access Settings": "Ausgewählte Einstellungen",
'Save settings': 'Einstellungen speichern', "Save settings": "Einstellungen speichern",
'Currently no download in line to display, use the': 'Aktuell sind keine Downloads vorhanden, bitte benutz den', "Currently no download in line to display, use the":
'download button to start downloading files!': 'Download Link um den Download von Dateien zu beginnen!', "Aktuell sind keine Downloads vorhanden, bitte benutz den",
'Peers': 'Peers', "download button to start downloading files!":
'More Info': 'Mehr Infos', "Download Link um den Download von Dateien zu beginnen!",
'Remove': 'Entfernen', Peers: "Peers",
'# of': '# von', "More Info": "Mehr Infos",
'Length': 'Länge', Remove: "Entfernen",
// modals "# of": "# von",
'Add Downloads By URIs': 'Downloads anhand von URIs hinzufügen', Length: "Länge",
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.': // modals
'- Es können mehrere Downloads (Dateien) gleichzeitig hinzugefügt werden, indem jede URI in eine separate Zeile eingegeben wird.', "Add Downloads By URIs": "Downloads anhand von URIs hinzufügen",
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.': "- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
'- Es können auch mehrere URIs (Spiegelserver) für *dieselbe* Datei durch Leerzeichen getrennt angegeben werden.', "- Es können mehrere Downloads (Dateien) gleichzeitig hinzugefügt werden, indem jede URI in eine separate Zeile eingegeben wird.",
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '- Eine URI kann folgende Protokolle besitzen: HTTP(S)/FTP/BitTorrent-Magnet.', "- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
'Download settings': 'Download Einstellungen', "- Es können auch mehrere URIs (Spiegelserver) für *dieselbe* Datei durch Leerzeichen getrennt angegeben werden.",
'Advanced settings': 'Erweiterte Einstellungen', "- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.":
'Cancel': 'Abbrechen', "- Eine URI kann folgende Protokolle besitzen: HTTP(S)/FTP/BitTorrent-Magnet.",
'Start': 'Beginnen', "Download settings": "Download Einstellungen",
'Choose': 'Auswählen', "Advanced settings": "Erweiterte Einstellungen",
'Quick Access (shown on the main page)': 'Schnellzugriff (Anzeige auf der Hauptseite)', Cancel: "Abbrechen",
// add torrent modal Start: "Beginnen",
'Add Downloads By Torrents': 'Downloads mit Torrents hinzufügen', Choose: "Auswählen",
'- Select the torrent from the local filesystem to start the download.': '- Wähle ein Torrent vom lokalen Dateisystem um den Download zu starten', "Quick Access (shown on the main page)": "Schnellzugriff (Anzeige auf der Hauptseite)",
'- You can select multiple torrents to start multiple downloads.': '- Es können mehrere Torrents ausgewählt werden um mehrere Downloads zu starten', // add torrent modal
'- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.': '- Für BitTorrent-Magnet URLs benutz die Option \'Mit URIs hinzufügen\'', "Add Downloads By Torrents": "Downloads mit Torrents hinzufügen",
'Select Torrents': 'Wähle Torrents', "- Select the torrent from the local filesystem to start the download.":
'Select a Torrent': 'Wähle ein Torrent', "- Wähle ein Torrent vom lokalen Dateisystem um den Download zu starten",
// add metalink modal "- You can select multiple torrents to start multiple downloads.":
'Add Downloads By Metalinks': 'Download mit Metalinks hinzufügen', "- Es können mehrere Torrents ausgewählt werden um mehrere Downloads zu starten",
'Select Metalinks': 'Wähle Metalinks', "- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.":
'- Select the Metalink from the local filesystem to start the download.': '- Wähle ein Metalink vom lokalen Dateisystem um den Download zu starten', "- Für BitTorrent-Magnet URLs benutz die Option 'Mit URIs hinzufügen'",
'- You can select multiple Metalinks to start multiple downloads.': '- Es können mehrere Metalinks ausgewählt werden um mehrere Downloads zu starten', "Select Torrents": "Wähle Torrents",
'Select a Metalink': 'Wähle einen Metalink', "Select a Torrent": "Wähle ein Torrent",
// select file modal // add metalink modal
'Choose files to start download for': 'Wähle Dateien für den Download aus', "Add Downloads By Metalinks": "Download mit Metalinks hinzufügen",
'Select to download': 'Wähle zum Download', "Select Metalinks": "Wähle Metalinks",
// settings modal "- Select the Metalink from the local filesystem to start the download.":
'Aria2 RPC host and port': 'Aria2 RPC host und port', "- Wähle ein Metalink vom lokalen Dateisystem um den Download zu starten",
'Enter the host': 'Host', "- You can select multiple Metalinks to start multiple downloads.":
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)': "- Es können mehrere Metalinks ausgewählt werden um mehrere Downloads zu starten",
'Gib die IP oder den DNS Namen des Servers ein, auf dem Aria2 läuft und mit dem du eine RPC-Verbindung etablieren willst (Standard: localhost)', "Select a Metalink": "Wähle einen Metalink",
'Enter the port': 'Port', // select file modal
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)': "Choose files to start download for": "Wähle Dateien für den Download aus",
'Gib den Port des Servers ein, auf dem der RPC-Dienst von Aria2 läuft (Standard: 6800)', "Select to download": "Wähle zum Download",
'Enter the RPC path': 'RPC Pfad', // settings modal
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'Gib den Pfad zum Aria2 RPC Endpunkt an (Standard: /jsonrpc)', "Aria2 RPC host and port": "Aria2 RPC host und port",
'SSL/TLS encryption': 'SSL/TLS', "Enter the host": "Host",
'Enable SSL/TLS encryption': 'Aktiviere SSL/TLS Verschlüsselung', "Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
'Enter the secret token (optional)': 'Secret Token (optional)', "Gib die IP oder den DNS Namen des Servers ein, auf dem Aria2 läuft und mit dem du eine RPC-Verbindung etablieren willst (Standard: localhost)",
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)': "Enter the port": "Port",
'Gib den Aria2 RPC secret Token ein (leer lassen falls keine Authentifizierung aktiv)', "Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
'Enter the username (optional)': 'Benutzername (optional)', "Gib den Port des Servers ein, auf dem der RPC-Dienst von Aria2 läuft (Standard: 6800)",
'Enter the Aria2 RPC username (empty if authentication not enabled)': "Enter the RPC path": "RPC Pfad",
'Gib den Aria2 RPC Benutzernamen ein (leer lassen falls keine Authentifizierung aktiv)', "Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
'Enter the password (optional)': 'Passwort (optional)', "Gib den Pfad zum Aria2 RPC Endpunkt an (Standard: /jsonrpc)",
'Enter the Aria2 RPC password (empty if authentication not enabled)': 'Gib das Aria2 RPC Passwort ein (leer lassen falls keine Authentifizierung aktiv)', "SSL/TLS encryption": "SSL/TLS",
'Enter base URL (optional)': 'Base URL (optional)', "Enable SSL/TLS encryption": "Aktiviere SSL/TLS Verschlüsselung",
'Direct Download': 'Direkter Download', "Enter the secret token (optional)": "Secret Token (optional)",
'If supplied, links will be created to enable direct download from the Aria2 server.': "Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
'Falls angegeben, werden Links erstellt um einen direkten Download vom Aria2 Server zu ermöglichen', "Gib den Aria2 RPC secret Token ein (leer lassen falls keine Authentifizierung aktiv)",
'(Requires appropriate webserver to be configured.)': '(Es wird ein entsprechend konfigurierter WebServer benötigt.)', "Enter the username (optional)": "Benutzername (optional)",
'Save Connection configuration': 'Speichern der Verbindungseinstellung', "Enter the Aria2 RPC username (empty if authentication not enabled)":
'Filter': 'Filter', "Gib den Aria2 RPC Benutzernamen ein (leer lassen falls keine Authentifizierung aktiv)",
// server info modal "Enter the password (optional)": "Passwort (optional)",
'Aria2 server info': 'Aria2 Server Info', "Enter the Aria2 RPC password (empty if authentication not enabled)":
'Aria2 Version': 'Aria2 Version', "Gib das Aria2 RPC Passwort ein (leer lassen falls keine Authentifizierung aktiv)",
'Features Enabled': 'Aktive Funktionen', "Enter base URL (optional)": "Base URL (optional)",
// about modal "Direct Download": "Direkter Download",
'To download the latest version of the project, add issues or to contribute back, head on to': "If supplied, links will be created to enable direct download from the Aria2 server.":
'Um die neuste Version des Projects zu laden, Fehler zu melden oder sich zu beteiligen, besuch', "Falls angegeben, werden Links erstellt um einen direkten Download vom Aria2 Server zu ermöglichen",
'Or you can open the latest version in the browser through': 'Oder du kannst die neueste Version direkt in deinem Browser verwenden', "(Requires appropriate webserver to be configured.)":
'Close': 'Schließen', "(Es wird ein entsprechend konfigurierter WebServer benötigt.)",
// lables "Save Connection configuration": "Speichern der Verbindungseinstellung",
'Download status':'Download Status', Filter: "Filter",
'Download Speed':'Download Geschwindigkeit', // server info modal
'Upload Speed':'Upload Geschwindigkeit', "Aria2 server info": "Aria2 Server Info",
'Estimated time':'Geschätzte Zeit', "Aria2 Version": "Aria2 Version",
'Download Size':'Download Größe', "Features Enabled": "Aktive Funktionen",
'Downloaded':'Heruntergeladen', // about modal
'Progress':'Fortschritt', "To download the latest version of the project, add issues or to contribute back, head on to":
'Download Path':'Download Pfad', "Um die neuste Version des Projects zu laden, Fehler zu melden oder sich zu beteiligen, besuch",
'Uploaded':'Hochgeladen', "Or you can open the latest version in the browser through":
'Download GID':'Download GID', "Oder du kannst die neueste Version direkt in deinem Browser verwenden",
'Number of Pieces':'Anzahl der Stücken', Close: "Schließen",
'Piece Length':'Größe der Stücken' // lables
"Download status": "Download Status",
"Download Speed": "Download Geschwindigkeit",
"Upload Speed": "Upload Geschwindigkeit",
"Estimated time": "Geschätzte Zeit",
"Download Size": "Download Größe",
Downloaded: "Heruntergeladen",
Progress: "Fortschritt",
"Download Path": "Download Pfad",
Uploaded: "Hochgeladen",
"Download GID": "Download GID",
"Number of Pieces": "Anzahl der Stücken",
"Piece Length": "Größe der Stücken"
}; };

View File

@ -1,146 +1,162 @@
if(typeof translations == 'undefined'){ if (typeof translations == "undefined") {
translations = {}; translations = {};
} }
translations.en_US = { translations.en_US = {
// header // header
'Search': 'Search', Search: "Search",
// Nav menu // Nav menu
'Add': 'Add', Add: "Add",
'By URIs': 'By URIs', "By URIs": "By URIs",
'By Torrents': 'By Torrents', "By Torrents": "By Torrents",
'By Metalinks': 'By Metalinks', "By Metalinks": "By Metalinks",
'Manage': 'Manage', Manage: "Manage",
'Pause All': 'Pause All', "Pause All": "Pause All",
'Resume Paused': 'Resume Paused', "Resume Paused": "Resume Paused",
'Purge Completed': 'Purge Completed', "Purge Completed": "Purge Completed",
'Settings': 'Settings', Settings: "Settings",
'Connection Settings': 'Connection Settings', "Connection Settings": "Connection Settings",
'Global Settings': 'Global Settings', "Global Settings": "Global Settings",
'Server info': 'Server info', "Server info": "Server info",
'About and contribute': 'About and contribute', "About and contribute": "About and contribute",
'Toggle navigation': 'Toggle navigation', "Toggle navigation": "Toggle navigation",
// body // body
// nav side bar // nav side bar
'Miscellaneous': 'Miscellaneous', Miscellaneous: "Miscellaneous",
'Global Statistics': 'Global Statistics', "Global Statistics": "Global Statistics",
'About': 'About', About: "About",
'Displaying': 'Displaying', Displaying: "Displaying",
'of': 'of', of: "of",
'downloads': 'downloads', downloads: "downloads",
'Language': 'Language', Language: "Language",
// download filters // download filters
'Download Filters': 'Download Filters', "Download Filters": "Download Filters",
'Running': 'Running', Running: "Running",
'Active': 'Active', Active: "Active",
'Waiting': 'Waiting', Waiting: "Waiting",
'Complete': 'Complete', Complete: "Complete",
'Error': 'Error', Error: "Error",
'Paused': 'Paused', Paused: "Paused",
'Removed': 'Removed', Removed: "Removed",
'Hide linked meta-data': 'Hide linked meta-data', "Hide linked meta-data": "Hide linked meta-data",
'Toggle': 'Toggle', Toggle: "Toggle",
'Reset filters': 'Reset filters', "Reset filters": "Reset filters",
// download status // download status
'Verifing': 'Verifing', Verifing: "Verifing",
'Verify Pending': 'Verify Pending', "Verify Pending": "Verify Pending",
// starred properties // starred properties
'Quick Access Settings': 'Quick Access Settings', "Quick Access Settings": "Quick Access Settings",
'Save': 'Save', Save: "Save",
'Save settings': 'Save settings', "Save settings": "Save settings",
'Currently no download in line to display, use the': 'Currently no download in line to display, use the', "Currently no download in line to display, use the":
'download button to start downloading files!': 'download button to start downloading files!', "Currently no download in line to display, use the",
'Peers': 'Peers', "download button to start downloading files!": "download button to start downloading files!",
'More Info': 'More Info', Peers: "Peers",
'Remove': 'Remove', "More Info": "More Info",
'# of': '# of', Remove: "Remove",
'Length': 'Length', "# of": "# of",
// modals Length: "Length",
'Add Downloads By URIs': 'Add Downloads By URIs', // modals
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.': "Add Downloads By URIs": "Add Downloads By URIs",
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.', "- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.': "- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.",
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.', "- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.', "- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.",
'Download settings': 'Download settings', "- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.": "- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.",
'Advanced settings': 'Advanced settings', "Download settings": "Download settings",
'Cancel': 'Cancel', "Advanced settings": "Advanced settings",
'Start': 'Start', Cancel: "Cancel",
'Choose': 'Choose', Start: "Start",
'Quick Access (shown on the main page)': 'Quick Access (shown on the main page)', Choose: "Choose",
// add torrent modal "Quick Access (shown on the main page)": "Quick Access (shown on the main page)",
'Add Downloads By Torrents': 'Add Downloads By Torrents', // add torrent modal
'- Select the torrent from the local filesystem to start the download.': '- Select the torrent from the local filesystem to start the download.', "Add Downloads By Torrents": "Add Downloads By Torrents",
'- You can select multiple torrents to start multiple downloads.': '- You can select multiple torrents to start multiple downloads.', "- Select the torrent from the local filesystem to start the download.":
'- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.': '- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.', "- Select the torrent from the local filesystem to start the download.",
'Select Torrents': 'Select Torrents', "- You can select multiple torrents to start multiple downloads.":
'Select a Torrent': 'Select a Torrent', "- You can select multiple torrents to start multiple downloads.",
// add metalink modal "- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.":
'Add Downloads By Metalinks': 'Add Downloads By Metalinks', "- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.",
'Select Metalinks': 'Select Metalinks', "Select Torrents": "Select Torrents",
'- Select the Metalink from the local filesystem to start the download.': '- Select the Metalink from the local filesystem to start the download.', "Select a Torrent": "Select a Torrent",
'- You can select multiple Metalinks to start multiple downloads.': '- You can select multiple Metalinks to start multiple downloads.', // add metalink modal
'Select a Metalink': 'Select a Metalink', "Add Downloads By Metalinks": "Add Downloads By Metalinks",
// select file modal "Select Metalinks": "Select Metalinks",
'Choose files to start download for': 'Choose files to start download for', "- Select the Metalink from the local filesystem to start the download.":
'Select to download': 'Select to download', "- Select the Metalink from the local filesystem to start the download.",
// settings modal "- You can select multiple Metalinks to start multiple downloads.":
'Aria2 RPC host and port': 'Aria2 RPC host and port', "- You can select multiple Metalinks to start multiple downloads.",
'Enter the host': 'Enter the host', "Select a Metalink": "Select a Metalink",
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)': // select file modal
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)', "Choose files to start download for": "Choose files to start download for",
'Enter the port': 'Enter the port', "Select to download": "Select to download",
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)': // settings modal
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)', "Aria2 RPC host and port": "Aria2 RPC host and port",
'Enter the RPC path': 'Enter the RPC path', "Enter the host": "Enter the host",
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)', "Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
'SSL/TLS encryption': 'SSL/TLS encryption', "Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)",
'Enable SSL/TLS encryption': 'Enable SSL/TLS encryption', "Enter the port": "Enter the port",
'Enter the secret token (optional)': 'Enter the secret token (optional)', "Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)': "Enter the port of the server on which the RPC for Aria2 is running (default: 6800)",
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)', "Enter the RPC path": "Enter the RPC path",
'Enter the username (optional)': 'Enter the username (optional)', "Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
'Enter the Aria2 RPC username (empty if authentication not enabled)': "Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)",
'Enter the Aria2 RPC username (empty if authentication not enabled)', "SSL/TLS encryption": "SSL/TLS encryption",
'Enter the password (optional)': 'Enter the password (optional)', "Enable SSL/TLS encryption": "Enable SSL/TLS encryption",
'Enter the Aria2 RPC password (empty if authentication not enabled)': 'Enter the Aria2 RPC password (empty if authentication not enabled)', "Enter the secret token (optional)": "Enter the secret token (optional)",
'Enter base URL (optional)': 'Enter base URL (optional)', "Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
'Direct Download': 'Direct Download', "Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)",
'If supplied, links will be created to enable direct download from the Aria2 server.': "Enter the username (optional)": "Enter the username (optional)",
'If supplied, links will be created to enable direct download from the Aria2 server.', "Enter the Aria2 RPC username (empty if authentication not enabled)":
'(Requires appropriate webserver to be configured.)': '(Requires appropriate webserver to be configured.)', "Enter the Aria2 RPC username (empty if authentication not enabled)",
'Save Connection configuration': 'Save Connection configuration', "Enter the password (optional)": "Enter the password (optional)",
'Filter': 'Filter', "Enter the Aria2 RPC password (empty if authentication not enabled)":
// server info modal "Enter the Aria2 RPC password (empty if authentication not enabled)",
'Aria2 server info': 'Aria2 server info', "Enter base URL (optional)": "Enter base URL (optional)",
'Aria2 Version': 'Aria2 Version', "Direct Download": "Direct Download",
'Features Enabled': 'Features Enabled', "If supplied, links will be created to enable direct download from the Aria2 server.":
// about modal "If supplied, links will be created to enable direct download from the Aria2 server.",
'To download the latest version of the project, add issues or to contribute back, head on to': "(Requires appropriate webserver to be configured.)":
'To download the latest version of the project, add issues or to contribute back, head on to', "(Requires appropriate webserver to be configured.)",
'Or you can open the latest version in the browser through': 'Or you can open the latest version in the browser through', "Save Connection configuration": "Save Connection configuration",
'Close': 'Close', Filter: "Filter",
// lables // server info modal
'Download status':'Download status', "Aria2 server info": "Aria2 server info",
'Download Speed':'Download Speed', "Aria2 Version": "Aria2 Version",
'Upload Speed':'Upload Speed', "Features Enabled": "Features Enabled",
'Estimated time':'Estimated time', // about modal
'Download Size':'Download Size', "To download the latest version of the project, add issues or to contribute back, head on to":
'Downloaded':'Downloaded', "To download the latest version of the project, add issues or to contribute back, head on to",
'Progress':'Progress', "Or you can open the latest version in the browser through":
'Download Path':'Download Path', "Or you can open the latest version in the browser through",
'Uploaded':'Uploaded', Close: "Close",
'Download GID':'Download GID', // lables
'Number of Pieces':'Number of Pieces', "Download status": "Download status",
'Piece Length': 'Piece Length', "Download Speed": "Download Speed",
'Shutdown Server': 'Shutdown Server', "Upload Speed": "Upload Speed",
"Estimated time": "Estimated time",
"Download Size": "Download Size",
Downloaded: "Downloaded",
Progress: "Progress",
"Download Path": "Download Path",
Uploaded: "Uploaded",
"Download GID": "Download GID",
"Number of Pieces": "Number of Pieces",
"Piece Length": "Piece Length",
"Shutdown Server": "Shutdown Server",
'The last connection attempt was unsuccessful. Trying another configuration': 'The last connection attempt was unsuccessful. Trying another configuration', "The last connection attempt was unsuccessful. Trying another configuration":
'Oh Snap!': 'Oh Snap!', "The last connection attempt was unsuccessful. Trying another configuration",
'Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings': 'Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings', "Oh Snap!": "Oh Snap!",
'Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings': 'Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings', "Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings":
'Successfully connected to Aria2 through its remote RPC …': 'Successfully connected to Aria2 through its remote RPC …', "Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings",
'Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)': 'Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)', "Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings":
'Trying to connect to aria2 using the new connection configuration': 'Trying to connect to aria2 using the new connection configuration', "Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings",
'Remove {{name}} and associated meta-data?': 'Remove {{name}} and associated meta-data?' "Successfully connected to Aria2 through its remote RPC …":
"Successfully connected to Aria2 through its remote RPC …",
"Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)":
"Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)",
"Trying to connect to aria2 using the new connection configuration":
"Trying to connect to aria2 using the new connection configuration",
"Remove {{name}} and associated meta-data?": "Remove {{name}} and associated meta-data?"
}; };

View File

@ -12,154 +12,166 @@
// 5. Browser determining preferred language automatically. // 5. Browser determining preferred language automatically.
// http://angular-translate.github.io/docs/en/#/guide/07_multi-language // http://angular-translate.github.io/docs/en/#/guide/07_multi-language
if(typeof translations == 'undefined'){ if (typeof translations == "undefined") {
translations = {}; translations = {};
} }
translations.es_ES = { // replace en_US to ll_CC, examples: zh_CN, de_AT. translations.es_ES = {
// header // replace en_US to ll_CC, examples: zh_CN, de_AT.
'Search': 'Buscar', // header
Search: "Buscar",
// Nav menu // Nav menu
'Add': 'Añadir', Add: "Añadir",
'By URIs': 'URIs', "By URIs": "URIs",
'By Torrents': 'Torrents', "By Torrents": "Torrents",
'By Metalinks': 'Metalinks', "By Metalinks": "Metalinks",
'Manage': 'Administrar', Manage: "Administrar",
'Pause All': 'Pausar Todos', "Pause All": "Pausar Todos",
'Resume Paused': 'Reanudar Pausados', "Resume Paused": "Reanudar Pausados",
'Purge Completed': 'Purgar Completados', "Purge Completed": "Purgar Completados",
'Shutdown Server': 'Desactivar servidor', "Shutdown Server": "Desactivar servidor",
'Settings': 'Ajustes', Settings: "Ajustes",
'Connection Settings': 'Ajustes de Conexión', "Connection Settings": "Ajustes de Conexión",
'Global Settings': 'Ajustes Globales', "Global Settings": "Ajustes Globales",
'Server info': 'Info de Servidor', "Server info": "Info de Servidor",
'About and contribute': 'Acerca y Colaborar', "About and contribute": "Acerca y Colaborar",
'Toggle navigation': 'Conmutar Navegación', "Toggle navigation": "Conmutar Navegación",
// body // body
// nav side bar // nav side bar
'Miscellaneous': 'Otros', Miscellaneous: "Otros",
'Global Statistics': 'Estadísticas Globales', "Global Statistics": "Estadísticas Globales",
'About': 'Acerca de', About: "Acerca de",
'Displaying': 'Mostrando', Displaying: "Mostrando",
'of': 'de', of: "de",
'downloads': 'descargas', downloads: "descargas",
'Language': 'Idioma', Language: "Idioma",
// download filters // download filters
'Download Filters': 'Filtros de Descargas', "Download Filters": "Filtros de Descargas",
'Running': 'Procesando', Running: "Procesando",
'Active': 'Activo', Active: "Activo",
'Waiting': 'Esperando', Waiting: "Esperando",
'Complete': 'Completo', Complete: "Completo",
'Error': 'Error', Error: "Error",
'Paused': 'En Pausa', Paused: "En Pausa",
'Removed': 'Eliminado', Removed: "Eliminado",
'Hide linked meta-data': 'Ocultar metadatos adjuntos', "Hide linked meta-data": "Ocultar metadatos adjuntos",
'Toggle': 'Conmutar', Toggle: "Conmutar",
'Reset filters': 'Restablecer Filtros', "Reset filters": "Restablecer Filtros",
// download status // download status
'Verifing': 'Verificando', Verifing: "Verificando",
'Verify Pending': 'Pendiente de verificación', "Verify Pending": "Pendiente de verificación",
// starred properties // starred properties
'Quick Access Settings': 'Ajustes Rápidos', "Quick Access Settings": "Ajustes Rápidos",
'Save': 'Guardar', Save: "Guardar",
'Save settings': 'Guardar Ajustes', "Save settings": "Guardar Ajustes",
'Currently no download in line to display, use the': 'En este momento no hay descargas para mostrar. ¡Use la opción', "Currently no download in line to display, use the":
'download button to start downloading files!': 'para empezar a descargar sus archivos!', "En este momento no hay descargas para mostrar. ¡Use la opción",
'Peers': 'Pares', "download button to start downloading files!": "para empezar a descargar sus archivos!",
'More Info': 'Mas Info', Peers: "Pares",
'Remove': 'Eliminar', "More Info": "Mas Info",
'# of': '# de', Remove: "Eliminar",
'Length': 'Longitud', "# of": "# de",
// modals Length: "Longitud",
'Add Downloads By URIs': 'Añadir descargas por URIs', // modals
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.': "Add Downloads By URIs": "Añadir descargas por URIs",
'Añada varias descargas colocando la URI de cada descarga en una línea separada.', "- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.': "Añada varias descargas colocando la URI de cada descarga en una línea separada.",
'Puede añadir URIs de espejo para *el mismo* archivo. Separe cada URI con un espacio.', "- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': 'Una URI puede ser HTTP(S), FTP, BitTorrent o Magnet.', "Puede añadir URIs de espejo para *el mismo* archivo. Separe cada URI con un espacio.",
'Download settings': 'Ajustes de Descargas', "- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.":
'Advanced settings': 'Ajustes Avanzados', "Una URI puede ser HTTP(S), FTP, BitTorrent o Magnet.",
'Cancel': 'Cancelar', "Download settings": "Ajustes de Descargas",
'Start': 'Iniciar', "Advanced settings": "Ajustes Avanzados",
'Choose': 'Escoja', Cancel: "Cancelar",
'Quick Access (shown on the main page)': 'Acceso Rápido (Se muestra en la pág principal)', Start: "Iniciar",
// add torrent modal Choose: "Escoja",
'Add Downloads By Torrents': 'Añadir descargas Torrent', "Quick Access (shown on the main page)": "Acceso Rápido (Se muestra en la pág principal)",
'- Select the torrent from the local filesystem to start the download.': 'Seleccione el archivo Torrent de su equipo para iniciar la descarga', // add torrent modal
'- You can select multiple torrents to start multiple downloads.': 'Puede seleccionar varios torrents', "Add Downloads By Torrents": "Añadir descargas Torrent",
'- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.': 'Para los enlaces Magnet, salga de este cuadro y use la opción Añadir \ URI', "- Select the torrent from the local filesystem to start the download.":
'Select Torrents': 'Escoja los Torrents', "Seleccione el archivo Torrent de su equipo para iniciar la descarga",
'Select a Torrent': 'Escoja el Torrent', "- You can select multiple torrents to start multiple downloads.":
// add metalink modal "Puede seleccionar varios torrents",
'Add Downloads By Metalinks': 'Añadir descargas Metalink', "- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.":
'Select Metalinks': 'Seleccione el Metalink', "Para los enlaces Magnet, salga de este cuadro y use la opción Añadir URI",
'- Select the Metalink from the local filesystem to start the download.': 'Escoja el archivo Metalink de su equipo para iniciar la descarga', "Select Torrents": "Escoja los Torrents",
'- You can select multiple Metalinks to start multiple downloads.': 'Puede escoger varios archivos Metalink', "Select a Torrent": "Escoja el Torrent",
'Select a Metalink': 'Escoja el archivo Metalink', // add metalink modal
// select file modal "Add Downloads By Metalinks": "Añadir descargas Metalink",
'Choose files to start download for': 'Escoja los archivos que desea descargar', "Select Metalinks": "Seleccione el Metalink",
'Select to download': 'Escoja que descargar', "- Select the Metalink from the local filesystem to start the download.":
// settings modal "Escoja el archivo Metalink de su equipo para iniciar la descarga",
'Aria2 RPC host and port': 'Servidor Aria2 y puerto', "- You can select multiple Metalinks to start multiple downloads.":
'Enter the host': 'Escriba la dirección', "Puede escoger varios archivos Metalink",
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)': "Select a Metalink": "Escoja el archivo Metalink",
'Escriba la dirección o nombre DNS del servidor Aria2 (por defecto: localhost)', // select file modal
'Enter the port': 'Escriba el puerto', "Choose files to start download for": "Escoja los archivos que desea descargar",
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)': "Select to download": "Escoja que descargar",
'Escriba el número del puerto del servidor Aria2 (por defecto: 6800)', // settings modal
'Enter the RPC path': 'Escriba la ruta RPC', "Aria2 RPC host and port": "Servidor Aria2 y puerto",
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'Escriba la ruta de acceso RPC de Aria2 (por defecto: /jsonrpc)', "Enter the host": "Escriba la dirección",
'SSL/TLS encryption': 'Cifrado SSL/TLS', "Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
'Enable SSL/TLS encryption': 'Habilitar Cifrado SSL/TLS', "Escriba la dirección o nombre DNS del servidor Aria2 (por defecto: localhost)",
'Enter the secret token (optional)': 'Escriba la frase Token (opcional)', "Enter the port": "Escriba el puerto",
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)': "Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
'Escriba la frase Token secreta (vacío si la autenticación está deshabilitada)', "Escriba el número del puerto del servidor Aria2 (por defecto: 6800)",
'Enter the username (optional)': 'Usuario (opcional)', "Enter the RPC path": "Escriba la ruta RPC",
'Enter the Aria2 RPC username (empty if authentication not enabled)': "Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
'Escriba el nombre de usuario (vacío si la autenticación está deshabilitada)', "Escriba la ruta de acceso RPC de Aria2 (por defecto: /jsonrpc)",
'Enter the password (optional)': 'Escriba la contraseña', "SSL/TLS encryption": "Cifrado SSL/TLS",
'Enter the Aria2 RPC password (empty if authentication not enabled)': 'Escriba la contraseña RPC (vacío si la autenticación está deshabilitada)', "Enable SSL/TLS encryption": "Habilitar Cifrado SSL/TLS",
'Enter base URL (optional)': 'Escriba la URL base (opcional)', "Enter the secret token (optional)": "Escriba la frase Token (opcional)",
'Direct Download': 'Descarga Directa', "Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
'If supplied, links will be created to enable direct download from the Aria2 server.': "Escriba la frase Token secreta (vacío si la autenticación está deshabilitada)",
'Esto permite crear enlaces de descarga de los archivos desde el servidor Aria2', "Enter the username (optional)": "Usuario (opcional)",
'(Requires appropriate webserver to be configured.)': '(Requiere configuración apropiada del servidor web)', "Enter the Aria2 RPC username (empty if authentication not enabled)":
'Save Connection configuration': 'Guardar Configuración', "Escriba el nombre de usuario (vacío si la autenticación está deshabilitada)",
'Filter': 'Filrar', "Enter the password (optional)": "Escriba la contraseña",
// server info modal "Enter the Aria2 RPC password (empty if authentication not enabled)":
'Aria2 server info': 'Información de servidor Aria2', "Escriba la contraseña RPC (vacío si la autenticación está deshabilitada)",
'Aria2 Version': 'Aria2 versión', "Enter base URL (optional)": "Escriba la URL base (opcional)",
'Features Enabled': 'Funcionalidad disponible', "Direct Download": "Descarga Directa",
// about modal "If supplied, links will be created to enable direct download from the Aria2 server.":
'To download the latest version of the project, add issues or to contribute back, head on to': "Esto permite crear enlaces de descarga de los archivos desde el servidor Aria2",
'Para obtener la última versión del proyecto, reportar problemas o colaborar, vaya a', "(Requires appropriate webserver to be configured.)":
'Or you can open the latest version in the browser through': 'Puede abrir la última versión en su navegador, directamente', "(Requiere configuración apropiada del servidor web)",
'Close': 'Cerrar', "Save Connection configuration": "Guardar Configuración",
// labels Filter: "Filrar",
'Download status':'Estado de descarga', // server info modal
'Download Speed':'Velocidad de descarga', "Aria2 server info": "Información de servidor Aria2",
'Upload Speed':'Vel. Subida', "Aria2 Version": "Aria2 versión",
'Estimated time':'Tiempo estimado', "Features Enabled": "Funcionalidad disponible",
'Download Size':'Tamaño de descarga', // about modal
'Downloaded':'Descargado', "To download the latest version of the project, add issues or to contribute back, head on to":
'Progress':'Progreso', "Para obtener la última versión del proyecto, reportar problemas o colaborar, vaya a",
'Download Path':'Carpeta de descarga', "Or you can open the latest version in the browser through":
'Uploaded':'Subido', "Puede abrir la última versión en su navegador, directamente",
'Download GID':'GID de Descarga', Close: "Cerrar",
'Number of Pieces':'N° de Piezas', // labels
'Piece Length':'Tamaño de pieza', "Download status": "Estado de descarga",
//alerts "Download Speed": "Velocidad de descarga",
'The last connection attempt was unsuccessful. Trying another configuration': "Upload Speed": "Vel. Subida",
'El último intento de conexión falló. Probando otra configuración', "Estimated time": "Tiempo estimado",
'Oh Snap!': 'Rayos…', "Download Size": "Tamaño de descarga",
'Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings': Downloaded: "Descargado",
'No se pudo establecer una conexión al servidor Aria2. Reintentando en 10 segundos. Pruebe revisando la configuración en Ajustes > Ajustes de Conexión', Progress: "Progreso",
'Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings': "Download Path": "Carpeta de descarga",
'Autenticación fallida con el servior Aria2 RPC. Reintentando en 10 segundos. Puede que sea necesario revisar su info de autenticación en Ajustes > Ajustes de Conexión', Uploaded: "Subido",
'Successfully connected to Aria2 through its remote RPC …': "Download GID": "GID de Descarga",
'Conexión exitosa con el servidor Aria2 mediante la interfaz RPC', "Number of Pieces": "N° de Piezas",
'Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)': "Piece Length": "Tamaño de pieza",
'Conexión exitosa con el servidor Aria2 mediante la interfaz RPC, sin embargo la conexión no es segura. Para mejorar la seguridad, añada un token de autorización al iniciar Aria2 (con la opción --rpc-secret)', //alerts
'Trying to connect to aria2 using the new connection configuration': "The last connection attempt was unsuccessful. Trying another configuration":
'Intentando conectar con el servidor Aria2 usando los nuevos Ajustes de Conexión' "El último intento de conexión falló. Probando otra configuración",
"Oh Snap!": "Rayos…",
"Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings":
"No se pudo establecer una conexión al servidor Aria2. Reintentando en 10 segundos. Pruebe revisando la configuración en Ajustes > Ajustes de Conexión",
"Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings":
"Autenticación fallida con el servior Aria2 RPC. Reintentando en 10 segundos. Puede que sea necesario revisar su info de autenticación en Ajustes > Ajustes de Conexión",
"Successfully connected to Aria2 through its remote RPC …":
"Conexión exitosa con el servidor Aria2 mediante la interfaz RPC",
"Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)":
"Conexión exitosa con el servidor Aria2 mediante la interfaz RPC, sin embargo la conexión no es segura. Para mejorar la seguridad, añada un token de autorización al iniciar Aria2 (con la opción --rpc-secret)",
"Trying to connect to aria2 using the new connection configuration":
"Intentando conectar con el servidor Aria2 usando los nuevos Ajustes de Conexión"
}; };

View File

@ -1,154 +1,163 @@
if(typeof translations == 'undefined'){ if (typeof translations == "undefined") {
translations = {}; translations = {};
} }
translations.fa_IR = { translations.fa_IR = {
// header // header
'Search': 'جستجو', Search: "جستجو",
// Nav menu // Nav menu
'Add': 'اضافه کردن', Add: "اضافه کردن",
'By URIs': 'بر اساس مسیر سایت', "By URIs": "بر اساس مسیر سایت",
'By Torrents': 'بر اساس تورنت', "By Torrents": "بر اساس تورنت",
'By Metalinks': 'بر اساس متا لینک', "By Metalinks": "بر اساس متا لینک",
'Manage': 'مدیریت', Manage: "مدیریت",
'Pause All': 'توقف همه', "Pause All": "توقف همه",
'Resume Paused': 'ادامه متوقف شده ها', "Resume Paused": "ادامه متوقف شده ها",
'Purge Completed': 'حذف تکمیل شده ها', "Purge Completed": "حذف تکمیل شده ها",
'Shutdown Server': 'خاموش کردن سرور', "Shutdown Server": "خاموش کردن سرور",
'Settings': 'تنظیمات', Settings: "تنظیمات",
'Connection Settings': 'تنظیمات ارتباط', "Connection Settings": "تنظیمات ارتباط",
'Global Settings': 'تنظیمات سراسری', "Global Settings": "تنظیمات سراسری",
'Server info': 'اطلاعات سرور', "Server info": "اطلاعات سرور",
'About and contribute': 'درباره و مشارکت', "About and contribute": "درباره و مشارکت",
'Toggle navigation': 'تغییر ناوبری', "Toggle navigation": "تغییر ناوبری",
// body // body
// nav side bar // nav side bar
'Miscellaneous': 'متفرقه', Miscellaneous: "متفرقه",
'Global Statistics': 'آمار سراسری', "Global Statistics": "آمار سراسری",
'About': 'درباره', About: "درباره",
'Displaying': 'نمایش', Displaying: "نمایش",
'of': 'از', of: "از",
'downloads': 'دانلودها', downloads: "دانلودها",
'Language': 'زبان', Language: "زبان",
// download filters // download filters
'Download Filters': 'دانلود فیلترها', "Download Filters": "دانلود فیلترها",
'Running': 'در حال اجرا', Running: "در حال اجرا",
'Active': 'فعال', Active: "فعال",
'Waiting': 'در انتظار', Waiting: "در انتظار",
'Complete': 'تمام شده', Complete: "تمام شده",
'Error': 'خطا', Error: "خطا",
'Paused': 'متوقف شده', Paused: "متوقف شده",
'Removed': 'حذف شده', Removed: "حذف شده",
'Hide linked meta-data': 'مخفی کردن متا داده مرتبط', "Hide linked meta-data": "مخفی کردن متا داده مرتبط",
'Toggle': 'تغییر وضعیت', Toggle: "تغییر وضعیت",
'Reset filters': 'حذف فیلترها', "Reset filters": "حذف فیلترها",
// download status // download status
'Verifing': 'تأیید کردن', Verifing: "تأیید کردن",
'Verify Pending': 'تأیید کردن در انتظارها', "Verify Pending": "تأیید کردن در انتظارها",
// starred properties // starred properties
'Quick Access Settings': 'تنظیمات دسترسی سریع', "Quick Access Settings": "تنظیمات دسترسی سریع",
'Save': 'ذخیره', Save: "ذخیره",
'Save settings': 'ذخیره تنظیمات', "Save settings": "ذخیره تنظیمات",
'Currently no download in line to display, use the': 'در حال حاضر هیچ دانلودی برای نمایش وجود ندارد، استفاده از', "Currently no download in line to display, use the":
'download button to start downloading files!': 'دکمه دانلود برای شروع دانلود فایل ها!', "در حال حاضر هیچ دانلودی برای نمایش وجود ندارد، استفاده از",
'Peers': 'همتایان', "download button to start downloading files!": "دکمه دانلود برای شروع دانلود فایل ها!",
'More Info': 'اطلاعات بیشتر', Peers: "همتایان",
'Remove': 'حذف', "More Info": "اطلاعات بیشتر",
'# of': 'از #', Remove: "حذف",
'Length': 'طول', "# of": "از #",
// modals Length: "طول",
'Add Downloads By URIs': 'اضافه کردن دانلود توسط لینک ها', // modals
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.': "Add Downloads By URIs": "اضافه کردن دانلود توسط لینک ها",
'- شما می توانید چند بار دانلود (فایل ها) را همزمان با قرار دادن URI ها برای هر فایل در یک خط جداگانه اضافه کنید.', "- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.': "- شما می توانید چند بار دانلود (فایل ها) را همزمان با قرار دادن URI ها برای هر فایل در یک خط جداگانه اضافه کنید.",
'- شما همچنین می توانید URI های متعدد (آینه ها) را برای فایل *همان* اضافه کنید. برای انجام این کار، URI ها را با یک فضای جداگانه جدا کنید.', "- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '- یک URI می تواند HTTP (S) / FTP / BitTorrent-Magnet باشد.', "- شما همچنین می توانید URI های متعدد (آینه ها) را برای فایل *همان* اضافه کنید. برای انجام این کار، URI ها را با یک فضای جداگانه جدا کنید.",
'Download settings': 'تنظیمات دانلود', "- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.":
'Advanced settings': 'تنظیمات پیشرفته', "- یک URI می تواند HTTP (S) / FTP / BitTorrent-Magnet باشد.",
'Cancel': 'لغو', "Download settings": "تنظیمات دانلود",
'Start': 'شروع', "Advanced settings": "تنظیمات پیشرفته",
'Choose': 'انتخاب', Cancel: "لغو",
'Quick Access (shown on the main page)': 'دسترسی سریع (نشان داده شده در صفحه اصلی)', Start: "شروع",
// add torrent modal Choose: "انتخاب",
'Add Downloads By Torrents': 'اضافه کردن دانلود توسط تورنت', "Quick Access (shown on the main page)": "دسترسی سریع (نشان داده شده در صفحه اصلی)",
'- Select the torrent from the local filesystem to start the download.': '- تورنت را از سیستم فایل محلی انتخاب کنید تا دانلود را شروع کنید.', // add torrent modal
'- You can select multiple torrents to start multiple downloads.': '- شما می توانید چندین تورنت را برای شروع بارگیری چندگانه انتخاب کنید.', "Add Downloads By Torrents": "اضافه کردن دانلود توسط تورنت",
'- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.': '- برای اضافه کردن URL BitTorrent-Magnet، از گزینه بر اساس مسیر سایت استفاده کنید و آن را در آنجا اضافه کنید.', "- Select the torrent from the local filesystem to start the download.":
'Select Torrents': 'تورنت ها را انتخاب کنید', "- تورنت را از سیستم فایل محلی انتخاب کنید تا دانلود را شروع کنید.",
'Select a Torrent': 'تورنتی را انتخاب کنید', "- You can select multiple torrents to start multiple downloads.":
// add metalink modal "- شما می توانید چندین تورنت را برای شروع بارگیری چندگانه انتخاب کنید.",
'Add Downloads By Metalinks': 'متالینک ها را انتخاب کنید', "- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.":
'Select Metalinks': 'Metalinks را انتخاب کنید', "- برای اضافه کردن URL BitTorrent-Magnet، از گزینه بر اساس مسیر سایت استفاده کنید و آن را در آنجا اضافه کنید.",
'- Select the Metalink from the local filesystem to start the download.': '- Metalink را از سیستم فایل محلی انتخاب کنید تا دانلود را شروع کنید.', "Select Torrents": "تورنت ها را انتخاب کنید",
'- You can select multiple Metalinks to start multiple downloads.': '- شما می توانید چندین Metalinks را برای شروع چندین بار انتخاب کنید.', "Select a Torrent": "تورنتی را انتخاب کنید",
'Select a Metalink': 'Metalink را انتخاب کنید', // add metalink modal
// select file modal "Add Downloads By Metalinks": "متالینک ها را انتخاب کنید",
'Choose files to start download for': 'فایل را برای شروع دانلود انتخاب کنید', "Select Metalinks": "Metalinks را انتخاب کنید",
'Select to download': 'برای دانلود انتخاب کنید', "- Select the Metalink from the local filesystem to start the download.":
// settings modal "- Metalink را از سیستم فایل محلی انتخاب کنید تا دانلود را شروع کنید.",
'Aria2 RPC host and port': 'میزبان و پورت Aria2 RPC', "- You can select multiple Metalinks to start multiple downloads.":
'Enter the host': 'میزبان را وارد کنید', "- شما می توانید چندین Metalinks را برای شروع چندین بار انتخاب کنید.",
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)': "Select a Metalink": "Metalink را انتخاب کنید",
'نام IP یا DNS سرور که RPC برای Aria2 در حال اجرا است را وارد کنید (به طور پیش فرض: localhost)', // select file modal
'Enter the port': 'پورت را وارد کنید', "Choose files to start download for": "فایل را برای شروع دانلود انتخاب کنید",
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)': "Select to download": "برای دانلود انتخاب کنید",
'پورت سرور که RPC برای Aria2 اجرا می شود را وارد کنید (به طور پیش فرض: 6800)', // settings modal
'Enter the RPC path': 'مسیر RPC را وارد کنید', "Aria2 RPC host and port": "میزبان و پورت Aria2 RPC",
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'مسیر نقطه پایانی Aria2 RPC را وارد کنید (default: / jsonrpc)', "Enter the host": "میزبان را وارد کنید",
'SSL/TLS encryption': 'SSL / TLS رمزگذاری', "Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
'Enable SSL/TLS encryption': 'SSL / TLS رمزگذاری را فعال کنید', "نام IP یا DNS سرور که RPC برای Aria2 در حال اجرا است را وارد کنید (به طور پیش فرض: localhost)",
'Enter the secret token (optional)': 'رمز نشانه (اختیاری) را وارد کنید', "Enter the port": "پورت را وارد کنید",
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)': "Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
'کد مخفی Aria2 RPC را وارد کنید (اگر احراز هویت فعال نمی شود خالی بگذارید)', "پورت سرور که RPC برای Aria2 اجرا می شود را وارد کنید (به طور پیش فرض: 6800)",
'Enter the username (optional)': 'نام کاربری (اختیاری) را وارد کنید', "Enter the RPC path": "مسیر RPC را وارد کنید",
'Enter the Aria2 RPC username (empty if authentication not enabled)': "Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
'نام کاربری Aria2 RPC را وارد کنید (خالی اگر احراز هویت غیر فعال شود)', "مسیر نقطه پایانی Aria2 RPC را وارد کنید (default: / jsonrpc)",
'Enter the password (optional)': 'رمز عبور را وارد کنید (اختیاری)', "SSL/TLS encryption": "SSL / TLS رمزگذاری",
'Enter the Aria2 RPC password (empty if authentication not enabled)': 'گذرواژه Aria2 RPC را وارد کنید (اگر احراز هویت فعال نمی شود خالی بگذارید)', "Enable SSL/TLS encryption": "SSL / TLS رمزگذاری را فعال کنید",
'Enter base URL (optional)': 'URL پایه را وارد کنید (اختیاری)', "Enter the secret token (optional)": "رمز نشانه (اختیاری) را وارد کنید",
'Direct Download': 'دانلود مستقیم', "Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
'If supplied, links will be created to enable direct download from the Aria2 server.': "کد مخفی Aria2 RPC را وارد کنید (اگر احراز هویت فعال نمی شود خالی بگذارید)",
'در صورت عرضه، لینک برای ایجاد مستقیم دانلود از سرور Aria2 ایجاد خواهد شد.', "Enter the username (optional)": "نام کاربری (اختیاری) را وارد کنید",
'(Requires appropriate webserver to be configured.)': '(نیاز به وب سرور مناسب برای پیکربندی.)', "Enter the Aria2 RPC username (empty if authentication not enabled)":
'Save Connection configuration': 'ذخیره پیکربندی اتصال', "نام کاربری Aria2 RPC را وارد کنید (خالی اگر احراز هویت غیر فعال شود)",
'Filter': 'فیلتر', "Enter the password (optional)": "رمز عبور را وارد کنید (اختیاری)",
// server info modal "Enter the Aria2 RPC password (empty if authentication not enabled)":
'Aria2 server info': 'مشخصات سرور Aria2', "گذرواژه Aria2 RPC را وارد کنید (اگر احراز هویت فعال نمی شود خالی بگذارید)",
'Aria2 Version': 'نسخه Aria2', "Enter base URL (optional)": "URL پایه را وارد کنید (اختیاری)",
'Features Enabled': 'ویژگی های فعال', "Direct Download": "دانلود مستقیم",
// about modal "If supplied, links will be created to enable direct download from the Aria2 server.":
'To download the latest version of the project, add issues or to contribute back, head on to': "در صورت عرضه، لینک برای ایجاد مستقیم دانلود از سرور Aria2 ایجاد خواهد شد.",
'برای دانلود آخرين نسخه پروژه، مسائل را اضافه کنيد يا به پشتيبانی بپردازيد بروید به', "(Requires appropriate webserver to be configured.)": "(نیاز به وب سرور مناسب برای پیکربندی.)",
'Or you can open the latest version in the browser through': 'یا شما می توانید آخرین نسخه را از طریق مرورگر باز کنید', "Save Connection configuration": "ذخیره پیکربندی اتصال",
'Close': 'بستن', Filter: "فیلتر",
// labels // server info modal
'Download status':'وضعیت دانلود', "Aria2 server info": "مشخصات سرور Aria2",
'Download Speed':'سرعت دانلود', "Aria2 Version": "نسخه Aria2",
'Upload Speed':'سرعت آپلود', "Features Enabled": "ویژگی های فعال",
'Estimated time':'زمان تخمین زده شده', // about modal
'Download Size':'اندازه دانلود', "To download the latest version of the project, add issues or to contribute back, head on to":
'Downloaded':'دانلود شده', "برای دانلود آخرين نسخه پروژه، مسائل را اضافه کنيد يا به پشتيبانی بپردازيد بروید به",
'Progress':'پیشرفت', "Or you can open the latest version in the browser through":
'Download Path':'مسیر دانلود', "یا شما می توانید آخرین نسخه را از طریق مرورگر باز کنید",
'Uploaded':'آپلود شده', Close: "بستن",
'Download GID':'دانلود GID', // labels
'Number of Pieces':'تعداد قطعات', "Download status": "وضعیت دانلود",
'Piece Length':'طول قطعه', "Download Speed": "سرعت دانلود",
"Upload Speed": "سرعت آپلود",
"Estimated time": "زمان تخمین زده شده",
"Download Size": "اندازه دانلود",
Downloaded: "دانلود شده",
Progress: "پیشرفت",
"Download Path": "مسیر دانلود",
Uploaded: "آپلود شده",
"Download GID": "دانلود GID",
"Number of Pieces": "تعداد قطعات",
"Piece Length": "طول قطعه",
//alerts //alerts
'The last connection attempt was unsuccessful. Trying another configuration': "The last connection attempt was unsuccessful. Trying another configuration":
'آخرین تلاش اتصال ناموفق بود. تلاش برای تنظیم دیگر', "آخرین تلاش اتصال ناموفق بود. تلاش برای تنظیم دیگر",
'Oh Snap!': 'اوه نه!', "Oh Snap!": "اوه نه!",
'Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings': "Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings":
'نمی توان به سرور aria2 RPC متصل شد. در 10 ثانیه دوباره تلاش خواهیم کرد ممکن است بخواهید تنظیمات اتصال را با رفتن به تنظیمات > تنظیمات اتصال بررسی کنید', "نمی توان به سرور aria2 RPC متصل شد. در 10 ثانیه دوباره تلاش خواهیم کرد ممکن است بخواهید تنظیمات اتصال را با رفتن به تنظیمات > تنظیمات اتصال بررسی کنید",
'Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings': "Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings":
'در هنگام اتصال به سرور Aria2 RPC تأییدیه شکست خورد. در 10 ثانیه دوباره تلاش خواهیم کرد ممکن است بخواهید جزئیات احراز هویت خود را با رفتن به تنظیمات > تنظیمات اتصال تایید کنید', "در هنگام اتصال به سرور Aria2 RPC تأییدیه شکست خورد. در 10 ثانیه دوباره تلاش خواهیم کرد ممکن است بخواهید جزئیات احراز هویت خود را با رفتن به تنظیمات > تنظیمات اتصال تایید کنید",
'Successfully connected to Aria2 through its remote RPC …': "Successfully connected to Aria2 through its remote RPC …":
'با موفقیت از طریق RPC از راه دور به Aria2 متصل شد ...', "با موفقیت از طریق RPC از راه دور به Aria2 متصل شد ...",
'Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)': "Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)":
'با موفقیت به Aria2 از طریق RPC راه دور متصل شد، اما اتصال هنوز ناامن است. برای امنیت کامل سعی کنید مجوز نشانه مجوز را در هنگام شروع Aria2 (از طریق پرچم --rpc-secret)', "با موفقیت به Aria2 از طریق RPC راه دور متصل شد، اما اتصال هنوز ناامن است. برای امنیت کامل سعی کنید مجوز نشانه مجوز را در هنگام شروع Aria2 (از طریق پرچم --rpc-secret)",
'Trying to connect to aria2 using the new connection configuration': "Trying to connect to aria2 using the new connection configuration":
'تلاش برای اتصال به aria2 با استفاده از پیکربندی اتصال جدید', "تلاش برای اتصال به aria2 با استفاده از پیکربندی اتصال جدید",
'Remove {{name}} and associated meta-data?': "Remove {{name}} and associated meta-data?": "حذف {{name}} و متا داده های مرتبط"
'حذف {{name}} و متا داده های مرتبط'
}; };

View File

@ -1,146 +1,164 @@
if(typeof translations == 'undefined'){ if (typeof translations == "undefined") {
translations = {}; translations = {};
} }
translations.fr_FR = { translations.fr_FR = {
// header // header
'Search': 'Rechercher', Search: "Rechercher",
// Nav menu // Nav menu
'Add': 'Ajouter', Add: "Ajouter",
'By URIs': 'Par URIs', "By URIs": "Par URIs",
'By Torrents': 'Par Torrents', "By Torrents": "Par Torrents",
'By Metalinks': 'Par Metaliens', "By Metalinks": "Par Metaliens",
'Manage': 'Gérer', Manage: "Gérer",
'Pause All': 'Tout suspendre', "Pause All": "Tout suspendre",
'Resume Paused': 'Reprendre', "Resume Paused": "Reprendre",
'Purge Completed': 'Nettoyer les fichiers complétés', "Purge Completed": "Nettoyer les fichiers complétés",
'Settings': 'Paramètres', Settings: "Paramètres",
'Connection Settings': 'Paramètres de connexion', "Connection Settings": "Paramètres de connexion",
'Global Settings': 'Paramètres globaux', "Global Settings": "Paramètres globaux",
'Server info': 'Informations serveur', "Server info": "Informations serveur",
'About and contribute': 'À propos et contribuer', "About and contribute": "À propos et contribuer",
'Toggle navigation': 'Basculer la navigation', "Toggle navigation": "Basculer la navigation",
// body // body
// nav side bar // nav side bar
'Miscellaneous': 'Autres', Miscellaneous: "Autres",
'Global Statistics': 'Statistiques globales', "Global Statistics": "Statistiques globales",
'About': 'À propos', About: "À propos",
'Displaying': 'Affichage de', Displaying: "Affichage de",
'of': 'parmi', of: "parmi",
'downloads': 'téléchargements', downloads: "téléchargements",
'Language': 'Langue', Language: "Langue",
// download filters // download filters
'Download Filters': 'Filtres de téléchargement', "Download Filters": "Filtres de téléchargement",
'Running': 'En cours', Running: "En cours",
'Active': 'Actifs', Active: "Actifs",
'Waiting': 'En attente', Waiting: "En attente",
'Complete': 'Complétés', Complete: "Complétés",
'Error': 'Erreurs', Error: "Erreurs",
'Paused': 'En pause', Paused: "En pause",
'Removed': 'Supprimés', Removed: "Supprimés",
'Hide linked meta-data': 'Cacher les métadonnées liées', "Hide linked meta-data": "Cacher les métadonnées liées",
'Toggle': 'Basculer', Toggle: "Basculer",
'Reset filters': 'Réinitialiser les filtres', "Reset filters": "Réinitialiser les filtres",
// download status // download status
'Verifing': 'Vérification', Verifing: "Vérification",
'Verify Pending': 'Vérification en attente', "Verify Pending": "Vérification en attente",
// starred properties // starred properties
'Quick Access Settings': 'Paramètres d\'accès rapide', "Quick Access Settings": "Paramètres d'accès rapide",
'Save': 'Sauvegarder', Save: "Sauvegarder",
'Save settings': 'Sauvegarder les paramètres', "Save settings": "Sauvegarder les paramètres",
'Currently no download in line to display, use the': 'Aucun téléchargement dans la file d\'attente, utilisez le bouton de téléchargement', "Currently no download in line to display, use the":
'download button to start downloading files!': 'pour commencer à télécharger des fichiers !', "Aucun téléchargement dans la file d'attente, utilisez le bouton de téléchargement",
'Peers': 'Pairs', "download button to start downloading files!": "pour commencer à télécharger des fichiers !",
'More Info': 'Plus d\'infos', Peers: "Pairs",
'Remove': 'Supprimer', "More Info": "Plus d'infos",
'# of': '# parmi', Remove: "Supprimer",
'Length': 'Longueur', "# of": "# parmi",
// modals Length: "Longueur",
'Add Downloads By URIs': 'Ajouter des téléchargements depuis des URIs', // modals
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.': "Add Downloads By URIs": "Ajouter des téléchargements depuis des URIs",
'Vous pouvez ajouter plusieurs téléchargements (fichiers) en même temps, en mettant une URI pour chaque fichier sur une nouvelle ligne', "- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.': "Vous pouvez ajouter plusieurs téléchargements (fichiers) en même temps, en mettant une URI pour chaque fichier sur une nouvelle ligne",
'Vous pouvez aussi ajouter plusieurs URIs (mirroirs) pour le *même* fichier. Pour ce faire, séparez les URIs par un espace.', "- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': 'Une URI peut être HTTP(S)/FTP/BitTorrent-Magnet.', "Vous pouvez aussi ajouter plusieurs URIs (mirroirs) pour le *même* fichier. Pour ce faire, séparez les URIs par un espace.",
'Download settings': 'Paramètres de téléchargement', "- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.":
'Advanced settings': 'Paramètres avancés', "Une URI peut être HTTP(S)/FTP/BitTorrent-Magnet.",
'Cancel': 'Annuler', "Download settings": "Paramètres de téléchargement",
'Start': 'Démarrer', "Advanced settings": "Paramètres avancés",
'Choose': 'Choisir', Cancel: "Annuler",
'Quick Access (shown on the main page)': 'Accès rapide (affiché sur la page principale', Start: "Démarrer",
// add torrent modal Choose: "Choisir",
'Add Downloads By Torrents': 'Ajouter des téléchargements à partir de fichiers Torrent', "Quick Access (shown on the main page)": "Accès rapide (affiché sur la page principale",
'- Select the torrent from the local filesystem to start the download.': '- Sélectionnez le torrent depuis votre système de fichier local pour commencer le téléchargement.', // add torrent modal
'- You can select multiple torrents to start multiple downloads.': 'Vous pouvez sélectionner plusieurs torrents pour commencer plusieurs téléchargements.', "Add Downloads By Torrents": "Ajouter des téléchargements à partir de fichiers Torrent",
'- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.': 'Pour ajouter une URL BitTorrent-Magnet, utilisez l\'option Ajouter par URIs et ajoutez-la à ce niveau.', "- Select the torrent from the local filesystem to start the download.":
'Select Torrents': 'Sélectionner des Torrents', "- Sélectionnez le torrent depuis votre système de fichier local pour commencer le téléchargement.",
'Select a Torrent': 'Sélectionner un Torrent', "- You can select multiple torrents to start multiple downloads.":
// add metalink modal "Vous pouvez sélectionner plusieurs torrents pour commencer plusieurs téléchargements.",
'Add Downloads By Metalinks': 'Ajouter des téléchargements par Metaliens', "- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.":
'Select Metalinks': 'Sélectionner des Métaliens', "Pour ajouter une URL BitTorrent-Magnet, utilisez l'option Ajouter par URIs et ajoutez-la à ce niveau.",
'- Select the Metalink from the local filesystem to start the download.': 'Sélectionner le Métalien depuis votre système de fichier local pour commencer le téléchargement.', "Select Torrents": "Sélectionner des Torrents",
'- You can select multiple Metalinks to start multiple downloads.': 'Vous pouvez sélectionner plusieurs Métaliens pour commencer plusieurs téléchargements.', "Select a Torrent": "Sélectionner un Torrent",
'Select a Metalink': 'Sélectionner un Métalien', // add metalink modal
// select file modal "Add Downloads By Metalinks": "Ajouter des téléchargements par Metaliens",
'Choose files to start download for': 'Sélectionner les fichiers pour lesquels commencer le téléchargement.', "Select Metalinks": "Sélectionner des Métaliens",
'Select to download': 'Sélectionner pour télécharger', "- Select the Metalink from the local filesystem to start the download.":
// settings modal "Sélectionner le Métalien depuis votre système de fichier local pour commencer le téléchargement.",
'Aria2 RPC host and port': 'Hôte et ports Aria2 RPC', "- You can select multiple Metalinks to start multiple downloads.":
'Enter the host': 'Entrer l\'hôte', "Vous pouvez sélectionner plusieurs Métaliens pour commencer plusieurs téléchargements.",
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)': "Select a Metalink": "Sélectionner un Métalien",
'Entrer l\'IP ou le nom DNS du serveur sur lequel est lancé le RPC pour Aria2 (défaut : localhost)', // select file modal
'Enter the port': 'Entrer le port', "Choose files to start download for":
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)': "Sélectionner les fichiers pour lesquels commencer le téléchargement.",
'Entrer le port du serveur sur lequel tourne le RPC pour Aria2 (défaut : 6800)', "Select to download": "Sélectionner pour télécharger",
'Enter the RPC path': 'Entrer le chemin vers le RPC', // settings modal
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'Entrer le chemin final pour le RPC Aria2 (défaut : /jsonrpc)', "Aria2 RPC host and port": "Hôte et ports Aria2 RPC",
'SSL/TLS encryption': 'Chiffrage SSL/TLS', "Enter the host": "Entrer l'hôte",
'Enable SSL/TLS encryption': 'Activer le chiffrage SSL/TLS', "Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
'Enter the secret token (optional)': 'Entrer le token secret (optionnel)', "Entrer l'IP ou le nom DNS du serveur sur lequel est lancé le RPC pour Aria2 (défaut : localhost)",
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)': "Enter the port": "Entrer le port",
'Entrer le token secret pour le RPC Aria2 (laisser vide si l\'authentification n\'est pas activée)', "Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
'Enter the username (optional)': 'Entrer le nom d\'utilisateur (optionnel)', "Entrer le port du serveur sur lequel tourne le RPC pour Aria2 (défaut : 6800)",
'Enter the Aria2 RPC username (empty if authentication not enabled)': "Enter the RPC path": "Entrer le chemin vers le RPC",
'Entrer le nom d\'utilisateur RPC Aria2 (laisser vide si l\'authentification n\'est pas activée)', "Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
'Enter the password (optional)': 'Entrer le mot de passe (optionnel)', "Entrer le chemin final pour le RPC Aria2 (défaut : /jsonrpc)",
'Enter the Aria2 RPC password (empty if authentication not enabled)': 'Entrer le mot de passe RPC Aria2 (laisser vide si l\'authentification n\'est pas activée)', "SSL/TLS encryption": "Chiffrage SSL/TLS",
'Enter base URL (optional)': 'Entrez l\'URL de base', "Enable SSL/TLS encryption": "Activer le chiffrage SSL/TLS",
'Direct Download': 'Téléchargement direct', "Enter the secret token (optional)": "Entrer le token secret (optionnel)",
'If supplied, links will be created to enable direct download from the Aria2 server.': "Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
'S\'ils sont fournis, les liens seront créés pour activer le téléchargement direct depuis le serveur Aria2', "Entrer le token secret pour le RPC Aria2 (laisser vide si l'authentification n'est pas activée)",
'(Requires appropriate webserver to be configured.)': '(Nécessite un serveur web approprié pour être configuré)', "Enter the username (optional)": "Entrer le nom d'utilisateur (optionnel)",
'Save Connection configuration': 'Sauvegarder la configuration de connexion', "Enter the Aria2 RPC username (empty if authentication not enabled)":
'Filter': 'Filtre', "Entrer le nom d'utilisateur RPC Aria2 (laisser vide si l'authentification n'est pas activée)",
// server info modal "Enter the password (optional)": "Entrer le mot de passe (optionnel)",
'Aria2 server info': 'Infos serveur Aria2', "Enter the Aria2 RPC password (empty if authentication not enabled)":
'Aria2 Version': 'Version Aria2', "Entrer le mot de passe RPC Aria2 (laisser vide si l'authentification n'est pas activée)",
'Features Enabled': 'Fonctionnalités activées', "Enter base URL (optional)": "Entrez l'URL de base",
// about modal "Direct Download": "Téléchargement direct",
'To download the latest version of the project, add issues or to contribute back, head on to': "If supplied, links will be created to enable direct download from the Aria2 server.":
'Pour télécharger la dernière version du projet, signaler des problèmes ou pour contribuer, aller à l\'adresse', "S'ils sont fournis, les liens seront créés pour activer le téléchargement direct depuis le serveur Aria2",
'Or you can open the latest version in the browser through': 'Ou vous pouvez ouvrir la dernière version dans le navigateur depuis', "(Requires appropriate webserver to be configured.)":
'Close': 'Fermer', "(Nécessite un serveur web approprié pour être configuré)",
// lables "Save Connection configuration": "Sauvegarder la configuration de connexion",
'Download status':'Statut de téléchargement', Filter: "Filtre",
'Download Speed':'Vitesse de téléchargement', // server info modal
'Upload Speed':'Vitesse d\'envoi', "Aria2 server info": "Infos serveur Aria2",
'Estimated time':'Temps estimé', "Aria2 Version": "Version Aria2",
'Download Size':'Taille du téléchargement', "Features Enabled": "Fonctionnalités activées",
'Downloaded':'Téléchargé', // about modal
'Progress':'Avancement', "To download the latest version of the project, add issues or to contribute back, head on to":
'Download Path':'Chemin de téléchargement', "Pour télécharger la dernière version du projet, signaler des problèmes ou pour contribuer, aller à l'adresse",
'Uploaded':'Envoyé', "Or you can open the latest version in the browser through":
'Download GID':'GID du téléchargement', "Ou vous pouvez ouvrir la dernière version dans le navigateur depuis",
'Number of Pieces':'Nombre de pièces', Close: "Fermer",
'Piece Length':'Taille de la pièce', // lables
'Shutdown Server': 'Arrêter le serveur', "Download status": "Statut de téléchargement",
"Download Speed": "Vitesse de téléchargement",
"Upload Speed": "Vitesse d'envoi",
"Estimated time": "Temps estimé",
"Download Size": "Taille du téléchargement",
Downloaded: "Téléchargé",
Progress: "Avancement",
"Download Path": "Chemin de téléchargement",
Uploaded: "Envoyé",
"Download GID": "GID du téléchargement",
"Number of Pieces": "Nombre de pièces",
"Piece Length": "Taille de la pièce",
"Shutdown Server": "Arrêter le serveur",
'The last connection attempt was unsuccessful. Trying another configuration': 'La dernière tentative de connexion a échoué. Essai d\'une autre configuration', "The last connection attempt was unsuccessful. Trying another configuration":
'Oh Snap!': 'Oh non !', "La dernière tentative de connexion a échoué. Essai d'une autre configuration",
'Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings': 'Impossible de se connecter au serveur RPC d\'aria2. Nouvel essai dans 10 secondes. Vous voudrez peut-être vérifier les paramètres de connexion en allant dans Paramètres > Paramètres de connexion', "Oh Snap!": "Oh non !",
'Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings': 'Erreur d\'authentification lors de la connexion au serveur RPC d\'aria2. Nouvel essai dans 10 secondes. Vous voudrez peut-être confirmer les renseignements d\'authentification en allant dans Paramètres > Paramètres de connexion', "Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings":
'Successfully connected to Aria2 through its remote RPC …': 'Connexion réussie à aria2 via son interface RPC …', "Impossible de se connecter au serveur RPC d'aria2. Nouvel essai dans 10 secondes. Vous voudrez peut-être vérifier les paramètres de connexion en allant dans Paramètres > Paramètres de connexion",
'Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)': 'Connexion réussie à aria2 via l\'interface RPC, cependant la connexion n\'est toujours pas sécurisée. Pour une sécurité complète, essayez d\'ajouter un token secret d\'autorisation en lançant aria2 (à l\'aide de l\'option --rpc-secret)', "Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings":
'Trying to connect to aria2 using the new connection configuration': 'Tentative de connexion à aria2 avec la nouvelle configuration', "Erreur d'authentification lors de la connexion au serveur RPC d'aria2. Nouvel essai dans 10 secondes. Vous voudrez peut-être confirmer les renseignements d'authentification en allant dans Paramètres > Paramètres de connexion",
'Remove {{name}} and associated meta-data?': 'Supprimer {{name}} et les métadonnées associées' "Successfully connected to Aria2 through its remote RPC …":
"Connexion réussie à aria2 via son interface RPC …",
"Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)":
"Connexion réussie à aria2 via l'interface RPC, cependant la connexion n'est toujours pas sécurisée. Pour une sécurité complète, essayez d'ajouter un token secret d'autorisation en lançant aria2 (à l'aide de l'option --rpc-secret)",
"Trying to connect to aria2 using the new connection configuration":
"Tentative de connexion à aria2 avec la nouvelle configuration",
"Remove {{name}} and associated meta-data?": "Supprimer {{name}} et les métadonnées associées"
}; };

View File

@ -1,154 +1,166 @@
if(typeof translations == 'undefined'){ if (typeof translations == "undefined") {
translations = {}; translations = {};
} }
translations.id_ID = { // replace en_US to ll_CC, examples: zh_CN, de_AT. translations.id_ID = {
// header // replace en_US to ll_CC, examples: zh_CN, de_AT.
'Search': 'Telusuri', // header
Search: "Telusuri",
// Nav menu // Nav menu
'Add': 'Tambah', Add: "Tambah",
'By URIs': 'Dari URI', "By URIs": "Dari URI",
'By Torrents': 'Dari Torrent', "By Torrents": "Dari Torrent",
'By Metalinks': 'Dari Metalink', "By Metalinks": "Dari Metalink",
'Manage': 'Kelola', Manage: "Kelola",
'Pause All': 'Jeda Semua', "Pause All": "Jeda Semua",
'Resume Paused': 'Lanjut yang Dijeda', "Resume Paused": "Lanjut yang Dijeda",
'Purge Completed': 'Hapus yang Terunduh', "Purge Completed": "Hapus yang Terunduh",
'Shutdown Server': 'Matikan Peladen', "Shutdown Server": "Matikan Peladen",
'Settings': 'Pengaturan', Settings: "Pengaturan",
'Connection Settings': 'Pengaturan Koneksi', "Connection Settings": "Pengaturan Koneksi",
'Global Settings': 'Pengaturan Global', "Global Settings": "Pengaturan Global",
'Server info': 'Info peladen', "Server info": "Info peladen",
'About and contribute': 'Tentang dan kontribusi', "About and contribute": "Tentang dan kontribusi",
'Toggle navigation': 'Alihkan navigasi', "Toggle navigation": "Alihkan navigasi",
// body // body
// nav side bar // nav side bar
'Miscellaneous': 'Lain-lain', Miscellaneous: "Lain-lain",
'Global Statistics': 'Statistik Global', "Global Statistics": "Statistik Global",
'About': 'Tentang', About: "Tentang",
'Displaying': 'Tampilan', Displaying: "Tampilan",
'of': 'dari', of: "dari",
'downloads': 'unduhan', downloads: "unduhan",
'Language': 'Bahasa', Language: "Bahasa",
// download filters // download filters
'Download Filters': 'Saring Unduhan', "Download Filters": "Saring Unduhan",
'Running': 'Berjalan', Running: "Berjalan",
'Active': 'Aktif', Active: "Aktif",
'Waiting': 'Menunggu', Waiting: "Menunggu",
'Complete': 'Selesai', Complete: "Selesai",
'Error': 'Galat', Error: "Galat",
'Paused': 'Dijeda', Paused: "Dijeda",
'Removed': 'Dihapus', Removed: "Dihapus",
'Hide linked meta-data': 'Sembunyikan tautan meta-data', "Hide linked meta-data": "Sembunyikan tautan meta-data",
'Toggle': 'Tombol alihan', Toggle: "Tombol alihan",
'Reset filters': 'Reset penyaring', "Reset filters": "Reset penyaring",
// download status // download status
'Verifing': 'Memverifikasi', Verifing: "Memverifikasi",
'Verify Pending': 'Verifikasi Ditunda', "Verify Pending": "Verifikasi Ditunda",
// starred properties // starred properties
'Quick Access Settings': 'Pengaturan Akses Cepat', "Quick Access Settings": "Pengaturan Akses Cepat",
'Save': 'Simpan', Save: "Simpan",
'Save settings': 'Simpan pengaturan', "Save settings": "Simpan pengaturan",
'Currently no download in line to display, use the': 'Sekarang tak ada unduhan yang ditampilkan, gunakan', "Currently no download in line to display, use the":
'download button to start downloading files!': 'tombol unduh untuk mulai mengunduh berkas!', "Sekarang tak ada unduhan yang ditampilkan, gunakan",
'Peers': 'Peer', "download button to start downloading files!": "tombol unduh untuk mulai mengunduh berkas!",
'More Info': 'Info Lengkap', Peers: "Peer",
'Remove': 'Hapus', "More Info": "Info Lengkap",
'# of': '# dari', Remove: "Hapus",
'Length': 'Ukuran', "# of": "# dari",
// modals Length: "Ukuran",
'Add Downloads By URIs': 'Unduh dari URI', // modals
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.': "Add Downloads By URIs": "Unduh dari URI",
'- Anda dapat menambah banyak unduhan (berkas) sekali waktu dg menaruh URI setiap berkas dlm baris terpisah.', "- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.': "- Anda dapat menambah banyak unduhan (berkas) sekali waktu dg menaruh URI setiap berkas dlm baris terpisah.",
'- Anda juga dapat menambah banyak URI (cermin) untuk berkas yang *sama*. Pisahkan URI dengan spasi.', "- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '- URI dapat berbentuk HTTP(S)/FTP/BitTorrent-Magnet.', "- Anda juga dapat menambah banyak URI (cermin) untuk berkas yang *sama*. Pisahkan URI dengan spasi.",
'Download settings': 'Pengaturan unduhan', "- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.":
'Advanced settings': 'Pengaturan mahir', "- URI dapat berbentuk HTTP(S)/FTP/BitTorrent-Magnet.",
'Cancel': 'Batal', "Download settings": "Pengaturan unduhan",
'Start': 'Mulai', "Advanced settings": "Pengaturan mahir",
'Choose': 'Pilih', Cancel: "Batal",
'Quick Access (shown on the main page)': 'Akses Cepat (terlihat di laman utama)', Start: "Mulai",
// add torrent modal Choose: "Pilih",
'Add Downloads By Torrents': 'Unduh dari Torrent', "Quick Access (shown on the main page)": "Akses Cepat (terlihat di laman utama)",
'- Select the torrent from the local filesystem to start the download.': '- Pilih torrent dari sistem berkas lokal untuk mulai mengunduh.', // add torrent modal
'- You can select multiple torrents to start multiple downloads.': 'Anda dapat memilih banyak torrent untuk memulai multi unduh.', "Add Downloads By Torrents": "Unduh dari Torrent",
'- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.': 'Untuk menambah BitTorrent-Magnet URL, pakai opsi Tambah dari URI dan tambahkan di situ.', "- Select the torrent from the local filesystem to start the download.":
'Select Torrents': 'Pilih Torrent', "- Pilih torrent dari sistem berkas lokal untuk mulai mengunduh.",
'Select a Torrent': 'Pilih Torrent', "- You can select multiple torrents to start multiple downloads.":
// add metalink modal "Anda dapat memilih banyak torrent untuk memulai multi unduh.",
'Add Downloads By Metalinks': 'Unduh dari Metalink', "- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.":
'Select Metalinks': 'Pilih Metalink', "Untuk menambah BitTorrent-Magnet URL, pakai opsi Tambah dari URI dan tambahkan di situ.",
'- Select the Metalink from the local filesystem to start the download.': '- Pilih Metalink dari sistem berkas lokal untuk mulai mengunduh.', "Select Torrents": "Pilih Torrent",
'- You can select multiple Metalinks to start multiple downloads.': '- Anda dapat memilih banyak Metalink untuk mulai multi unduh.', "Select a Torrent": "Pilih Torrent",
'Select a Metalink': 'Pilih Metalink', // add metalink modal
// select file modal "Add Downloads By Metalinks": "Unduh dari Metalink",
'Choose files to start download for': 'Pilih berkas untuk mulai mengunduh', "Select Metalinks": "Pilih Metalink",
'Select to download': 'Pilih untuk mengunduh', "- Select the Metalink from the local filesystem to start the download.":
// settings modal "- Pilih Metalink dari sistem berkas lokal untuk mulai mengunduh.",
'Aria2 RPC host and port': 'Port dan host RPC Aria2', "- You can select multiple Metalinks to start multiple downloads.":
'Enter the host': 'Masukkan host', "- Anda dapat memilih banyak Metalink untuk mulai multi unduh.",
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)': "Select a Metalink": "Pilih Metalink",
'Masukkan IP atau nama DNS peladen tempat RPC Aria2 berjalan (asali: localhost)', // select file modal
'Enter the port': 'Masukkan porta', "Choose files to start download for": "Pilih berkas untuk mulai mengunduh",
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)': "Select to download": "Pilih untuk mengunduh",
'Masukkan porta peladen tempat RPC Aria2 berjalan (asali: 6800)', // settings modal
'Enter the RPC path': 'Masukkan path RPC', "Aria2 RPC host and port": "Port dan host RPC Aria2",
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'Masukkan path untuk endpoint RPC Aria2 (asali: /jsonrpc)', "Enter the host": "Masukkan host",
'SSL/TLS encryption': 'Enkripsi SSL/TLS', "Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
'Enable SSL/TLS encryption': 'Aktifkan enkripsi SSL/TLS', "Masukkan IP atau nama DNS peladen tempat RPC Aria2 berjalan (asali: localhost)",
'Enter the secret token (optional)': 'Masukkan token rahasia (opsional)', "Enter the port": "Masukkan porta",
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)': "Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
'Masukkan token rahasia RPC Aria2 (kosongkan jika otentifikasi tidak aktif)', "Masukkan porta peladen tempat RPC Aria2 berjalan (asali: 6800)",
'Enter the username (optional)': 'Masukkan username (opsional)', "Enter the RPC path": "Masukkan path RPC",
'Enter the Aria2 RPC username (empty if authentication not enabled)': "Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
'Masukkan username RPC Aria2 (kosongkan jika otentifikasi tidak aktif)', "Masukkan path untuk endpoint RPC Aria2 (asali: /jsonrpc)",
'Enter the password (optional)': 'Masukkan kata sandi (opsional)', "SSL/TLS encryption": "Enkripsi SSL/TLS",
'Enter the Aria2 RPC password (empty if authentication not enabled)': 'Masukkan kata sandi RPC Aria2 (kosongkan jika otentifikasi tidak aktif)', "Enable SSL/TLS encryption": "Aktifkan enkripsi SSL/TLS",
'Enter base URL (optional)': 'Masukkan URL dasar (opsional)', "Enter the secret token (optional)": "Masukkan token rahasia (opsional)",
'Direct Download': 'Unduh Langsung', "Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
'If supplied, links will be created to enable direct download from the Aria2 server.': "Masukkan token rahasia RPC Aria2 (kosongkan jika otentifikasi tidak aktif)",
'Jika tersedia, tautan akan dibuat untuk mengaktifkan unduhan langsung dari peladen Aria2.', "Enter the username (optional)": "Masukkan username (opsional)",
'(Requires appropriate webserver to be configured.)': '(Mewajibkan webserver yang perlu dikonfigurasi)', "Enter the Aria2 RPC username (empty if authentication not enabled)":
'Save Connection configuration': 'Simpan konfigurasi Koneksi', "Masukkan username RPC Aria2 (kosongkan jika otentifikasi tidak aktif)",
'Filter': 'Saring', "Enter the password (optional)": "Masukkan kata sandi (opsional)",
// server info modal "Enter the Aria2 RPC password (empty if authentication not enabled)":
'Aria2 server info': 'Info peladen Aria2', "Masukkan kata sandi RPC Aria2 (kosongkan jika otentifikasi tidak aktif)",
'Aria2 Version': 'Versi Aria2', "Enter base URL (optional)": "Masukkan URL dasar (opsional)",
'Features Enabled': 'Fitur yang Aktif', "Direct Download": "Unduh Langsung",
// about modal "If supplied, links will be created to enable direct download from the Aria2 server.":
'To download the latest version of the project, add issues or to contribute back, head on to': "Jika tersedia, tautan akan dibuat untuk mengaktifkan unduhan langsung dari peladen Aria2.",
'Untuk mengunduh versi terkini proyek, tambahkan isu atau kontribusi balik ke', "(Requires appropriate webserver to be configured.)":
'Or you can open the latest version in the browser through': 'Atau Anda dapat membuka versi terkini via peramban lewat', "(Mewajibkan webserver yang perlu dikonfigurasi)",
'Close': 'Tutup', "Save Connection configuration": "Simpan konfigurasi Koneksi",
// labels Filter: "Saring",
'Download status':'Status unduh', // server info modal
'Download Speed':'Kecepatan unduh', "Aria2 server info": "Info peladen Aria2",
'Upload Speed':'Kecepatan unggah', "Aria2 Version": "Versi Aria2",
'Estimated time':'Waktu estimasi', "Features Enabled": "Fitur yang Aktif",
'Download Size':'Ukuran unduh', // about modal
'Downloaded':'Terunduh', "To download the latest version of the project, add issues or to contribute back, head on to":
'Progress':'Proses', "Untuk mengunduh versi terkini proyek, tambahkan isu atau kontribusi balik ke",
'Download Path':'Path unduh', "Or you can open the latest version in the browser through":
'Uploaded':'Terunggah', "Atau Anda dapat membuka versi terkini via peramban lewat",
'Download GID':'GID unduh', Close: "Tutup",
'Number of Pieces':'Jumlah Bagian', // labels
'Piece Length':'Ukuran Bagian', "Download status": "Status unduh",
"Download Speed": "Kecepatan unduh",
"Upload Speed": "Kecepatan unggah",
"Estimated time": "Waktu estimasi",
"Download Size": "Ukuran unduh",
Downloaded: "Terunduh",
Progress: "Proses",
"Download Path": "Path unduh",
Uploaded: "Terunggah",
"Download GID": "GID unduh",
"Number of Pieces": "Jumlah Bagian",
"Piece Length": "Ukuran Bagian",
//alerts //alerts
'The last connection attempt was unsuccessful. Trying another configuration': "The last connection attempt was unsuccessful. Trying another configuration":
'Usaha koneksi terakhir gagal. Coba konfigurasi lain', "Usaha koneksi terakhir gagal. Coba konfigurasi lain",
'Oh Snap!': 'Oh Sial!', "Oh Snap!": "Oh Sial!",
'Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings': "Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings":
'Tak dapat terkoneksi ke peladen RPC aria2. Akan diulang dalam 10 detik. Anda mungkin ingin menguji pengaturan koneksi melalui Pengaturan > Pengaturan Koneksi', "Tak dapat terkoneksi ke peladen RPC aria2. Akan diulang dalam 10 detik. Anda mungkin ingin menguji pengaturan koneksi melalui Pengaturan > Pengaturan Koneksi",
'Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings': "Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings":
'Otentifikasi gagal saat membuka koneksi ke peladen RPC Aria2. Akan diulang dalam 10 detik. Anda mungkin ingin mengonfirmasi detail otentifikasi di Pengaturan > Pengaturan Koneksi', "Otentifikasi gagal saat membuka koneksi ke peladen RPC Aria2. Akan diulang dalam 10 detik. Anda mungkin ingin mengonfirmasi detail otentifikasi di Pengaturan > Pengaturan Koneksi",
'Successfully connected to Aria2 through its remote RPC …': "Successfully connected to Aria2 through its remote RPC …":
'Sukses terkoneksi ke Aria2 melalui remot RPC …', "Sukses terkoneksi ke Aria2 melalui remot RPC …",
'Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)': "Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)":
'Sukses terkoneksi ke Aria2 melalui remot RPC, bagaimanapun koneksi masih tidak aman. Untuk melengkapi keamanan coba tambahkan token rahasia otorisasi saat memulai Aria2 (lewat flag --rpc-secret)', "Sukses terkoneksi ke Aria2 melalui remot RPC, bagaimanapun koneksi masih tidak aman. Untuk melengkapi keamanan coba tambahkan token rahasia otorisasi saat memulai Aria2 (lewat flag --rpc-secret)",
'Trying to connect to aria2 using the new connection configuration': "Trying to connect to aria2 using the new connection configuration":
'Mencoba koneksi ke aria2 menggunakan konfigurasi koneksi baru', "Mencoba koneksi ke aria2 menggunakan konfigurasi koneksi baru",
'Remove {{name}} and associated meta-data?': // {{name}} refers to the download name, do not modify. // {{name}} refers to the download name, do not modify.
'Hapus {{name}} dan meta-data yang berhubungan?' "Remove {{name}} and associated meta-data?": "Hapus {{name}} dan meta-data yang berhubungan?"
}; };

View File

@ -1,140 +1,156 @@
if(typeof translations == 'undefined'){ if (typeof translations == "undefined") {
translations = {}; translations = {};
} }
translations.it_IT = { translations.it_IT = {
// header // header
'Search': 'Cerca', Search: "Cerca",
// Nav menu // Nav menu
'Add': 'Aggiungi', Add: "Aggiungi",
'By URIs': 'Da URIs', "By URIs": "Da URIs",
'By Torrents': 'Da Torrent', "By Torrents": "Da Torrent",
'By Metalinks': 'Da Metalink', "By Metalinks": "Da Metalink",
'Manage': 'Gestione', Manage: "Gestione",
'Pause All': 'Ferma tutto', "Pause All": "Ferma tutto",
'Resume Paused': 'Riprendi fermati', "Resume Paused": "Riprendi fermati",
'Purge Completed': 'Togli i completi', "Purge Completed": "Togli i completi",
'Settings': 'Impostazioni', Settings: "Impostazioni",
'Connection Settings': 'Impostazioni di connessione', "Connection Settings": "Impostazioni di connessione",
'Global Settings': 'Impostazioni globali', "Global Settings": "Impostazioni globali",
'Server info': 'Informazioni sul server', "Server info": "Informazioni sul server",
'About and contribute': 'Crediti e informazioni', "About and contribute": "Crediti e informazioni",
'Toggle navigation': 'Cambia navigazione', "Toggle navigation": "Cambia navigazione",
// body // body
// nav side bar // nav side bar
'Miscellaneous': 'Varie', Miscellaneous: "Varie",
'Global Statistics': 'Statistiche globali', "Global Statistics": "Statistiche globali",
'About': 'Info', About: "Info",
'Displaying': 'Mostra', Displaying: "Mostra",
'of': 'di', of: "di",
'downloads': 'downloads', downloads: "downloads",
'Language': 'Lingua', Language: "Lingua",
// download filters // download filters
'Download Filters': 'Filtri download', "Download Filters": "Filtri download",
'Running': 'In corso', Running: "In corso",
'Active': 'Attivi', Active: "Attivi",
'Waiting': 'In attesa', Waiting: "In attesa",
'Complete': 'Completi', Complete: "Completi",
'Error': 'Errore', Error: "Errore",
'Paused': 'In pausa', Paused: "In pausa",
'Removed': 'Rimossi', Removed: "Rimossi",
'Hide linked meta-data': 'Nascondi i meta-data collegati', "Hide linked meta-data": "Nascondi i meta-data collegati",
'Toggle': 'Cambia', Toggle: "Cambia",
'Reset filters': 'Reimposta filtri', "Reset filters": "Reimposta filtri",
// starred properties // starred properties
'Quick Access Settings': 'Accesso rapido', "Quick Access Settings": "Accesso rapido",
'Save settings': 'Salva impostazioni', "Save settings": "Salva impostazioni",
'Currently no download in line to display, use the': 'Attualmente non c\'è nessun download da mostrare, usa il pulsante ', "Currently no download in line to display, use the":
'download button to start downloading files!': 'dowload per cominciare a scaricare!', "Attualmente non c'è nessun download da mostrare, usa il pulsante ",
'Peers': 'Peers', "download button to start downloading files!": "dowload per cominciare a scaricare!",
'More Info': 'Altre informazioni', Peers: "Peers",
'Remove': 'Rimuovi', "More Info": "Altre informazioni",
'# of': '# di', Remove: "Rimuovi",
'Length': 'Lunghezza', "# of": "# di",
// modals Length: "Lunghezza",
'Add Downloads By URIs': 'Aggiungi Downloads da URIs', // modals
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.': "Add Downloads By URIs": "Aggiungi Downloads da URIs",
'- Puoi aggungere più download(files) allo stesso tempo mettendo un\'URI per riga.', "- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.': "- Puoi aggungere più download(files) allo stesso tempo mettendo un'URI per riga.",
'- Puoi anche aggiungere più URI di download(mirror) per uno *stesso* file separando i vari mirror da uno spazio.', "- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '- Un URI può essere un indirizzo HTTP(S)/FTP o un BitTorrent Magnet link.', "- Puoi anche aggiungere più URI di download(mirror) per uno *stesso* file separando i vari mirror da uno spazio.",
'Download settings': 'Impostazioni download', "- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.":
'Advanced settings': 'Impostazioni avanzate', "- Un URI può essere un indirizzo HTTP(S)/FTP o un BitTorrent Magnet link.",
'Cancel': 'Cancella', "Download settings": "Impostazioni download",
'Start': 'Aggiungi', "Advanced settings": "Impostazioni avanzate",
'Choose': 'Scegli', Cancel: "Cancella",
'Quick Access (shown on the main page)': 'Accesso rapido (mostrato nella pagina principale)', Start: "Aggiungi",
// add torrent modal Choose: "Scegli",
'Add Downloads By Torrents': 'Aggiungi Torrent', "Quick Access (shown on the main page)": "Accesso rapido (mostrato nella pagina principale)",
'- Select the torrent from the local filesystem to start the download.': '- Seleziona il file torrent dal tuo computer per iniziare a scaricare.', // add torrent modal
'- You can select multiple torrents to start multiple downloads.': '- Puoi aggiungere anche più file contemporaneamente per iniziare più dowload insieme.', "Add Downloads By Torrents": "Aggiungi Torrent",
'- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.': '- Per aggiungere un Magnet Link BitTorrent utilizza l\'opzione Aggiungi da URI.', "- Select the torrent from the local filesystem to start the download.":
'Select Torrents': 'Seleziona Torrents', "- Seleziona il file torrent dal tuo computer per iniziare a scaricare.",
'Select a Torrent': 'Seleziona un Torrent', "- You can select multiple torrents to start multiple downloads.":
// add metalink modal "- Puoi aggiungere anche più file contemporaneamente per iniziare più dowload insieme.",
'Add Downloads By Metalinks': 'Aggiungi Torrent da Metalink', "- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.":
'Select Metalinks': 'Seleziona Metalink', "- Per aggiungere un Magnet Link BitTorrent utilizza l'opzione Aggiungi da URI.",
'- Select the Metalink from the local filesystem to start the download.': '- Seleziona un Metalink dal tuo computer per iniziare il download.', "Select Torrents": "Seleziona Torrents",
'- You can select multiple Metalinks to start multiple downloads.': '- Puoi iniziare anche più download selezionando più Metalink.', "Select a Torrent": "Seleziona un Torrent",
'Select a Metalink': 'Seleziona un Metalink', // add metalink modal
// select file modal "Add Downloads By Metalinks": "Aggiungi Torrent da Metalink",
'Choose files to start download for': 'Scegli i file da scaricare', "Select Metalinks": "Seleziona Metalink",
'Select to download': 'Seleziona per scaricare', "- Select the Metalink from the local filesystem to start the download.":
// settings modal "- Seleziona un Metalink dal tuo computer per iniziare il download.",
'Aria2 RPC host and port': 'Host e porta del server RPC di Aria2', "- You can select multiple Metalinks to start multiple downloads.":
'Enter the host': 'Inserisci l\'host', "- Puoi iniziare anche più download selezionando più Metalink.",
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)': "Select a Metalink": "Seleziona un Metalink",
'Inserisci l\'IP o il nome DNS del server dov\'è in esecuzione l\'RPC per Aria2 (default: localhost)', // select file modal
'Enter the port': 'Inserisci la porta', "Choose files to start download for": "Scegli i file da scaricare",
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)': "Select to download": "Seleziona per scaricare",
'Inserisci la porta del server dov\'è in esecuzione l\'RPC per Aria2 (default: 6800)', // settings modal
'Enter the RPC path': 'Inserisci la path RPC', "Aria2 RPC host and port": "Host e porta del server RPC di Aria2",
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'Inserisci la path per l\'endpoint RPC di Aria2 (default: /jsonrpc)', "Enter the host": "Inserisci l'host",
'SSL/TLS encryption': 'Cifratura SSL/TLS', "Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
'Enable SSL/TLS encryption': 'Abilita la cifratura SSL/TLS', "Inserisci l'IP o il nome DNS del server dov'è in esecuzione l'RPC per Aria2 (default: localhost)",
'Enter the secret token (optional)': 'Inserisci il token segreto (opzionale)', "Enter the port": "Inserisci la porta",
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)': "Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
'Inserisci il token segreto per Aria2 (lascia vuoto se non è abilitato)', "Inserisci la porta del server dov'è in esecuzione l'RPC per Aria2 (default: 6800)",
'Enter the username (optional)': 'Inserisci l\'username (opzionale)', "Enter the RPC path": "Inserisci la path RPC",
'Enter the Aria2 RPC username (empty if authentication not enabled)': "Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
'Inserisci l\'username per l\'RPC di Aria2 (lascia vuoto se non è abilitato)', "Inserisci la path per l'endpoint RPC di Aria2 (default: /jsonrpc)",
'Enter the password (optional)': 'Inserisci la password (opzionale)', "SSL/TLS encryption": "Cifratura SSL/TLS",
'Enter the Aria2 RPC password (empty if authentication not enabled)': 'Inserisci la password per l\'RPC di Aria2 (vuota se l\'autenticazione non è abilitata)', "Enable SSL/TLS encryption": "Abilita la cifratura SSL/TLS",
'Enter base URL (optional)': 'Inserisci l\'URL di base(opzionale)', "Enter the secret token (optional)": "Inserisci il token segreto (opzionale)",
'Direct Download': 'Downaload diretto', "Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
'If supplied, links will be created to enable direct download from the Aria2 server.': "Inserisci il token segreto per Aria2 (lascia vuoto se non è abilitato)",
'Se inserito, verrano creati dei link per scaricare direttamente i file dal server Aria2.', "Enter the username (optional)": "Inserisci l'username (opzionale)",
'(Requires appropriate webserver to be configured.)': '(Richiede un webserver correttamente configurato)', "Enter the Aria2 RPC username (empty if authentication not enabled)":
'Save Connection configuration': 'Salva la configurazione di connessione', "Inserisci l'username per l'RPC di Aria2 (lascia vuoto se non è abilitato)",
'Filter': 'Filtro', "Enter the password (optional)": "Inserisci la password (opzionale)",
// server info modal "Enter the Aria2 RPC password (empty if authentication not enabled)":
'Aria2 server info': 'Informazioni sul server Aria2', "Inserisci la password per l'RPC di Aria2 (vuota se l'autenticazione non è abilitata)",
'Aria2 Version': 'Versione di Aria2', "Enter base URL (optional)": "Inserisci l'URL di base(opzionale)",
'Features Enabled': 'Funzionalità abilitate', "Direct Download": "Downaload diretto",
// about modal "If supplied, links will be created to enable direct download from the Aria2 server.":
'To download the latest version of the project, add issues or to contribute back, head on to': "Se inserito, verrano creati dei link per scaricare direttamente i file dal server Aria2.",
'Per scaricare l\'ultima versione del progetto, aggiungere problemi o contribuire, visita ', "(Requires appropriate webserver to be configured.)":
'Or you can open the latest version in the browser through': 'Oppure puoi aprire l\'ultima versione direttamente nel browser', "(Richiede un webserver correttamente configurato)",
'Close': 'Chiudi', "Save Connection configuration": "Salva la configurazione di connessione",
// lables Filter: "Filtro",
'Download status':'Stato download', // server info modal
'Download Speed':'Velocità download', "Aria2 server info": "Informazioni sul server Aria2",
'Upload Speed':'Velocità upload', "Aria2 Version": "Versione di Aria2",
'Estimated time':'Tempo stimato', "Features Enabled": "Funzionalità abilitate",
'Download Size':'Dimensione del download', // about modal
'Downloaded':'Scaricato', "To download the latest version of the project, add issues or to contribute back, head on to":
'Progress':'Progresso', "Per scaricare l'ultima versione del progetto, aggiungere problemi o contribuire, visita ",
'Download Path':'Percorso di download', "Or you can open the latest version in the browser through":
'Uploaded':'Caricato', "Oppure puoi aprire l'ultima versione direttamente nel browser",
'Download GID':'GID Download', Close: "Chiudi",
'Number of Pieces':'Numero di segmenti', // lables
'Piece Length': 'Lunghezza segmenti', "Download status": "Stato download",
'Shutdown Server': 'Spegni Server', "Download Speed": "Velocità download",
"Upload Speed": "Velocità upload",
"Estimated time": "Tempo stimato",
"Download Size": "Dimensione del download",
Downloaded: "Scaricato",
Progress: "Progresso",
"Download Path": "Percorso di download",
Uploaded: "Caricato",
"Download GID": "GID Download",
"Number of Pieces": "Numero di segmenti",
"Piece Length": "Lunghezza segmenti",
"Shutdown Server": "Spegni Server",
'The last connection attempt was unsuccessful. Trying another configuration': 'L\'ultimo tentativo di connessione non è riuscito. Provo un\'altra connessione', "The last connection attempt was unsuccessful. Trying another configuration":
'Oh Snap!': 'Mannaggia!', "L'ultimo tentativo di connessione non è riuscito. Provo un'altra connessione",
'Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings': 'Non riesco a connettermi al server RPC di Aria2. Riprovo tra 10 secondi. Forse vuoi controllare le impostazioni di connessione in Impostazioni > Impostazioni di connessione', "Oh Snap!": "Mannaggia!",
'Successfully connected to Aria2 through its remote RPC …': 'Connesso con successo a Aria2 mediante RPC remoto …', "Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings":
'Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)': 'Correttamente connesso al server Aria2 mediante RPC, ma in modo non sicuro. Per una completa sicurezza prova ad aggiungere un token di autorizzazione segreto all\'avvio di Aria2 (mediante il flag --rpc-secret)', "Non riesco a connettermi al server RPC di Aria2. Riprovo tra 10 secondi. Forse vuoi controllare le impostazioni di connessione in Impostazioni > Impostazioni di connessione",
'Trying to connect to aria2 using the new connection configuration': 'Provo a connettermi a Aria2 attraverso le nuove impostazioni', "Successfully connected to Aria2 through its remote RPC …":
"Connesso con successo a Aria2 mediante RPC remoto …",
"Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)":
"Correttamente connesso al server Aria2 mediante RPC, ma in modo non sicuro. Per una completa sicurezza prova ad aggiungere un token di autorizzazione segreto all'avvio di Aria2 (mediante il flag --rpc-secret)",
"Trying to connect to aria2 using the new connection configuration":
"Provo a connettermi a Aria2 attraverso le nuove impostazioni"
}; };

View File

@ -1,119 +1,130 @@
if(typeof translations == 'undefined'){ if (typeof translations == "undefined") {
translations = {}; translations = {};
} }
translations.nl_NL = { translations.nl_NL = {
// header // header
'Search': 'Zoeken', Search: "Zoeken",
// Nav menu // Nav menu
'Add': 'Toevoegen', Add: "Toevoegen",
'By URIs': 'met URI', "By URIs": "met URI",
'By Torrents': 'met Torrents', "By Torrents": "met Torrents",
'By Metalinks': 'met Metalinks', "By Metalinks": "met Metalinks",
'Manage': 'Beheren', Manage: "Beheren",
'Pause All': 'Alles pauzeren', "Pause All": "Alles pauzeren",
'Resume Paused': 'Hervatten', "Resume Paused": "Hervatten",
'Purge Completed': 'Verwijder de voleindigden', "Purge Completed": "Verwijder de voleindigden",
'Settings': 'Instellingen', Settings: "Instellingen",
'Connection Settings': 'Verbindingsinstellingen', "Connection Settings": "Verbindingsinstellingen",
'Global Settings': 'Globale instellingen', "Global Settings": "Globale instellingen",
'Server info': 'Informatie over de server', "Server info": "Informatie over de server",
'About and contribute': 'Over het project en bijdragen', "About and contribute": "Over het project en bijdragen",
'Toggle navigation': 'Navigatie omschakelen', "Toggle navigation": "Navigatie omschakelen",
'Language': 'Taal', Language: "Taal",
// body // body
// nav side bar // nav side bar
'Miscellaneous': 'Overig', Miscellaneous: "Overig",
'Global Statistics': 'Globale statistieken', "Global Statistics": "Globale statistieken",
'About': 'Over het project', About: "Over het project",
'Displaying': ' ', // empty because of grammar in the following 2 elements Displaying: " ", // empty because of grammar in the following 2 elements
'of': 'van', of: "van",
'downloads': 'downloads weergegeven', downloads: "downloads weergegeven",
// download filters // download filters
'Download Filters': 'Download filters', "Download Filters": "Download filters",
'Running': 'Bezig', Running: "Bezig",
'Active': 'Actief', Active: "Actief",
'Waiting': 'Wachtend', Waiting: "Wachtend",
'Complete': 'Voleindigd', Complete: "Voleindigd",
'Error': 'Foutief', Error: "Foutief",
'Paused': 'Gepauzeerd', Paused: "Gepauzeerd",
'Removed': 'Verwijderd', Removed: "Verwijderd",
'Hide linked meta-data': 'Gekoppelde metadata verbergen', "Hide linked meta-data": "Gekoppelde metadata verbergen",
'Toggle': 'Omschakelen', Toggle: "Omschakelen",
'Reset filters': 'Filters terugzetten', "Reset filters": "Filters terugzetten",
// starred properties // starred properties
'Quick Access Settings': 'Snelle-toegang instellingen', "Quick Access Settings": "Snelle-toegang instellingen",
'Save settings': 'Instellingen opslaan', "Save settings": "Instellingen opslaan",
'Currently no download in line to display, use the': 'Momenteel geen downloads weer te geven, gebruik de ', "Currently no download in line to display, use the":
'download button to start downloading files!': 'knop om bestanden te gaan downloaden!', "Momenteel geen downloads weer te geven, gebruik de ",
'Peers': 'Peers', "download button to start downloading files!": "knop om bestanden te gaan downloaden!",
'More Info': 'Meer informatie', Peers: "Peers",
'Remove': 'Verwijderen', "More Info": "Meer informatie",
'# of': 'Aantal', Remove: "Verwijderen",
'Length': 'Lengte', "# of": "Aantal",
// modals Length: "Lengte",
'Add Downloads By URIs': 'Downloads toevoegen met URI', // modals
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.': "Add Downloads By URIs": "Downloads toevoegen met URI",
'- Je kunt meerdere downloads (bestanden) tezelfdertijd toevoegen door de URIs voor elk bestand op een aparte regel te zetten.', "- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.': "- Je kunt meerdere downloads (bestanden) tezelfdertijd toevoegen door de URIs voor elk bestand op een aparte regel te zetten.",
'- Je kunt ook meerdere URIs (mirrors) voor *hetzelfde* bestand toevoegen. Scheidt hiervoor de URIs met een spatie.', "- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '- Een URI kan HTTP(S)/FTP/BitTorrent-Magnet zijn.', "- Je kunt ook meerdere URIs (mirrors) voor *hetzelfde* bestand toevoegen. Scheidt hiervoor de URIs met een spatie.",
'Download settings': 'Download instellingen', "- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.":
'Advanced settings': 'Geavanceerde instellingen', "- Een URI kan HTTP(S)/FTP/BitTorrent-Magnet zijn.",
'Cancel': 'Annuleren', "Download settings": "Download instellingen",
'Start': 'Starten', "Advanced settings": "Geavanceerde instellingen",
'Choose': 'Kiezen', Cancel: "Annuleren",
'Quick Access (shown on the main page)': 'Snelle toegang (op de hoofdpagina)', Start: "Starten",
// add torrent modal Choose: "Kiezen",
'Add Downloads By Torrents': 'Downloads toevoegen met torrents', "Quick Access (shown on the main page)": "Snelle toegang (op de hoofdpagina)",
'- Select the torrent from the local filesystem to start the download.': '- Selecteer de torrent van het locale bestandssysteem om de download te starten.', // add torrent modal
'- You can select multiple torrents to start multiple downloads.': '- Je kunt meerdere torrents selecteren voor meerdere downloads.', "Add Downloads By Torrents": "Downloads toevoegen met torrents",
'- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.': '- Om een BitTorrent-Magnet URL toe te voegen, gebruik de Toevoegen met URI optie, en voeg het daar toe.', "- Select the torrent from the local filesystem to start the download.":
'Select Torrents': 'Selecteer torrents', "- Selecteer de torrent van het locale bestandssysteem om de download te starten.",
'Select a Torrent': 'Selecteer een torrent', "- You can select multiple torrents to start multiple downloads.":
// add metalink modal "- Je kunt meerdere torrents selecteren voor meerdere downloads.",
'Add Downloads By Metalinks': 'Download toevoegen met Metalinks', "- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.":
'Select Metalinks': 'Selecteer Metalinks', "- Om een BitTorrent-Magnet URL toe te voegen, gebruik de Toevoegen met URI optie, en voeg het daar toe.",
'- Select the Metalink from the local filesystem to start the download.': '- Selecteer de Metalink van het locale bestandssysteem om de download te starten.', "Select Torrents": "Selecteer torrents",
'- You can select multiple Metalinks to start multiple downloads.': '- Selecter meerdere Metalinks om meerdere downloads te starten.', "Select a Torrent": "Selecteer een torrent",
'Select a Metalink': 'Selecteer een Metalink', // add metalink modal
// select file modal "Add Downloads By Metalinks": "Download toevoegen met Metalinks",
'Choose files to start download for': 'Bestanden kiezen waarvoor het downloaden beginnen moet', "Select Metalinks": "Selecteer Metalinks",
'Select to download': 'Selecteer om te downloaden', "- Select the Metalink from the local filesystem to start the download.":
// settings modal "- Selecteer de Metalink van het locale bestandssysteem om de download te starten.",
'Aria2 RPC host and port': 'Aria2 RPC server en poort', "- You can select multiple Metalinks to start multiple downloads.":
'Enter the host': 'Server invoeren', "- Selecter meerdere Metalinks om meerdere downloads te starten.",
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)': "Select a Metalink": "Selecteer een Metalink",
'Voer de IP of DNS naam van de server waarop de RPC van Aria2 loopt (standaard: localhost)', // select file modal
'Enter the port': 'Poort invoeren', "Choose files to start download for": "Bestanden kiezen waarvoor het downloaden beginnen moet",
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)': "Select to download": "Selecteer om te downloaden",
'Invoeren van de serverpoort waarop de RPC van Aria2 loopt (standaard: 6800)', // settings modal
'Enter the RPC path': 'Invoeren van het RPC pad', "Aria2 RPC host and port": "Aria2 RPC server en poort",
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'Invoeren van het eindpunt van het Aria2 RPC pad (standaard: /jsonrpc)', "Enter the host": "Server invoeren",
'SSL/TLS encryption': 'SSL/TLS versleuteling', "Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
'Enable SSL/TLS encryption': 'SSL/TLS versleuteling inschakelen', "Voer de IP of DNS naam van de server waarop de RPC van Aria2 loopt (standaard: localhost)",
'Enter the secret token (optional)': 'Invoeren van het wachtwoord (facultatief)', "Enter the port": "Poort invoeren",
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)': "Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
'Invoeren van het Aria2 RPC wachtwoord (niet invullen als authenticatie niet is ingeschakeld)', "Invoeren van de serverpoort waarop de RPC van Aria2 loopt (standaard: 6800)",
'Enter the username (optional)': 'Invoeren van de gebruikersnaam (facultatief)', "Enter the RPC path": "Invoeren van het RPC pad",
'Enter the Aria2 RPC username (empty if authentication not enabled)': "Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
'Invoeren van de Aria2 RPC gebruikersnaam (niet invullen als authenticatie niet is ingeschakeld)', "Invoeren van het eindpunt van het Aria2 RPC pad (standaard: /jsonrpc)",
'Enter the password (optional)': 'Invoeren van het wachtwoord (facultatief)', "SSL/TLS encryption": "SSL/TLS versleuteling",
'Enter the Aria2 RPC password (empty if authentication not enabled)': 'Invoeren van het Aria2 RPC wachtwoord (niet invullen als authenticatie niet is ingeschakeld)', "Enable SSL/TLS encryption": "SSL/TLS versleuteling inschakelen",
'Enter base URL (optional)': 'Invoeren van de basis URL (facultatief)', "Enter the secret token (optional)": "Invoeren van het wachtwoord (facultatief)",
'Direct Download': 'Direct downloaden', "Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
'If supplied, links will be created to enable direct download from the Aria2 server.': "Invoeren van het Aria2 RPC wachtwoord (niet invullen als authenticatie niet is ingeschakeld)",
'Als ingevoerd dan worden links aangemaakt die het direct downloaden van de Aria2 server toestaan.', "Enter the username (optional)": "Invoeren van de gebruikersnaam (facultatief)",
'(Requires appropriate webserver to be configurured.)': 'Hiervoor moet een geschikte webserver worden ingericht.)', "Enter the Aria2 RPC username (empty if authentication not enabled)":
'Save Connection configuration': 'Verbindingsconfiguratie opslaan', "Invoeren van de Aria2 RPC gebruikersnaam (niet invullen als authenticatie niet is ingeschakeld)",
'Filter': 'Filter', "Enter the password (optional)": "Invoeren van het wachtwoord (facultatief)",
// server info modal "Enter the Aria2 RPC password (empty if authentication not enabled)":
'Aria2 server info': 'Aria2 server informatie', "Invoeren van het Aria2 RPC wachtwoord (niet invullen als authenticatie niet is ingeschakeld)",
'Aria2 Version': 'Aria2 versie', "Enter base URL (optional)": "Invoeren van de basis URL (facultatief)",
'Features Enabled': 'Geactiveerde kenmerken', "Direct Download": "Direct downloaden",
// about modal "If supplied, links will be created to enable direct download from the Aria2 server.":
'To download the latest version of the project, add issues or to contribute back, head on to': "Als ingevoerd dan worden links aangemaakt die het direct downloaden van de Aria2 server toestaan.",
'Om de nieuwste versie van het project te downloaden, problemen te rapporteren of bij te dragen, ga naar', "(Requires appropriate webserver to be configurured.)":
'Or you can open the latest version in the browser through': 'Of je kunt hier de nieuwste versie in je browser openen', "Hiervoor moet een geschikte webserver worden ingericht.)",
'Close': 'Afsluiten', "Save Connection configuration": "Verbindingsconfiguratie opslaan",
Filter: "Filter",
// server info modal
"Aria2 server info": "Aria2 server informatie",
"Aria2 Version": "Aria2 versie",
"Features Enabled": "Geactiveerde kenmerken",
// about modal
"To download the latest version of the project, add issues or to contribute back, head on to":
"Om de nieuwste versie van het project te downloaden, problemen te rapporteren of bij te dragen, ga naar",
"Or you can open the latest version in the browser through":
"Of je kunt hier de nieuwste versie in je browser openen",
Close: "Afsluiten"
}; };

View File

@ -1,131 +1,154 @@
if (typeof translations == 'undefined'){ if (typeof translations == "undefined") {
translations = {}; translations = {};
} }
translations.pl_PL = { translations.pl_PL = {
// header // header
'Search': 'Szukaj', Search: "Szukaj",
// Nav menu // Nav menu
'Add': 'Dodaj', Add: "Dodaj",
'By URIs': 'Przez URL', "By URIs": "Przez URL",
'By Torrents': 'Przez Torrenty', "By Torrents": "Przez Torrenty",
'By Metalinks': 'Przez Metalinki', "By Metalinks": "Przez Metalinki",
'Manage': 'Zarządzaj', Manage: "Zarządzaj",
'Pause All': 'Zatrzymaj wszystkie', "Pause All": "Zatrzymaj wszystkie",
'Resume Paused': 'Wznów zatrzymane', "Resume Paused": "Wznów zatrzymane",
'Purge Completed': 'Czyść zakończone', "Purge Completed": "Czyść zakończone",
'Settings': 'Ustawienia', Settings: "Ustawienia",
'Connection Settings': 'Ustawienia połączenia', "Connection Settings": "Ustawienia połączenia",
'Global Settings': 'Ustawienia globalne', "Global Settings": "Ustawienia globalne",
'Server info': 'Informacje o serwerze', "Server info": "Informacje o serwerze",
'About and contribute': 'O projekcie', "About and contribute": "O projekcie",
'Toggle navigation': 'Przełącz nawigację', "Toggle navigation": "Przełącz nawigację",
// body // body
// nav side bar // nav side bar
'Miscellaneous': 'Różne', Miscellaneous: "Różne",
'Global Statistics': 'Statystyki globalne', "Global Statistics": "Statystyki globalne",
'About': 'O', About: "O",
'Displaying': 'Wyświetlanie', Displaying: "Wyświetlanie",
'of': 'z', of: "z",
'downloads': 'pobranych plików', downloads: "pobranych plików",
'Language': 'Język', Language: "Język",
// download filters // download filters
'Download Filters': 'Filtry ściągania', "Download Filters": "Filtry ściągania",
'Running': 'Uruchomione', Running: "Uruchomione",
'Active': 'Aktywne', Active: "Aktywne",
'Waiting': 'Oczekujące', Waiting: "Oczekujące",
'Complete': 'Zakończone', Complete: "Zakończone",
'Error': 'Błąd', Error: "Błąd",
'Paused': 'Zatrzymane', Paused: "Zatrzymane",
'Removed': 'Usunięte', Removed: "Usunięte",
'Hide linked meta-data': 'Ukryj zalinkowane meta-dane', "Hide linked meta-data": "Ukryj zalinkowane meta-dane",
'Toggle': 'Przełącz', Toggle: "Przełącz",
'Reset filters': 'Reset filtrów', "Reset filters": "Reset filtrów",
// starred properties // starred properties
'Quick Access Settings': 'Ustawienia szybkiego dostępu', "Quick Access Settings": "Ustawienia szybkiego dostępu",
'Save settings': 'Zapisz ustawienia', "Save settings": "Zapisz ustawienia",
'Currently no download in line to display, use the': 'Obecnie nie można wyświetlić żadnych pobieranych plików. Użyj przycisku', "Currently no download in line to display, use the":
'download button to start downloading files!': 'aby rozpocząć ściąganie plików!', "Obecnie nie można wyświetlić żadnych pobieranych plików. Użyj przycisku",
'Peers': 'Peerów', "download button to start downloading files!": "aby rozpocząć ściąganie plików!",
'More Info': 'Więcej info', Peers: "Peerów",
'Remove': 'Usuń', "More Info": "Więcej info",
'# of': '# z', Remove: "Usuń",
'Length': 'Długość', "# of": "# z",
// modals Length: "Długość",
'Add Downloads By URIs': 'Dodaj pobieranie przez URI', // modals
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.': '- Możesz dodać wiele pobrań (plików) w tym samym czasie przez wprowadzenie URI dla każdego w oddzielnej linii.', "Add Downloads By URIs": "Dodaj pobieranie przez URI",
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.': '- Możesz także dodać wiele URI (luster) dla tego *samego* pliku. Zrób to, poprzez oddzielenie URI od siebie spacją.', "- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '- URI może być HTTP(S)/FTP/BitTorrent-Magnet.', "- Możesz dodać wiele pobrań (plików) w tym samym czasie przez wprowadzenie URI dla każdego w oddzielnej linii.",
'Download settings': 'Ustawienia pobierania', "- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
'Advanced settings': 'Zaawansowane ustawienia', "- Możesz także dodać wiele URI (luster) dla tego *samego* pliku. Zrób to, poprzez oddzielenie URI od siebie spacją.",
'Cancel': 'Anuluj', "- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.": "- URI może być HTTP(S)/FTP/BitTorrent-Magnet.",
'Start': 'Rozpocznij', "Download settings": "Ustawienia pobierania",
'Choose': 'Wybierz', "Advanced settings": "Zaawansowane ustawienia",
'Quick Access (shown on the main page)': 'Szybki dostęp (pokazywane na głównej stronie)', Cancel: "Anuluj",
// add torrent modal Start: "Rozpocznij",
'Add Downloads By Torrents': 'Dodaj pobierania przez Torrenty', Choose: "Wybierz",
'- Select the torrent from the local filesystem to start the download.': '- Wybierz torrent z lokalnego systemu plików, aby rozpocząć pobieranie.', "Quick Access (shown on the main page)": "Szybki dostęp (pokazywane na głównej stronie)",
'- You can select multiple torrents to start multiple downloads.': '- Możesz wybrać wiele torrentów do rozpoczęcia wiele pobrań.', // add torrent modal
'- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.': '- Aby dodać BitTorrent-URL Magnetyczny, użyj opcji dodawania przez URI i dodaj to tutaj.', "Add Downloads By Torrents": "Dodaj pobierania przez Torrenty",
'Select Torrents': 'Wybierz Torrenty', "- Select the torrent from the local filesystem to start the download.":
'Select a Torrent': 'Wybierz Torrent', "- Wybierz torrent z lokalnego systemu plików, aby rozpocząć pobieranie.",
// add metalink modal "- You can select multiple torrents to start multiple downloads.":
'Add Downloads By Metalinks': 'Dodaj pobierania przez Metalinki', "- Możesz wybrać wiele torrentów do rozpoczęcia wiele pobrań.",
'Select Metalinks': 'Wybierz Metalinki', "- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.":
'- Select the Metalink from the local filesystem to start the download.': '- Wybierz Metalinki z lokalnego systemu plików, aby rozpocząć pobieranie.', "- Aby dodać BitTorrent-URL Magnetyczny, użyj opcji dodawania przez URI i dodaj to tutaj.",
'- You can select multiple Metalinks to start multiple downloads.': '- Możesz wybrać wiele Metalinków, aby rozpocząć wiele pobrań.', "Select Torrents": "Wybierz Torrenty",
'Select a Metalink': 'Wybierz Metalink', "Select a Torrent": "Wybierz Torrent",
// select file modal // add metalink modal
'Choose files to start download for': 'Wybierz pliki, aby rozpocząć pobieranie dla', "Add Downloads By Metalinks": "Dodaj pobierania przez Metalinki",
'Select to download': 'Wybierz do pobierania', "Select Metalinks": "Wybierz Metalinki",
// settings modal "- Select the Metalink from the local filesystem to start the download.":
'Aria2 RPC host and port': 'Aria2 RPC host i port', "- Wybierz Metalinki z lokalnego systemu plików, aby rozpocząć pobieranie.",
'Enter the host': 'Wprowadź host', "- You can select multiple Metalinks to start multiple downloads.":
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)': 'Wprowadź IP lub nazwę DNS serwera, na którym jest uruchomiona Aria2 z RPC (domyślnie: localhost)', "- Możesz wybrać wiele Metalinków, aby rozpocząć wiele pobrań.",
'Enter the port': 'Wprowadź port', "Select a Metalink": "Wybierz Metalink",
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)': 'Wprowadź port serwera, na którym Aria2 z RPC jest uruchomiona (domyślnie 6800)', // select file modal
'Enter the RPC path': 'Wprowadź ścieżkę RPC', "Choose files to start download for": "Wybierz pliki, aby rozpocząć pobieranie dla",
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'Wprowadź ścieżkę dla punktu końcowego Aria2 RPC (domyślnie: /jsonrpc)', "Select to download": "Wybierz do pobierania",
'SSL/TLS encryption': 'szyfrowanie SSL/TLS', // settings modal
'Enable SSL/TLS encryption': 'Włącz szyfrowanie SSL/TLS', "Aria2 RPC host and port": "Aria2 RPC host i port",
'Enter the secret token (optional)': 'Wprowadź sekretny token (opcja dodatkowa)', "Enter the host": "Wprowadź host",
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)': 'Wprowadź sekretny token Aria2 RPC (pozostaw puste, jeżeli uwierzytelnienie nie jest włączone)', "Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
'Enter the username (optional)': 'Wprowadź nazwę użytkownika (opcja dodatkowa)', "Wprowadź IP lub nazwę DNS serwera, na którym jest uruchomiona Aria2 z RPC (domyślnie: localhost)",
'Enter the Aria2 RPC username (empty if authentication not enabled)': 'Wprowadź nazwę użytkownika Aria2 RPC (pozostaw puste, jeżeli uwierzytelnienie nie jest włączone)', "Enter the port": "Wprowadź port",
'Enter the password (optional)': 'Wprowadź hasło (opcja dodatkowa)', "Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
'Enter the Aria2 RPC password (empty if authentication not enabled)': 'Wprowadź hasło Aria2 RPC (pozostaw puste, jeżeli uwierzytelnienie nie jest włączone)', "Wprowadź port serwera, na którym Aria2 z RPC jest uruchomiona (domyślnie 6800)",
'Enter base URL (optional)': 'Wprowadź podstawowy URL (opcja dodatkowa)', "Enter the RPC path": "Wprowadź ścieżkę RPC",
'Direct Download': 'Bezpośrednie pobieranie', "Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
'If supplied, links will be created to enable direct download from the Aria2 server.': 'Jeżeli zaznaczone, linki mogą być utworzone do włączenia bezpośredniego pobierania z serwera Aria2', "Wprowadź ścieżkę dla punktu końcowego Aria2 RPC (domyślnie: /jsonrpc)",
'(Requires appropriate webserver to be configured.)': '(Wymaga właściwej konfiguracji serwera WWW)', "SSL/TLS encryption": "szyfrowanie SSL/TLS",
'Save Connection configuration': 'Zapisz konfigurację połączenia', "Enable SSL/TLS encryption": "Włącz szyfrowanie SSL/TLS",
'Filter': 'Filtr', "Enter the secret token (optional)": "Wprowadź sekretny token (opcja dodatkowa)",
// server info modal "Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
'Aria2 server info': 'Info o serwerze Aria2', "Wprowadź sekretny token Aria2 RPC (pozostaw puste, jeżeli uwierzytelnienie nie jest włączone)",
'Aria2 Version': 'Wersja Aria2', "Enter the username (optional)": "Wprowadź nazwę użytkownika (opcja dodatkowa)",
'Features Enabled': 'Włączone funkcje', "Enter the Aria2 RPC username (empty if authentication not enabled)":
// about modal "Wprowadź nazwę użytkownika Aria2 RPC (pozostaw puste, jeżeli uwierzytelnienie nie jest włączone)",
'To download the latest version of the project, add issues or to contribute back, head on to': 'Aby ściągnąć najnowszą wersję projektu, dodać zgłodzenia lub wspomagać projekt, udaj się do', "Enter the password (optional)": "Wprowadź hasło (opcja dodatkowa)",
'Or you can open the latest version in the browser through': 'Lub otwórz najnowszą wersję przez przeglądarkę', "Enter the Aria2 RPC password (empty if authentication not enabled)":
'Close': 'Zamknij', "Wprowadź hasło Aria2 RPC (pozostaw puste, jeżeli uwierzytelnienie nie jest włączone)",
// lables "Enter base URL (optional)": "Wprowadź podstawowy URL (opcja dodatkowa)",
'Download status':'Status pobierania', "Direct Download": "Bezpośrednie pobieranie",
'Download Speed':'Szybkość pobierania', "If supplied, links will be created to enable direct download from the Aria2 server.":
'Upload Speed':'Szybkość wysyłania', "Jeżeli zaznaczone, linki mogą być utworzone do włączenia bezpośredniego pobierania z serwera Aria2",
'Estimated time':'Pozostały czas', "(Requires appropriate webserver to be configured.)":
'Download Size':'Rozmiar pobierania', "(Wymaga właściwej konfiguracji serwera WWW)",
'Downloaded':'Pobrane', "Save Connection configuration": "Zapisz konfigurację połączenia",
'Progress':'Postęp', Filter: "Filtr",
'Download Path':'Ścieżka pobierania', // server info modal
'Uploaded':'Załadowany', "Aria2 server info": "Info o serwerze Aria2",
'Download GID':'GID pobierania', "Aria2 Version": "Wersja Aria2",
'Number of Pieces':'Liczba kawałków', "Features Enabled": "Włączone funkcje",
'Piece Length':'Rozmiar kawałka', // about modal
'Shutdown Server': 'Wyłącz serwer', "To download the latest version of the project, add issues or to contribute back, head on to":
'The last connection attempt was unsuccessful. Trying another configuration': 'Ostatnia próba połączenia nie powiodła się. Spróbuj innej konfiguracji', "Aby ściągnąć najnowszą wersję projektu, dodać zgłodzenia lub wspomagać projekt, udaj się do",
'Oh Snap!': 'O kurczę!', "Or you can open the latest version in the browser through":
'Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings': 'Nie można połączyć się z serwerem aria2 przez RPC. Kolejna próba za 10 sekund. Być może potrzebujesz sprawdzić ustawienie połączenia poprzez Ustawienia > Ustawienia połączenia', "Lub otwórz najnowszą wersję przez przeglądarkę",
'Successfully connected to Aria2 through its remote RPC …': 'Pomyślnie połączono się z Aria2 przez RPC ...', Close: "Zamknij",
'Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)': 'Pomyślnie połączono się z Aria2 przez RPC, jednakże połączenie nie jest bezpieczne. Aby zabezpieczyć dodaj sekretny token autoryzacji podczas startu Aria2 (przez użycie flagi --rpc-secret)', // lables
'Trying to connect to aria2 using the new connection configuration': 'Próba połączenia się z Aria2 poprzez użycie nowej konfiguracji połączenia' "Download status": "Status pobierania",
"Download Speed": "Szybkość pobierania",
"Upload Speed": "Szybkość wysyłania",
"Estimated time": "Pozostały czas",
"Download Size": "Rozmiar pobierania",
Downloaded: "Pobrane",
Progress: "Postęp",
"Download Path": "Ścieżka pobierania",
Uploaded: "Załadowany",
"Download GID": "GID pobierania",
"Number of Pieces": "Liczba kawałków",
"Piece Length": "Rozmiar kawałka",
"Shutdown Server": "Wyłącz serwer",
"The last connection attempt was unsuccessful. Trying another configuration":
"Ostatnia próba połączenia nie powiodła się. Spróbuj innej konfiguracji",
"Oh Snap!": "O kurczę!",
"Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings":
"Nie można połączyć się z serwerem aria2 przez RPC. Kolejna próba za 10 sekund. Być może potrzebujesz sprawdzić ustawienie połączenia poprzez Ustawienia > Ustawienia połączenia",
"Successfully connected to Aria2 through its remote RPC …":
"Pomyślnie połączono się z Aria2 przez RPC ...",
"Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)":
"Pomyślnie połączono się z Aria2 przez RPC, jednakże połączenie nie jest bezpieczne. Aby zabezpieczyć dodaj sekretny token autoryzacji podczas startu Aria2 (przez użycie flagi --rpc-secret)",
"Trying to connect to aria2 using the new connection configuration":
"Próba połączenia się z Aria2 poprzez użycie nowej konfiguracji połączenia"
}; };

View File

@ -1,154 +1,166 @@
if(typeof translations == 'undefined'){ if (typeof translations == "undefined") {
translations = {}; translations = {};
} }
translations.pt_BR = { // replace en_US to ll_CC, examples: zh_CN, de_AT. translations.pt_BR = {
// header // replace en_US to ll_CC, examples: zh_CN, de_AT.
'Search': 'Buscar', // header
Search: "Buscar",
// Nav menu // Nav menu
'Add': 'Adicionar', Add: "Adicionar",
'By URIs': 'Por URIs', "By URIs": "Por URIs",
'By Torrents': 'Por Torrents', "By Torrents": "Por Torrents",
'By Metalinks': 'Por Metalinks', "By Metalinks": "Por Metalinks",
'Manage': 'Gerenciar', Manage: "Gerenciar",
'Pause All': 'Pausar Todos', "Pause All": "Pausar Todos",
'Resume Paused': 'Retomar Pausados', "Resume Paused": "Retomar Pausados",
'Purge Completed': 'Remover Completados', "Purge Completed": "Remover Completados",
'Shutdown Server': 'Desligar Servidor', "Shutdown Server": "Desligar Servidor",
'Settings': 'Configurações', Settings: "Configurações",
'Connection Settings': 'Configurações de Conexão', "Connection Settings": "Configurações de Conexão",
'Global Settings': 'Configurações Globais', "Global Settings": "Configurações Globais",
'Server info': 'Informações do Servidor', "Server info": "Informações do Servidor",
'About and contribute': 'Sobre e contribuições', "About and contribute": "Sobre e contribuições",
'Toggle navigation': 'Alternar navegação', "Toggle navigation": "Alternar navegação",
// body // body
// nav side bar // nav side bar
'Miscellaneous': 'Miscelânia', Miscellaneous: "Miscelânia",
'Global Statistics': 'Estatísticas Globais', "Global Statistics": "Estatísticas Globais",
'About': 'Sobre', About: "Sobre",
'Displaying': 'Mostrando', Displaying: "Mostrando",
'of': 'de', of: "de",
'downloads': 'downloads', downloads: "downloads",
'Language': 'Linguagem', Language: "Linguagem",
// download filters // download filters
'Download Filters': 'Filtros de Download', "Download Filters": "Filtros de Download",
'Running': 'Rodando', Running: "Rodando",
'Active': 'Ativo', Active: "Ativo",
'Waiting': 'Esperando', Waiting: "Esperando",
'Complete': 'Completo', Complete: "Completo",
'Error': 'Erro', Error: "Erro",
'Paused': 'Pausado', Paused: "Pausado",
'Removed': 'Removido', Removed: "Removido",
'Hide linked meta-data': 'Esconder metadados ligados', "Hide linked meta-data": "Esconder metadados ligados",
'Toggle': 'Alternar', Toggle: "Alternar",
'Reset filters': 'Limpar filtros', "Reset filters": "Limpar filtros",
// download status // download status
'Verifing': 'Verificando', Verifing: "Verificando",
'Verify Pending': 'Verificação Pendente', "Verify Pending": "Verificação Pendente",
// starred properties // starred properties
'Quick Access Settings': 'Acesso Rápido às Configurações', "Quick Access Settings": "Acesso Rápido às Configurações",
'Save': 'Salvar', Save: "Salvar",
'Save settings': 'Salvar configurações', "Save settings": "Salvar configurações",
'Currently no download in line to display, use the': 'No momento não existem downloads para mostrar, utilize botão', "Currently no download in line to display, use the":
'download button to start downloading files!': 'pra iniciar a transferência de arquivos!', "No momento não existem downloads para mostrar, utilize botão",
'Peers': 'Peers', "download button to start downloading files!": "pra iniciar a transferência de arquivos!",
'More Info': 'Mais informações', Peers: "Peers",
'Remove': 'Remover', "More Info": "Mais informações",
'# of': ' de', Remove: "Remover",
'Length': 'Tamanho', "# of": " de",
// modals Length: "Tamanho",
'Add Downloads By URIs': 'Adicionar Downloads por URIs', // modals
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.': "Add Downloads By URIs": "Adicionar Downloads por URIs",
'- Você pode adicionar múltiplos downloads (arquivos) ao mesmo tempo inserindo a URI de cada arquivo em uma linha separada.', "- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.': "- Você pode adicionar múltiplos downloads (arquivos) ao mesmo tempo inserindo a URI de cada arquivo em uma linha separada.",
'- Você também pode adicionar múltiplas URIs (mirrors) para o *mesmo* arquivo. Para fazer isto, separe as URIs por um espaço.', "- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '- Uma URI pode ser HTTP(S)/FTP/BitTorrent-Magnet.', "- Você também pode adicionar múltiplas URIs (mirrors) para o *mesmo* arquivo. Para fazer isto, separe as URIs por um espaço.",
'Download settings': 'Configurações de download', "- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.":
'Advanced settings': 'Configurações avançadas', "- Uma URI pode ser HTTP(S)/FTP/BitTorrent-Magnet.",
'Cancel': 'Cancelar', "Download settings": "Configurações de download",
'Start': 'Iniciar', "Advanced settings": "Configurações avançadas",
'Choose': 'Escolher', Cancel: "Cancelar",
'Quick Access (shown on the main page)': 'Acesso Rápido (exibido na página principal)', Start: "Iniciar",
// add torrent modal Choose: "Escolher",
'Add Downloads By Torrents': 'Adicionar Downloads por Torrents', "Quick Access (shown on the main page)": "Acesso Rápido (exibido na página principal)",
'- Select the torrent from the local filesystem to start the download.': '- Selecione o torrent de seu sistema de arquivos local para iniciar o download.', // add torrent modal
'- You can select multiple torrents to start multiple downloads.': '- Você pode selecionar múltiplos torrents para iniciar múltiplos downloads.', "Add Downloads By Torrents": "Adicionar Downloads por Torrents",
'- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.': '- Para adicionar uma URL BitTorrent-Magnet, utilize a opção Adicionar por URI.', "- Select the torrent from the local filesystem to start the download.":
'Select Torrents': 'Selecione Torrents', "- Selecione o torrent de seu sistema de arquivos local para iniciar o download.",
'Select a Torrent': 'Selecione um Torrent', "- You can select multiple torrents to start multiple downloads.":
// add metalink modal "- Você pode selecionar múltiplos torrents para iniciar múltiplos downloads.",
'Add Downloads By Metalinks': 'Adicionar Downloads por Metalinks', "- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.":
'Select Metalinks': 'Selecione Metalinks', "- Para adicionar uma URL BitTorrent-Magnet, utilize a opção Adicionar por URI.",
'- Select the Metalink from the local filesystem to start the download.': '- Selecione o Metalink do seu sistema de arquivos local para iniciar o download.', "Select Torrents": "Selecione Torrents",
'- You can select multiple Metalinks to start multiple downloads.': '- Você pode selecionar múltiplos Metalinks para iniciar múltiplos downloads.', "Select a Torrent": "Selecione um Torrent",
'Select a Metalink': 'Selecione um Metalink', // add metalink modal
// select file modal "Add Downloads By Metalinks": "Adicionar Downloads por Metalinks",
'Choose files to start download for': 'Selecione os arquvos para serem baixados', "Select Metalinks": "Selecione Metalinks",
'Select to download': 'Selecione para baixar', "- Select the Metalink from the local filesystem to start the download.":
// settings modal "- Selecione o Metalink do seu sistema de arquivos local para iniciar o download.",
'Aria2 RPC host and port': 'Host e porta do RPC Aria2', "- You can select multiple Metalinks to start multiple downloads.":
'Enter the host': 'Informe o host', "- Você pode selecionar múltiplos Metalinks para iniciar múltiplos downloads.",
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)': "Select a Metalink": "Selecione um Metalink",
'Informe o IP ou nome DNS do servidor no qual o RPC do Aria2 está rodando (default: localhost)', // select file modal
'Enter the port': 'Informe a porta', "Choose files to start download for": "Selecione os arquvos para serem baixados",
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)': "Select to download": "Selecione para baixar",
'Informe a porta do servidor no qual o RPC do Aria2 está rodando (default: 6800)', // settings modal
'Enter the RPC path': 'Informe o caminho RPC', "Aria2 RPC host and port": "Host e porta do RPC Aria2",
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'Informe o caminho para o endpoint RPC do Aria2 (default: /jasonrpc)', "Enter the host": "Informe o host",
'SSL/TLS encryption': 'Criptografia SSL/TLS', "Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
'Enable SSL/TLS encryption': 'Habilita criptografia SSL/TLS', "Informe o IP ou nome DNS do servidor no qual o RPC do Aria2 está rodando (default: localhost)",
'Enter the secret token (optional)': 'Informe o token secreto (opcional)', "Enter the port": "Informe a porta",
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)': "Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
'Informe o token secreto do RPC Aria2 (deixe vazio se a autenticação não estiver habilitada)', "Informe a porta do servidor no qual o RPC do Aria2 está rodando (default: 6800)",
'Enter the username (optional)': 'Informe o usuário (opcional)', "Enter the RPC path": "Informe o caminho RPC",
'Enter the Aria2 RPC username (empty if authentication not enabled)': "Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
'Informe o usuário RPC do Aria2 (vazio se a autenticação não estiver habilitada)', "Informe o caminho para o endpoint RPC do Aria2 (default: /jasonrpc)",
'Enter the password (optional)': 'Informe a senha (opcional)', "SSL/TLS encryption": "Criptografia SSL/TLS",
'Enter the Aria2 RPC password (empty if authentication not enabled)': 'Informe a senha RPC do Aria2 (vazio se a autenticação não estiver habilitada)', "Enable SSL/TLS encryption": "Habilita criptografia SSL/TLS",
'Enter base URL (optional)': 'Informe a URL base (opcional)', "Enter the secret token (optional)": "Informe o token secreto (opcional)",
'Direct Download': 'Download Direto', "Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
'If supplied, links will be created to enable direct download from the Aria2 server.': "Informe o token secreto do RPC Aria2 (deixe vazio se a autenticação não estiver habilitada)",
'Se fornecido, links serão criados para permitir download direto do servidor Aria2.', "Enter the username (optional)": "Informe o usuário (opcional)",
'(Requires appropriate webserver to be configured.)': '(Requer servidor web apropriado a ser configurado.)', "Enter the Aria2 RPC username (empty if authentication not enabled)":
'Save Connection configuration': 'Salvar Configuração de conexão', "Informe o usuário RPC do Aria2 (vazio se a autenticação não estiver habilitada)",
'Filter': 'Filtrar', "Enter the password (optional)": "Informe a senha (opcional)",
// server info modal "Enter the Aria2 RPC password (empty if authentication not enabled)":
'Aria2 server info': 'Informações do servidor Aria2', "Informe a senha RPC do Aria2 (vazio se a autenticação não estiver habilitada)",
'Aria2 Version': 'Verão do Aria2', "Enter base URL (optional)": "Informe a URL base (opcional)",
'Features Enabled': 'Opções Habilitadas', "Direct Download": "Download Direto",
// about modal "If supplied, links will be created to enable direct download from the Aria2 server.":
'To download the latest version of the project, add issues or to contribute back, head on to': "Se fornecido, links serão criados para permitir download direto do servidor Aria2.",
'Para baixar a última versão do projeto, reportar problemas ou contribuir, acesse', "(Requires appropriate webserver to be configured.)":
'Or you can open the latest version in the browser through': 'Ou você pode acessar a última versão pelo navegador através', "(Requer servidor web apropriado a ser configurado.)",
'Close': 'Fechar', "Save Connection configuration": "Salvar Configuração de conexão",
// labels Filter: "Filtrar",
'Download status':'Status do download', // server info modal
'Download Speed':'Velocidade de download', "Aria2 server info": "Informações do servidor Aria2",
'Upload Speed':'Velocidade de upload', "Aria2 Version": "Verão do Aria2",
'Estimated time':'Tempo estimado', "Features Enabled": "Opções Habilitadas",
'Download Size':'Tamanho do download', // about modal
'Downloaded':'Baixado', "To download the latest version of the project, add issues or to contribute back, head on to":
'Progress':'Progresso', "Para baixar a última versão do projeto, reportar problemas ou contribuir, acesse",
'Download Path':'Caminho do download', "Or you can open the latest version in the browser through":
'Uploaded':'Enviado', "Ou você pode acessar a última versão pelo navegador através",
'Download GID':'GID do download', Close: "Fechar",
'Number of Pieces':'Número de partes', // labels
'Piece Length':'Tamanho das partes', "Download status": "Status do download",
"Download Speed": "Velocidade de download",
"Upload Speed": "Velocidade de upload",
"Estimated time": "Tempo estimado",
"Download Size": "Tamanho do download",
Downloaded: "Baixado",
Progress: "Progresso",
"Download Path": "Caminho do download",
Uploaded: "Enviado",
"Download GID": "GID do download",
"Number of Pieces": "Número de partes",
"Piece Length": "Tamanho das partes",
//alerts //alerts
'The last connection attempt was unsuccessful. Trying another configuration': "The last connection attempt was unsuccessful. Trying another configuration":
'A última tentativa de conexão não teve sucesso. Tentando outra configuração', "A última tentativa de conexão não teve sucesso. Tentando outra configuração",
'Oh Snap!': 'Ah Droga!', "Oh Snap!": "Ah Droga!",
'Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings': "Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings":
'Não foi possível conectar no servidor RPC aria2. Tententando em 10 seg. Você pode querer verificar as configurações da conexão em Configurações > Configurações de Conexão', "Não foi possível conectar no servidor RPC aria2. Tententando em 10 seg. Você pode querer verificar as configurações da conexão em Configurações > Configurações de Conexão",
'Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings': "Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings":
'Autenticação falhou enquanto conectando ao servidor RPC Aria2. Tentando em 10 seg. Você pode querer confirmar os detalhes de autenticação acessando Configurações > Configurações de Conexão', "Autenticação falhou enquanto conectando ao servidor RPC Aria2. Tentando em 10 seg. Você pode querer confirmar os detalhes de autenticação acessando Configurações > Configurações de Conexão",
'Successfully connected to Aria2 through its remote RPC …': "Successfully connected to Aria2 through its remote RPC …":
'Conectado com sucesso ao Aria2 através de seu RPC remoto …', "Conectado com sucesso ao Aria2 através de seu RPC remoto …",
'Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)': "Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)":
'Conectado com sucesso ao Aria2 através de seu RPC remoto, contudo a conexão é insegura. Para uma completa segurança tente adicionar um token secreto de autorização quando iniciar o Aria2 (através da opção --rpc-secret)', "Conectado com sucesso ao Aria2 através de seu RPC remoto, contudo a conexão é insegura. Para uma completa segurança tente adicionar um token secreto de autorização quando iniciar o Aria2 (através da opção --rpc-secret)",
'Trying to connect to aria2 using the new connection configuration': "Trying to connect to aria2 using the new connection configuration":
'Tentando conectar-se ao aria2 utilizando a nova configuração de conexão', "Tentando conectar-se ao aria2 utilizando a nova configuração de conexão",
'Remove {{name}} and associated meta-data?': // {{name}} refers to the download name, do not modify. // {{name}} refers to the download name, do not modify.
'Remover {{name}} e os metadados associados?' "Remove {{name}} and associated meta-data?": "Remover {{name}} e os metadados associados?"
}; };

View File

@ -1,143 +1,156 @@
if(typeof translations == 'undefined'){ if (typeof translations == "undefined") {
translations = {}; translations = {};
} }
translations.ru_RU = { translations.ru_RU = {
// header // header
'Search': 'Поиск', Search: "Поиск",
// Nav menu // Nav menu
'Add': 'Добавить', Add: "Добавить",
'By URIs': 'URL-адреса', "By URIs": "URL-адреса",
'By Torrents': 'Torrent-файлы', "By Torrents": "Torrent-файлы",
'By Metalinks': 'Metalink-файлы', "By Metalinks": "Metalink-файлы",
'Manage': 'Управление', Manage: "Управление",
'Pause All': 'Приостановить всё', "Pause All": "Приостановить всё",
'Resume Paused': 'Возобновить всё', "Resume Paused": "Возобновить всё",
'Purge Completed': 'Удалить завершенные', "Purge Completed": "Удалить завершенные",
'Settings': 'Настройки', Settings: "Настройки",
'Connection Settings': 'Настройки соединения', "Connection Settings": "Настройки соединения",
'Global Settings': 'Глобальные настройки', "Global Settings": "Глобальные настройки",
'Server info': 'Информация о сервере', "Server info": "Информация о сервере",
'About and contribute': 'Информация и сотрудничество', "About and contribute": "Информация и сотрудничество",
'Toggle navigation': 'Переключение навигации', "Toggle navigation": "Переключение навигации",
// body // body
// nav side bar // nav side bar
'Miscellaneous': 'Разное', Miscellaneous: "Разное",
'Global Statistics': 'Глобальная статистика', "Global Statistics": "Глобальная статистика",
'About': 'Об', About: "Об",
'Displaying': 'Показано', Displaying: "Показано",
'of': 'из', of: "из",
'downloads': 'загрузок', downloads: "загрузок",
'Language': 'Язык', Language: "Язык",
// download filters // download filters
'Download Filters': 'Фильтр загрузок', "Download Filters": "Фильтр загрузок",
'Running': 'Запущенные', Running: "Запущенные",
'Active': 'Активные', Active: "Активные",
'Waiting': 'Ожидающие', Waiting: "Ожидающие",
'Complete': 'Завершенные', Complete: "Завершенные",
'Error': 'С ошибками', Error: "С ошибками",
'Paused': 'Приостановленные', Paused: "Приостановленные",
'Removed': 'Удаленные', Removed: "Удаленные",
'Hide linked meta-data': 'Скрыть связанные метаданные', "Hide linked meta-data": "Скрыть связанные метаданные",
'Toggle': 'Переключить', Toggle: "Переключить",
'Reset filters': 'Сбросить фильтры', "Reset filters": "Сбросить фильтры",
// starred properties // starred properties
'Quick Access Settings': 'Настройки быстрого доступа', "Quick Access Settings": "Настройки быстрого доступа",
'Save settings': 'Сохранить настройки', "Save settings": "Сохранить настройки",
'Currently no download in line to display, use the': 'На данный момент ничего не загружается, используйте кнопку', "Currently no download in line to display, use the":
'download button to start downloading files!': 'чтобы начать загрузку файла!', "На данный момент ничего не загружается, используйте кнопку",
'Peers': 'Пиры', "download button to start downloading files!": "чтобы начать загрузку файла!",
'More Info': 'Информация', Peers: "Пиры",
'Remove': 'Удалить', "More Info": "Информация",
'# of': '# из', Remove: "Удалить",
'Length': 'Размер', "# of": "# из",
// modals Length: "Размер",
'Add Downloads By URIs': 'Добавить загрузки из URL-адресов', // modals
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.': "Add Downloads By URIs": "Добавить загрузки из URL-адресов",
'- Вы можете добавить несколько загрузок (файлов) одновременно, помещая URL-адреса для каждого файла на отдельной строке.', "- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.': "- Вы можете добавить несколько загрузок (файлов) одновременно, помещая URL-адреса для каждого файла на отдельной строке.",
'- Можно также добавить несколько URL-адресов (зеркал) для *одного* файла. Для этого отделите URL-адреса пробелом.', "- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '- URL-адрес может быть HTTP(S)/FTP/BitTorrent-Magnet.', "- Можно также добавить несколько URL-адресов (зеркал) для *одного* файла. Для этого отделите URL-адреса пробелом.",
'Download settings': 'Настройки загрузки', "- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.":
'Advanced settings': 'Расширенные настройки', "- URL-адрес может быть HTTP(S)/FTP/BitTorrent-Magnet.",
'Cancel': 'Отмена', "Download settings": "Настройки загрузки",
'Start': 'Начать', "Advanced settings": "Расширенные настройки",
'Choose': 'Выбрать', Cancel: "Отмена",
'Quick Access (shown on the main page)': 'Простой доступ (смотреть на главной странице)', Start: "Начать",
// add torrent modal Choose: "Выбрать",
'Add Downloads By Torrents': 'Добавить загрузку из Torrent-файлов', "Quick Access (shown on the main page)": "Простой доступ (смотреть на главной странице)",
'- Select the torrent from the local filesystem to start the download.': '- Выберите Torrent-файлы из локальной файловой системы для начала загрузку.', // add torrent modal
'- You can select multiple torrents to start multiple downloads.': '- Вы можете выбрать несколько Torrent-файлы для запуска нескольких загрузок.', "Add Downloads By Torrents": "Добавить загрузку из Torrent-файлов",
'- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.': '- Для добавления BitTorrent-Magnet ссылки воспользуйтесь пунктом меню *Добавить из URL-адреса*', "- Select the torrent from the local filesystem to start the download.":
'Select Torrents': 'Выберите торренты', "- Выберите Torrent-файлы из локальной файловой системы для начала загрузку.",
'Select a Torrent': 'Выберите торрент', "- You can select multiple torrents to start multiple downloads.":
// add metalink modal "- Вы можете выбрать несколько Torrent-файлы для запуска нескольких загрузок.",
'Add Downloads By Metalinks': 'Добавить загрузку из Metalink-файлов', "- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.":
'Select Metalinks': 'Выбрать Metalink-файлы', "- Для добавления BitTorrent-Magnet ссылки воспользуйтесь пунктом меню *Добавить из URL-адреса*",
'- Select the Metalink from the local filesystem to start the download.': '- Выберите Metalink-файлы из локальной файловой системы для начала загрузки', "Select Torrents": "Выберите торренты",
'- You can select multiple Metalinks to start multiple downloads.': '- Вы можете выбрать несколько Metalink-файлов для запуска нескольких загрузок.', "Select a Torrent": "Выберите торрент",
'Select a Metalink': 'Выберите Metalink', // add metalink modal
// select file modal "Add Downloads By Metalinks": "Добавить загрузку из Metalink-файлов",
'Choose files to start download for': 'Выберите файлы чтобы начать загрузку для', "Select Metalinks": "Выбрать Metalink-файлы",
'Select to download': 'Выберите для загрузки', "- Select the Metalink from the local filesystem to start the download.":
// settings modal "- Выберите Metalink-файлы из локальной файловой системы для начала загрузки",
'Aria2 RPC host and port': 'Aria2 RPC хост и порт', "- You can select multiple Metalinks to start multiple downloads.":
'Enter the host': 'Укажите хост', "- Вы можете выбрать несколько Metalink-файлов для запуска нескольких загрузок.",
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)': "Select a Metalink": "Выберите Metalink",
'Укажите IP или DNS-имя сервера, на котором запущена Aria2 со включенным RPC (по умолчанию: localhost)', // select file modal
'Enter the port': 'Укажите порт', "Choose files to start download for": "Выберите файлы чтобы начать загрузку для",
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)': "Select to download": "Выберите для загрузки",
'Укажите порт сервера, на котором запущена Aria2 со включенным RPC (по умолчанию: 6800)', // settings modal
'Enter the RPC path': 'Укажите путь RPC', "Aria2 RPC host and port": "Aria2 RPC хост и порт",
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'Укажите конечный путь для Aria2 RPC (по умолчанию: /jsonrpc)', "Enter the host": "Укажите хост",
'SSL/TLS encryption': 'SSL/TLS шифрование', "Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
'Enable SSL/TLS encryption': 'Разрешить SSL/TLS шифрование', "Укажите IP или DNS-имя сервера, на котором запущена Aria2 со включенным RPC (по умолчанию: localhost)",
'Enter the secret token (optional)': 'Укажите секретный токен (необязательно)', "Enter the port": "Укажите порт",
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)': "Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
'Укажите секретный токен Aria2 RPC (оставьте пустым, если авторизация не включена)', "Укажите порт сервера, на котором запущена Aria2 со включенным RPC (по умолчанию: 6800)",
'Enter the username (optional)': 'Укажите имя пользователя (необязательно)', "Enter the RPC path": "Укажите путь RPC",
'Enter the Aria2 RPC username (empty if authentication not enabled)': "Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
'Укажите имя пользователя Aria2 RPC (оставьте пустым, если авторизация не включена)', "Укажите конечный путь для Aria2 RPC (по умолчанию: /jsonrpc)",
'Enter the password (optional)': 'Укажите пароль (необязательно)', "SSL/TLS encryption": "SSL/TLS шифрование",
'Enter the Aria2 RPC password (empty if authentication not enabled)': 'Укажите пароль для Aria2 RPC (оставьте пустым, если авторизация не включена)', "Enable SSL/TLS encryption": "Разрешить SSL/TLS шифрование",
'Enter base URL (optional)': 'Укажите базовый URL-адрес (необязательно)', "Enter the secret token (optional)": "Укажите секретный токен (необязательно)",
'Direct Download': 'Прямая загрузка', "Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
'If supplied, links will be created to enable direct download from the Aria2 server.': "Укажите секретный токен Aria2 RPC (оставьте пустым, если авторизация не включена)",
'Ссылки (при наличии) будут созданы для загрузки непосредственно с сервера Aria2.', "Enter the username (optional)": "Укажите имя пользователя (необязательно)",
'(Requires appropriate webserver to be configured.)': '(Требуется соответствующий веб-сервер для настройки.)', "Enter the Aria2 RPC username (empty if authentication not enabled)":
'Save Connection configuration': 'Сохранить настройки соединения', "Укажите имя пользователя Aria2 RPC (оставьте пустым, если авторизация не включена)",
'Filter': 'Фильтр', "Enter the password (optional)": "Укажите пароль (необязательно)",
// server info modal "Enter the Aria2 RPC password (empty if authentication not enabled)":
'Aria2 server info': 'Информация о сервере Aria2', "Укажите пароль для Aria2 RPC (оставьте пустым, если авторизация не включена)",
'Aria2 Version': 'Версия Aria2', "Enter base URL (optional)": "Укажите базовый URL-адрес (необязательно)",
'Features Enabled': 'Имеющийся функционал', "Direct Download": "Прямая загрузка",
// about modal "If supplied, links will be created to enable direct download from the Aria2 server.":
'To download the latest version of the project, add issues or to contribute back, head on to': "Ссылки (при наличии) будут созданы для загрузки непосредственно с сервера Aria2.",
'Чтобы загрузить последнюю версию проекта, добавить вопросы или внести свой вклад, передите на', "(Requires appropriate webserver to be configured.)":
'Or you can open the latest version in the browser through': 'Или вы можете открыть последнюю версию в браузере через', "(Требуется соответствующий веб-сервер для настройки.)",
'Close': 'Закрыть', "Save Connection configuration": "Сохранить настройки соединения",
// lables Filter: "Фильтр",
'Download status':'Статус загрузки', // server info modal
'Download Speed':'Скорость загрузки', "Aria2 server info": "Информация о сервере Aria2",
'Upload Speed':'Скорость отдачи', "Aria2 Version": "Версия Aria2",
'Estimated time':'Оставшееся время', "Features Enabled": "Имеющийся функционал",
'Download Size':'Размер загрузки', // about modal
'Downloaded':'Загружено', "To download the latest version of the project, add issues or to contribute back, head on to":
'Progress':'Прогресс', "Чтобы загрузить последнюю версию проекта, добавить вопросы или внести свой вклад, передите на",
'Download Path':'Путь к загружаемым файлам', "Or you can open the latest version in the browser through":
'Uploaded':'Отдано', "Или вы можете открыть последнюю версию в браузере через",
'Download GID':'Загруженый GID', Close: "Закрыть",
'Number of Pieces':'Количество частей', // lables
'Piece Length': 'Размер частей', "Download status": "Статус загрузки",
'Shutdown Server': 'Выключить сервер', "Download Speed": "Скорость загрузки",
"Upload Speed": "Скорость отдачи",
"Estimated time": "Оставшееся время",
"Download Size": "Размер загрузки",
Downloaded: "Загружено",
Progress: "Прогресс",
"Download Path": "Путь к загружаемым файлам",
Uploaded: "Отдано",
"Download GID": "Загруженый GID",
"Number of Pieces": "Количество частей",
"Piece Length": "Размер частей",
"Shutdown Server": "Выключить сервер",
'The last connection attempt was unsuccessful. Trying another configuration': 'Последняя попытка подключения была неудачной. Попробуйте другую конфигурацию', "The last connection attempt was unsuccessful. Trying another configuration":
'Oh Snap!': 'Опаньки!', "Последняя попытка подключения была неудачной. Попробуйте другую конфигурацию",
'Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings': "Oh Snap!": "Опаньки!",
'Не удалось подключиться к серверу Aria2 RPC. Попытка будет повторена в течение 10 секунд. Вы можете проверить параметры подключения, перейдя в меню Настройки > Настройки соединения', "Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings":
'Successfully connected to Aria2 through its remote RPC …': 'Успешное подключение к Aria2 через удаленный RPC …', "Не удалось подключиться к серверу Aria2 RPC. Попытка будет повторена в течение 10 секунд. Вы можете проверить параметры подключения, перейдя в меню Настройки > Настройки соединения",
'Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)': "Successfully connected to Aria2 through its remote RPC …":
'Успешное подключение к Aria2 через удаленный RPC, однако соединение все еще небезопасно. Для обеспечения лучшей безопасности добавьте секретный токен авторизации при запуске aria2 (через флаг --rpc-secret)', "Успешное подключение к Aria2 через удаленный RPC …",
'Trying to connect to aria2 using the new connection configuration': "Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)":
'Попытка подключиться к aria2 с использованием новой конфигурации', "Успешное подключение к Aria2 через удаленный RPC, однако соединение все еще небезопасно. Для обеспечения лучшей безопасности добавьте секретный токен авторизации при запуске aria2 (через флаг --rpc-secret)",
"Trying to connect to aria2 using the new connection configuration":
"Попытка подключиться к aria2 с использованием новой конфигурации"
}; };

View File

@ -12,157 +12,150 @@
// 5. Browser determining preferred language automatically. // 5. Browser determining preferred language automatically.
// http://angular-translate.github.io/docs/en/#/guide/07_multi-language // http://angular-translate.github.io/docs/en/#/guide/07_multi-language
if(typeof translations == 'undefined'){ if (typeof translations == "undefined") {
translations = {}; translations = {};
} }
translations.en_US = { // replace en_US to ll_CC, examples: zh_CN, de_AT. translations.en_US = {
// header // replace en_US to ll_CC, examples: zh_CN, de_AT.
'Search': '', // header
Search: "",
// Nav menu // Nav menu
'Add': '', Add: "",
'By URIs': '', "By URIs": "",
'By Torrents': '', "By Torrents": "",
'By Metalinks': '', "By Metalinks": "",
'Manage': '', Manage: "",
'Pause All': '', "Pause All": "",
'Resume Paused': '', "Resume Paused": "",
'Purge Completed': '', "Purge Completed": "",
'Shutdown Server': '', "Shutdown Server": "",
'Settings': '', Settings: "",
'Connection Settings': '', "Connection Settings": "",
'Global Settings': '', "Global Settings": "",
'Server info': '', "Server info": "",
'About and contribute': '', "About and contribute": "",
'Toggle navigation': '', "Toggle navigation": "",
// body // body
// nav side bar // nav side bar
'Miscellaneous': '', Miscellaneous: "",
'Global Statistics': '', "Global Statistics": "",
'About': '', About: "",
'Displaying': '', Displaying: "",
'of': '', of: "",
'downloads': '', downloads: "",
'Language': '', Language: "",
// download filters // download filters
'Download Filters': '', "Download Filters": "",
'Running': '', Running: "",
'Active': '', Active: "",
'Waiting': '', Waiting: "",
'Complete': '', Complete: "",
'Error': '', Error: "",
'Paused': '', Paused: "",
'Removed': '', Removed: "",
'Hide linked meta-data': '', "Hide linked meta-data": "",
'Toggle': '', Toggle: "",
'Reset filters': '', "Reset filters": "",
// download status // download status
'Verifing': '', Verifing: "",
'Verify Pending': '', "Verify Pending": "",
// starred properties // starred properties
'Quick Access Settings': '', "Quick Access Settings": "",
'Save': '', Save: "",
'Save settings': '', "Save settings": "",
'Currently no download in line to display, use the': '', "Currently no download in line to display, use the": "",
'download button to start downloading files!': '', "download button to start downloading files!": "",
'Peers': '', Peers: "",
'More Info': '', "More Info": "",
'Remove': '', Remove: "",
'# of': '', "# of": "",
'Length': '', Length: "",
// modals // modals
'Add Downloads By URIs': '', "Add Downloads By URIs": "",
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.': "- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
'', "",
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.': "- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
'', "",
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '', "- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.": "",
'Download settings': '', "Download settings": "",
'Advanced settings': '', "Advanced settings": "",
'Cancel': '', Cancel: "",
'Start': '', Start: "",
'Choose': '', Choose: "",
'Quick Access (shown on the main page)': '', "Quick Access (shown on the main page)": "",
// add torrent modal // add torrent modal
'Add Downloads By Torrents': '', "Add Downloads By Torrents": "",
'- Select the torrent from the local filesystem to start the download.': '', "- Select the torrent from the local filesystem to start the download.": "",
'- You can select multiple torrents to start multiple downloads.': '', "- You can select multiple torrents to start multiple downloads.": "",
'- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.': '', "- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.": "",
'Select Torrents': '', "Select Torrents": "",
'Select a Torrent': '', "Select a Torrent": "",
// add metalink modal // add metalink modal
'Add Downloads By Metalinks': '', "Add Downloads By Metalinks": "",
'Select Metalinks': '', "Select Metalinks": "",
'- Select the Metalink from the local filesystem to start the download.': '', "- Select the Metalink from the local filesystem to start the download.": "",
'- You can select multiple Metalinks to start multiple downloads.': '', "- You can select multiple Metalinks to start multiple downloads.": "",
'Select a Metalink': '', "Select a Metalink": "",
// select file modal // select file modal
'Choose files to start download for': '', "Choose files to start download for": "",
'Select to download': '', "Select to download": "",
// settings modal // settings modal
'Aria2 RPC host and port': '', "Aria2 RPC host and port": "",
'Enter the host': '', "Enter the host": "",
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)': "Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
'', "",
'Enter the port': '', "Enter the port": "",
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)': "Enter the port of the server on which the RPC for Aria2 is running (default: 6800)": "",
'', "Enter the RPC path": "",
'Enter the RPC path': '', "Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)": "",
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': '', "SSL/TLS encryption": "",
'SSL/TLS encryption': '', "Enable SSL/TLS encryption": "",
'Enable SSL/TLS encryption': '', "Enter the secret token (optional)": "",
'Enter the secret token (optional)': '', "Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)": "",
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)': "Enter the username (optional)": "",
'', "Enter the Aria2 RPC username (empty if authentication not enabled)": "",
'Enter the username (optional)': '', "Enter the password (optional)": "",
'Enter the Aria2 RPC username (empty if authentication not enabled)': "Enter the Aria2 RPC password (empty if authentication not enabled)": "",
'', "Enter base URL (optional)": "",
'Enter the password (optional)': '', "Direct Download": "",
'Enter the Aria2 RPC password (empty if authentication not enabled)': '', "If supplied, links will be created to enable direct download from the Aria2 server.": "",
'Enter base URL (optional)': '', "(Requires appropriate webserver to be configured.)": "",
'Direct Download': '', "Save Connection configuration": "",
'If supplied, links will be created to enable direct download from the Aria2 server.': Filter: "",
'', // server info modal
'(Requires appropriate webserver to be configured.)': '', "Aria2 server info": "",
'Save Connection configuration': '', "Aria2 Version": "",
'Filter': '', "Features Enabled": "",
// server info modal // about modal
'Aria2 server info': '', "To download the latest version of the project, add issues or to contribute back, head on to": "",
'Aria2 Version': '', "Or you can open the latest version in the browser through": "",
'Features Enabled': '', Close: "",
// about modal // labels
'To download the latest version of the project, add issues or to contribute back, head on to': "Download status": "",
'', "Download Speed": "",
'Or you can open the latest version in the browser through': '', "Upload Speed": "",
'Close': '', "Estimated time": "",
// labels "Download Size": "",
'Download status':'', Downloaded: "",
'Download Speed':'', Progress: "",
'Upload Speed':'', "Download Path": "",
'Estimated time':'', Uploaded: "",
'Download Size':'', "Download GID": "",
'Downloaded':'', "Number of Pieces": "",
'Progress':'', "Piece Length": "",
'Download Path':'',
'Uploaded':'',
'Download GID':'',
'Number of Pieces':'',
'Piece Length':'',
//alerts //alerts
'The last connection attempt was unsuccessful. Trying another configuration': "The last connection attempt was unsuccessful. Trying another configuration": "",
'', "Oh Snap!": "",
'Oh Snap!': '', "Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings":
'Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings': "",
'', "Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings":
'Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings': "",
'', "Successfully connected to Aria2 through its remote RPC …": "",
'Successfully connected to Aria2 through its remote RPC …': "Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)":
'', "",
'Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)': "Trying to connect to aria2 using the new connection configuration": "",
'', // {{name}} refers to the download name, do not modify.
'Trying to connect to aria2 using the new connection configuration': "Remove {{name}} and associated meta-data?": ""
'',
'Remove {{name}} and associated meta-data?': // {{name}} refers to the download name, do not modify.
''
}; };

View File

@ -1,119 +1,117 @@
if(typeof translations == 'undefined'){ if (typeof translations == "undefined") {
translations = {}; translations = {};
} }
translations.th_TH = { translations.th_TH = {
// header // header
'Search': 'ค้นหา', Search: "ค้นหา",
// Nav menu // Nav menu
'Add': 'เพื่ม', Add: "เพื่ม",
'By URIs': 'ด้วยยูอาร์ไอ', "By URIs": "ด้วยยูอาร์ไอ",
'By Torrents': 'ด้วยทอร์เรนต์', "By Torrents": "ด้วยทอร์เรนต์",
'By Metalinks': 'ด้วยเมทาลิงค์', "By Metalinks": "ด้วยเมทาลิงค์",
'Manage': 'บริหาร', Manage: "บริหาร",
'Pause All': 'หยุดชั่วคราวหมด', "Pause All": "หยุดชั่วคราวหมด",
'Resume Paused': 'ไปต่อหมด', "Resume Paused": "ไปต่อหมด",
'Purge Completed': 'ลบอันเสร็จ', "Purge Completed": "ลบอันเสร็จ",
'Settings': 'ตั้งค่า', Settings: "ตั้งค่า",
'Connection Settings': 'ตั้งค่าเชื่อมต่อ', "Connection Settings": "ตั้งค่าเชื่อมต่อ",
'Global Settings': 'ตั้งค่าทั่วไป', "Global Settings": "ตั้งค่าทั่วไป",
'Server info': 'ข้อมูลเซอร์เวอร์', "Server info": "ข้อมูลเซอร์เวอร์",
'About and contribute': 'เกี่ยวกับและช่วย', "About and contribute": "เกี่ยวกับและช่วย",
'Toggle navigation': 'สลับนำทาง', "Toggle navigation": "สลับนำทาง",
'Language': 'ภาษา', Language: "ภาษา",
// body // body
// nav side bar // nav side bar
'Miscellaneous': 'เบ็ดเตล็ด', Miscellaneous: "เบ็ดเตล็ด",
'Global Statistics': 'สถิติทั่วไป', "Global Statistics": "สถิติทั่วไป",
'About': 'เกี่ยวกับ', About: "เกี่ยวกับ",
'Displaying': 'แแสดงดาวน์โหลด', Displaying: "แแสดงดาวน์โหลด",
'of': 'อันใน', of: "อันใน",
'downloads': 'อันทั้งหมด', downloads: "อันทั้งหมด",
// download filters // download filters
'Download Filters': 'กรองดาวน์โหลด', "Download Filters": "กรองดาวน์โหลด",
'Running': 'กำลังทำงาน', Running: "กำลังทำงาน",
'Active': 'ใช้งานอยู่', Active: "ใช้งานอยู่",
'Waiting': 'กำลังรอ', Waiting: "กำลังรอ",
'Complete': 'เสร็จ', Complete: "เสร็จ",
'Error': 'ผิดพลาด', Error: "ผิดพลาด",
'Paused': 'หยุดอยู่', Paused: "หยุดอยู่",
'Removed': 'ลบแล้ว', Removed: "ลบแล้ว",
'Hide linked meta-data': 'ซ่อนข้อมูลเมตาที่เชื่อมโยง', "Hide linked meta-data": "ซ่อนข้อมูลเมตาที่เชื่อมโยง",
'Toggle': 'สลับ', Toggle: "สลับ",
'Reset filters': 'รีเซตตัวกรอง', "Reset filters": "รีเซตตัวกรอง",
// starred properties // starred properties
'Quick Access Settings': 'ตั้งค่าอย่างรวดเร็ว', "Quick Access Settings": "ตั้งค่าอย่างรวดเร็ว",
'Save settings': 'บันทึกการตั้งค่า', "Save settings": "บันทึกการตั้งค่า",
'Currently no download in line to display, use the': 'ตอนนี้ไม่มีการดาวน์โหลดที่แสดงได้ ก็ใช้ปุ่ม', "Currently no download in line to display, use the":
'download button to start downloading files!': 'ให้เริ่มดาวน์โหลดไฟล์', "ตอนนี้ไม่มีการดาวน์โหลดที่แสดงได้ ก็ใช้ปุ่ม",
'Peers': 'พีร์ส', "download button to start downloading files!": "ให้เริ่มดาวน์โหลดไฟล์",
'More Info': 'ข้อมูลเพิ่ม', Peers: "พีร์ส",
'Remove': 'ลบ', "More Info": "ข้อมูลเพิ่ม",
'# of': 'จำนวน', Remove: "ลบ",
'Length': 'ความยาว', "# of": "จำนวน",
// modals Length: "ความยาว",
'Add Downloads By URIs': 'เพิ่มดาวน์โหลดด้วยยูอาร์ไอ', // modals
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.': "Add Downloads By URIs": "เพิ่มดาวน์โหลดด้วยยูอาร์ไอ",
'', "- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.': "",
'', "- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '', "",
'Download settings': 'ตั้งค่าการดาวน์โหลด', "- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.": "",
'Advanced settings': 'ตั้งค่าขั้นสูง', "Download settings": "ตั้งค่าการดาวน์โหลด",
'Cancel': 'ยกเลิก', "Advanced settings": "ตั้งค่าขั้นสูง",
'Start': 'เริ่มต้น', Cancel: "ยกเลิก",
'Choose': 'เลือก', Start: "เริ่มต้น",
'Quick Access (shown on the main page)': 'ใช้งานอย่างรวดเร็ว (แสดงที่เพจหลัก)', Choose: "เลือก",
// add torrent modal "Quick Access (shown on the main page)": "ใช้งานอย่างรวดเร็ว (แสดงที่เพจหลัก)",
'Add Downloads By Torrents': 'เพิ่มดาวน์โหลดด้วยทอร์เรนต์', // add torrent modal
'- Select the torrent from the local filesystem to start the download.': '', "Add Downloads By Torrents": "เพิ่มดาวน์โหลดด้วยทอร์เรนต์",
'- You can select multiple torrents to start multiple downloads.': '', "- Select the torrent from the local filesystem to start the download.": "",
'- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.': '', "- You can select multiple torrents to start multiple downloads.": "",
'Select Torrents': 'เลือกทอร์เรนต์', "- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.": "",
'Select a Torrent': 'เลือกทอร์เรนต์', "Select Torrents": "เลือกทอร์เรนต์",
// add metalink modal "Select a Torrent": "เลือกทอร์เรนต์",
'Add Downloads By Metalinks': 'เพิ่มดาวน์โหลดด้วยเมทาลิงค์', // add metalink modal
'Select Metalinks': 'เลือกเมทาลิงค์', "Add Downloads By Metalinks": "เพิ่มดาวน์โหลดด้วยเมทาลิงค์",
'- Select the Metalink from the local filesystem to start the download.': '', "Select Metalinks": "เลือกเมทาลิงค์",
'- You can select multiple Metalinks to start multiple downloads.': '', "- Select the Metalink from the local filesystem to start the download.": "",
'Select a Metalink': 'เลือกเมทาลิงค์', "- You can select multiple Metalinks to start multiple downloads.": "",
// select file modal "Select a Metalink": "เลือกเมทาลิงค์",
'Choose files to start download for': 'เลือกไฟล์ที่จะเริ่มดาวน์โหลด', // select file modal
'Select to download': 'เลือกให้ดาวน์โหลด', "Choose files to start download for": "เลือกไฟล์ที่จะเริ่มดาวน์โหลด",
// settings modal "Select to download": "เลือกให้ดาวน์โหลด",
'Aria2 RPC host and port': 'โฮสต์และพอร์ตของ Aria2 RPC', // settings modal
'Enter the host': 'ป้อนโฮสต์', "Aria2 RPC host and port": "โฮสต์และพอร์ตของ Aria2 RPC",
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)': "Enter the host": "ป้อนโฮสต์",
'', "Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
'Enter the port': 'ป้อนพอร์ต', "",
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)': "Enter the port": "ป้อนพอร์ต",
'', "Enter the port of the server on which the RPC for Aria2 is running (default: 6800)": "",
'Enter the RPC path': 'ป้อนเส้นทาง RPC', "Enter the RPC path": "ป้อนเส้นทาง RPC",
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': '', "Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)": "",
'SSL/TLS encryption': 'การเข้ารหัสลับ SSL/TLS', "SSL/TLS encryption": "การเข้ารหัสลับ SSL/TLS",
'Enable SSL/TLS encryption': 'เปิดใช้การเข้ารหัสลับ SSL/TLS', "Enable SSL/TLS encryption": "เปิดใช้การเข้ารหัสลับ SSL/TLS",
'Enter the secret token (optional)': 'ป้อนสัญลักษณ์ความลับ (เป็นตัวเลือก)', "Enter the secret token (optional)": "ป้อนสัญลักษณ์ความลับ (เป็นตัวเลือก)",
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)': "Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)": "",
'', "Enter the username (optional)": "ป้อนเชื่อ (เป็นตัวเลือก)",
'Enter the username (optional)': 'ป้อนเชื่อ (เป็นตัวเลือก)', "Enter the Aria2 RPC username (empty if authentication not enabled)": "",
'Enter the Aria2 RPC username (empty if authentication not enabled)': "Enter the password (optional)": "ป้อนรหัสผ่าน (เป็นตัวเลือก)",
'', "Enter the Aria2 RPC password (empty if authentication not enabled)": "",
'Enter the password (optional)': 'ป้อนรหัสผ่าน (เป็นตัวเลือก)', "Enter base URL (optional)": "ป้อน URL หลัก (เป็นตัวเลือก)",
'Enter the Aria2 RPC password (empty if authentication not enabled)': '', "Direct Download": "ดาวน์โหลดโดยตรง",
'Enter base URL (optional)': 'ป้อน URL หลัก (เป็นตัวเลือก)', "If supplied, links will be created to enable direct download from the Aria2 server.": "",
'Direct Download': 'ดาวน์โหลดโดยตรง', "(Requires appropriate webserver to be configured.)": "",
'If supplied, links will be created to enable direct download from the Aria2 server.': "Save Connection configuration": "บันทึกการตั้งค่าการเชื่อมต่อ",
'', Filter: "กรอง",
'(Requires appropriate webserver to be configured.)': '', // server info modal
'Save Connection configuration': 'บันทึกการตั้งค่าการเชื่อมต่อ', "Aria2 server info": "ข้อมูลเซอร์เวอร์ Aria2",
'Filter': 'กรอง', "Aria2 Version": "รุ่น Aria2",
// server info modal "Features Enabled": "คุณสมบัติที่เปิดใช้งาน",
'Aria2 server info': 'ข้อมูลเซอร์เวอร์ Aria2', // about modal
'Aria2 Version': 'รุ่น Aria2', "To download the latest version of the project, add issues or to contribute back, head on to":
'Features Enabled': 'คุณสมบัติที่เปิดใช้งาน', "ให้ดาวน์โหลดรุ่นสุดท้ายของโครงการ เพิ่มปัญหา หรือช่วยเหลือมีส่วนร่วม ไปสู่",
// about modal "Or you can open the latest version in the browser through":
'To download the latest version of the project, add issues or to contribute back, head on to': "หรือเปิดรุ่นสุดท้ายในเบราว์เซอร์โดยใช้",
'ให้ดาวน์โหลดรุ่นสุดท้ายของโครงการ เพิ่มปัญหา หรือช่วยเหลือมีส่วนร่วม ไปสู่', Close: "ปิด"
'Or you can open the latest version in the browser through': 'หรือเปิดรุ่นสุดท้ายในเบราว์เซอร์โดยใช้',
'Close': 'ปิด'
}; };

View File

@ -1,140 +1,156 @@
if(typeof translations == 'undefined'){ if (typeof translations == "undefined") {
translations = {}; translations = {};
} }
translations.tr_TR = { translations.tr_TR = {
// header // header
'Search': 'Arama', Search: "Arama",
// Nav menu // Nav menu
'Add': 'Ekle', Add: "Ekle",
'By URIs': 'URI ile', "By URIs": "URI ile",
'By Torrents': 'Torrent ile', "By Torrents": "Torrent ile",
'By Metalinks': 'Metalink ile', "By Metalinks": "Metalink ile",
'Manage': 'Yönet', Manage: "Yönet",
'Pause All': 'Hepsini Duraklat', "Pause All": "Hepsini Duraklat",
'Resume Paused': 'Devam Et', "Resume Paused": "Devam Et",
'Purge Completed': 'Temizleme Tamamlandı', "Purge Completed": "Temizleme Tamamlandı",
'Settings': 'Ayarlar', Settings: "Ayarlar",
'Connection Settings': 'Bağlantı Ayarları', "Connection Settings": "Bağlantı Ayarları",
'Global Settings': 'Genel Ayarlar', "Global Settings": "Genel Ayarlar",
'Server info': 'Sunucu bilgisi', "Server info": "Sunucu bilgisi",
'About and contribute': 'Hakkında ve katkıda bulunanlar', "About and contribute": "Hakkında ve katkıda bulunanlar",
'Toggle navigation': 'Gezinmeyi aç / kapat', "Toggle navigation": "Gezinmeyi aç / kapat",
// body // body
// nav side bar // nav side bar
'Miscellaneous': 'Çeşitli', Miscellaneous: "Çeşitli",
'Global Statistics': 'Genel İstatistikler', "Global Statistics": "Genel İstatistikler",
'About': 'Hakkında', About: "Hakkında",
'Displaying': 'Gösteriliyor', Displaying: "Gösteriliyor",
'of': ' / ', of: " / ",
'downloads': 'Indirme', downloads: "Indirme",
'Language': 'Dil', Language: "Dil",
// download filters // download filters
'Download Filters': 'İndirme Filtreleri', "Download Filters": "İndirme Filtreleri",
'Running': 'Çalışıyor', Running: "Çalışıyor",
'Active': 'Aktif', Active: "Aktif",
'Waiting': 'Bekliyor', Waiting: "Bekliyor",
'Complete': 'Tamamlandı', Complete: "Tamamlandı",
'Error': 'Hata', Error: "Hata",
'Paused': 'Duraklatıldı', Paused: "Duraklatıldı",
'Removed': 'Silindi', Removed: "Silindi",
'Hide linked meta-data': 'Bağlı meta verileri gizle', "Hide linked meta-data": "Bağlı meta verileri gizle",
'Toggle': 'aç/kapat', Toggle: "aç/kapat",
'Reset filters': 'Filtreleri sıfırla', "Reset filters": "Filtreleri sıfırla",
// starred properties // starred properties
'Quick Access Settings': 'Hızlı Erişim Ayarları', "Quick Access Settings": "Hızlı Erişim Ayarları",
'Save settings': 'Ayarları kaydet', "Save settings": "Ayarları kaydet",
'Currently no download in line to display, use the': 'Şu anda görüntülenebilecek bir indirme yok,', "Currently no download in line to display, use the":
'download button to start downloading files!': 'butonu aracılığı ile dosya indirebilirsiniz!', "Şu anda görüntülenebilecek bir indirme yok,",
'Peers': 'Peers', "download button to start downloading files!": "butonu aracılığı ile dosya indirebilirsiniz!",
'More Info': 'Daha fazla bilgi', Peers: "Peers",
'Remove': 'Kaldır', "More Info": "Daha fazla bilgi",
'# of': '# dan', Remove: "Kaldır",
'Length': 'Uzunluk', "# of": "# dan",
// modals Length: "Uzunluk",
'Add Downloads By URIs': 'URI kullanarak indirmelere ekle', // modals
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.': "Add Downloads By URIs": "URI kullanarak indirmelere ekle",
'- Ayrı bir satıra her dosya için URI koyarak aynı anda birden fazla dosya indirebilirsiniz.', "- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.': "- Ayrı bir satıra her dosya için URI koyarak aynı anda birden fazla dosya indirebilirsiniz.",
'- Aynı dosyalar için birden fazla URI (ayna) da ekleyebilirsiniz. Bunu yapmak için URIları bir boşlukla ayırın.', "- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '- Bir URI, HTTP(S)/FTP/BitTorrent-Magnet olabilir.', "- Aynı dosyalar için birden fazla URI (ayna) da ekleyebilirsiniz. Bunu yapmak için URIları bir boşlukla ayırın.",
'Download settings': 'İndirme ayarları', "- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.":
'Advanced settings': 'Gelişmiş Ayarlar', "- Bir URI, HTTP(S)/FTP/BitTorrent-Magnet olabilir.",
'Cancel': 'İptal et', "Download settings": "İndirme ayarları",
'Start': 'Başlat', "Advanced settings": "Gelişmiş Ayarlar",
'Choose': 'Seçiniz', Cancel: "İptal et",
'Quick Access (shown on the main page)': 'Hızlı Erişim (ana sayfada gösterilir)', Start: "Başlat",
// add torrent modal Choose: "Seçiniz",
'Add Downloads By Torrents': 'Torrent kullanarak indirmelere ekle', "Quick Access (shown on the main page)": "Hızlı Erişim (ana sayfada gösterilir)",
'- Select the torrent from the local filesystem to start the download.': '- İndirmeyi başlatmak için yerel dosya sisteminden torrenti seçin.', // add torrent modal
'- You can select multiple torrents to start multiple downloads.': '- Birden çok indirmeyi başlatmak için birden çok torrent seçebilirsiniz.', "Add Downloads By Torrents": "Torrent kullanarak indirmelere ekle",
'- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.': '- BitTorrent-Magnetli bir URL eklemek için, İstek Üzerine Ekle seçeneğini kullanın ve oraya ekleyin.', "- Select the torrent from the local filesystem to start the download.":
'Select Torrents': 'Torrentleri seçin', "- İndirmeyi başlatmak için yerel dosya sisteminden torrenti seçin.",
'Select a Torrent': 'Bir Torrent seçin', "- You can select multiple torrents to start multiple downloads.":
// add metalink modal "- Birden çok indirmeyi başlatmak için birden çok torrent seçebilirsiniz.",
'Add Downloads By Metalinks': 'Metalink kullanarak indirmelere ekle', "- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.":
'Select Metalinks': 'Metalinkleri seçin', "- BitTorrent-Magnetli bir URL eklemek için, İstek Üzerine Ekle seçeneğini kullanın ve oraya ekleyin.",
'- Select the Metalink from the local filesystem to start the download.': '- İndirmeyi başlatmak için yerel dosya sisteminden Metalinki seçin.', "Select Torrents": "Torrentleri seçin",
'- You can select multiple Metalinks to start multiple downloads.': '- Birden fazla yüklemeye başlamak için birden fazla Metalink seçebilirsiniz.', "Select a Torrent": "Bir Torrent seçin",
'Select a Metalink': 'Bir Metalink Seç', // add metalink modal
// select file modal "Add Downloads By Metalinks": "Metalink kullanarak indirmelere ekle",
'Choose files to start download for': 'Için indirmeye başlamak için dosyaları seçin', "Select Metalinks": "Metalinkleri seçin",
'Select to download': 'Indirmek için seçin', "- Select the Metalink from the local filesystem to start the download.":
// settings modal "- İndirmeyi başlatmak için yerel dosya sisteminden Metalinki seçin.",
'Aria2 RPC host and port': 'Aria2 RPC ana bilgisayar ve bağlantı noktası', "- You can select multiple Metalinks to start multiple downloads.":
'Enter the host': 'Ana bilgisayar(host) girin', "- Birden fazla yüklemeye başlamak için birden fazla Metalink seçebilirsiniz.",
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)': "Select a Metalink": "Bir Metalink Seç",
'Aria2 için RPC\'nin çalıştığı sunucunun IP veya DNS adını girin (varsayılan: localhost)', // select file modal
'Enter the port': 'Bağlantı noktasını gir', "Choose files to start download for": "Için indirmeye başlamak için dosyaları seçin",
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)': "Select to download": "Indirmek için seçin",
'Aria2 için RPC\'nin çalıştığı sunucunun bağlantı noktasını girin (varsayılan: 6800)', // settings modal
'Enter the RPC path': 'RPC yolunu girin', "Aria2 RPC host and port": "Aria2 RPC ana bilgisayar ve bağlantı noktası",
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'Aria2 RPC bitiş noktası için yolu girin (varsayılan: / jsonrpc)', "Enter the host": "Ana bilgisayar(host) girin",
'SSL/TLS encryption': 'SSL / TLS şifreleme', "Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
'Enable SSL/TLS encryption': 'SSL / TLS şifrelemeyi etkinleştir', "Aria2 için RPC'nin çalıştığı sunucunun IP veya DNS adını girin (varsayılan: localhost)",
'Enter the secret token (optional)': 'Gizli simge girin (isteğe bağlı)', "Enter the port": "Bağlantı noktasını gir",
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)': "Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
'Aria2 RPC gizli simgesini girin (kimlik doğrulama etkin değilse boş bırakın)', "Aria2 için RPC'nin çalıştığı sunucunun bağlantı noktasını girin (varsayılan: 6800)",
'Enter the username (optional)': 'Kullanıcı adını girin (isteğe bağlı)', "Enter the RPC path": "RPC yolunu girin",
'Enter the Aria2 RPC username (empty if authentication not enabled)': "Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
'Aria2 RPC kullanıcı adını girin (kimlik doğrulama etkin değilse boş bırakın)', "Aria2 RPC bitiş noktası için yolu girin (varsayılan: / jsonrpc)",
'Enter the password (optional)': 'Parolayı girin (isteğe bağlı)', "SSL/TLS encryption": "SSL / TLS şifreleme",
'Enter the Aria2 RPC password (empty if authentication not enabled)': 'Aria2 RPC şifresini girin (kimlik doğrulama etkin değilse boş bırakın)', "Enable SSL/TLS encryption": "SSL / TLS şifrelemeyi etkinleştir",
'Enter base URL (optional)': 'Temel URL\'yi girin (isteğe bağlı)', "Enter the secret token (optional)": "Gizli simge girin (isteğe bağlı)",
'Direct Download': 'Direkt indirme', "Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
'If supplied, links will be created to enable direct download from the Aria2 server.': "Aria2 RPC gizli simgesini girin (kimlik doğrulama etkin değilse boş bırakın)",
'Verilen, bağlantıları aria2 sunucudan doğrudan indirmeyi etkinleştirmek için oluşturulur.', "Enter the username (optional)": "Kullanıcı adını girin (isteğe bağlı)",
'(Requires appropriate webserver to be configured.)': '(Uygun web sunucusunun yapılandırılmasını gerektirir.)', "Enter the Aria2 RPC username (empty if authentication not enabled)":
'Save Connection configuration': 'Bağlantı yapılandırmasını kaydedin', "Aria2 RPC kullanıcı adını girin (kimlik doğrulama etkin değilse boş bırakın)",
'Filter':'Filtre', "Enter the password (optional)": "Parolayı girin (isteğe bağlı)",
// server info modal "Enter the Aria2 RPC password (empty if authentication not enabled)":
'Aria2 server info': 'Aria2 sunucu bilgisi', "Aria2 RPC şifresini girin (kimlik doğrulama etkin değilse boş bırakın)",
'Aria2 Version': 'Aria2 Sürümü', "Enter base URL (optional)": "Temel URL'yi girin (isteğe bağlı)",
'Features Enabled': 'Aşağıdaki Özellikler Etkin', "Direct Download": "Direkt indirme",
// about modal "If supplied, links will be created to enable direct download from the Aria2 server.":
'To download the latest version of the project, add issues or to contribute back, head on to': "Verilen, bağlantıları aria2 sunucudan doğrudan indirmeyi etkinleştirmek için oluşturulur.",
'Projenin en son sürümünü indirmek için sorun ekleyin veya katkıda bulunun;', "(Requires appropriate webserver to be configured.)":
'Or you can open the latest version in the browser through': 'Veya en son sürümü tarayıcınız aracılığıyla açabilirsiniz.', "(Uygun web sunucusunun yapılandırılmasını gerektirir.)",
'Close': 'Kapat', "Save Connection configuration": "Bağlantı yapılandırmasını kaydedin",
// lables Filter: "Filtre",
'Download status':'İndirme durumu', // server info modal
'Download Speed':'İndirme hızı', "Aria2 server info": "Aria2 sunucu bilgisi",
'Upload Speed':'Yükleme hızı', "Aria2 Version": "Aria2 Sürümü",
'Estimated time':'Tahmini süre', "Features Enabled": "Aşağıdaki Özellikler Etkin",
'Download Size':'İndirme Boyutu', // about modal
'Downloaded':'İndirildi', "To download the latest version of the project, add issues or to contribute back, head on to":
'Progress':'İlerleme', "Projenin en son sürümünü indirmek için sorun ekleyin veya katkıda bulunun;",
'Download Path':'İndirme Yolu', "Or you can open the latest version in the browser through":
'Uploaded':'Yüklendi', "Veya en son sürümü tarayıcınız aracılığıyla açabilirsiniz.",
'Download GID':'GID\'yi indirin', Close: "Kapat",
'Number of Pieces':'Parça sayısı', // lables
'Piece Length': 'Parça Uzunluğu', "Download status": "İndirme durumu",
'Shutdown Server': 'Sunucuyu Kapat', "Download Speed": "İndirme hızı",
"Upload Speed": "Yükleme hızı",
"Estimated time": "Tahmini süre",
"Download Size": "İndirme Boyutu",
Downloaded: "İndirildi",
Progress: "İlerleme",
"Download Path": "İndirme Yolu",
Uploaded: "Yüklendi",
"Download GID": "GID'yi indirin",
"Number of Pieces": "Parça sayısı",
"Piece Length": "Parça Uzunluğu",
"Shutdown Server": "Sunucuyu Kapat",
'The last connection attempt was unsuccessful. Trying another configuration': 'Son bağlantı girişimi başarısız oldu. Başka bir yapılandırma deneyin', "The last connection attempt was unsuccessful. Trying another configuration":
'Oh Snap!': 'HAydaaaaa!', "Son bağlantı girişimi başarısız oldu. Başka bir yapılandırma deneyin",
'Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings': 'Aria2 RPC sunucusuna bağlanılamadı. 10 saniye içinde tekrar deneyecek. Bağlantı ayarlarını, Ayarlar> Bağlantı Ayarları bölümüne giderek kontrol etmek isteyebilirsiniz.', "Oh Snap!": "HAydaaaaa!",
'Successfully connected to Aria2 through its remote RPC …': 'Uzak RPC aracılığıyla Aria2\'ye başarıyla bağlandı ...', "Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings":
'Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)': 'Uzak RPC aracılığıyla Aria2\'ye başarıyla bağlandı ancak bağlantı hala güvende değil. Tam güvenlik için, Aria2\'yi başlatırken (--rpc-secret bayrağını kullanın) ve bir yetkilendirme gizli simgesi eklemeyi deneyin.', "Aria2 RPC sunucusuna bağlanılamadı. 10 saniye içinde tekrar deneyecek. Bağlantı ayarlarını, Ayarlar> Bağlantı Ayarları bölümüne giderek kontrol etmek isteyebilirsiniz.",
'Trying to connect to aria2 using the new connection configuration': 'Yeni bağlantı yapılandırmasını kullanarak aria2\'ye bağlanmaya çalışılıyor', "Successfully connected to Aria2 through its remote RPC …":
"Uzak RPC aracılığıyla Aria2'ye başarıyla bağlandı ...",
"Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)":
"Uzak RPC aracılığıyla Aria2'ye başarıyla bağlandı ancak bağlantı hala güvende değil. Tam güvenlik için, Aria2'yi başlatırken (--rpc-secret bayrağını kullanın) ve bir yetkilendirme gizli simgesi eklemeyi deneyin.",
"Trying to connect to aria2 using the new connection configuration":
"Yeni bağlantı yapılandırmasını kullanarak aria2'ye bağlanmaya çalışılıyor"
}; };

View File

@ -1,154 +1,159 @@
if(typeof translations == 'undefined'){ if (typeof translations == "undefined") {
translations = {}; translations = {};
} }
translations.zh_CN = { translations.zh_CN = {
// header // header
'Search': '搜索', Search: "搜索",
// Nav menu // Nav menu
'Add': '添加', Add: "添加",
'By URIs': '使用链接', "By URIs": "使用链接",
'By Torrents': '使用种子', "By Torrents": "使用种子",
'By Metalinks': '使用 Metalink', "By Metalinks": "使用 Metalink",
'Manage': '管理', Manage: "管理",
'Pause All': '暂停所有', "Pause All": "暂停所有",
'Resume Paused': '恢复下载', "Resume Paused": "恢复下载",
'Purge Completed': '清除已完成', "Purge Completed": "清除已完成",
'Shutdown Server': '关闭服务器', "Shutdown Server": "关闭服务器",
'Settings': '设置', Settings: "设置",
'Connection Settings': '连接设置', "Connection Settings": "连接设置",
'Global Settings': '全局设置', "Global Settings": "全局设置",
'Server info': '服务器信息', "Server info": "服务器信息",
'About and contribute': '关于和捐助', "About and contribute": "关于和捐助",
'Toggle navigation': '切换导航', "Toggle navigation": "切换导航",
// body // body
// nav side bar // nav side bar
'Miscellaneous': '杂项', Miscellaneous: "杂项",
'Global Statistics': '全局统计', "Global Statistics": "全局统计",
'About': '关于', About: "关于",
'Displaying': '正在显示', Displaying: "正在显示",
'of': '/', of: "/",
'downloads': '下载', downloads: "下载",
'Language': '语言', Language: "语言",
// download filters // download filters
'Download Filters': '下载过滤器', "Download Filters": "下载过滤器",
'Running': '运行中', Running: "运行中",
'Active': '活动的', Active: "活动的",
'Waiting': '等待中', Waiting: "等待中",
'Complete': '已完成', Complete: "已完成",
'Error': '出错的', Error: "出错的",
'Paused': '已暂停', Paused: "已暂停",
'Removed': '已删除', Removed: "已删除",
'Hide linked meta-data': '隐藏连接的元数据', "Hide linked meta-data": "隐藏连接的元数据",
'Toggle': '反向选择', Toggle: "反向选择",
'Reset filters': '重置过滤器', "Reset filters": "重置过滤器",
// download status // download status
'Verifing': '正在验证', Verifing: "正在验证",
'Verify Pending': '等待验证', "Verify Pending": "等待验证",
// starred properties // starred properties
'Quick Access Settings': '快速访问设置', "Quick Access Settings": "快速访问设置",
'Save': '保存', Save: "保存",
'Save settings': '保存设置', "Save settings": "保存设置",
'Currently no download in line to display, use the': '当前没有可显示的下载项,使用', "Currently no download in line to display, use the": "当前没有可显示的下载项,使用",
'download button to start downloading files!': '按钮来开始下载!', "download button to start downloading files!": "按钮来开始下载!",
'Peers': 'Peers', Peers: "Peers",
'More Info': '更多信息', "More Info": "更多信息",
'Remove': '删除', Remove: "删除",
'# of': '块数', "# of": "块数",
'Length': '块大小', Length: "块大小",
// modals // modals
'Add Downloads By URIs': '使用链接下载', "Add Downloads By URIs": "使用链接下载",
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.': "- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
'- 你可以同时添加多个文件下载任务,每行下载一个文件;', "- 你可以同时添加多个文件下载任务,每行下载一个文件;",
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.': "- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
'- 你也可以给同一个下载任务添加多个镜像链接,写在一行并用空格分隔每条链接;', "- 你也可以给同一个下载任务添加多个镜像链接,写在一行并用空格分隔每条链接;",
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '- 链接可以是 HTTP(S)、FTP 和磁力链接。', "- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.": "- 链接可以是 HTTP(S)、FTP 和磁力链接。",
'Download settings': '下载设置', "Download settings": "下载设置",
'Advanced settings': '高级设置', "Advanced settings": "高级设置",
'Cancel': '取消', Cancel: "取消",
'Start': '开始', Start: "开始",
'Choose': '选择', Choose: "选择",
'Quick Access (shown on the main page)': '快速访问(在主页上显示)', "Quick Access (shown on the main page)": "快速访问(在主页上显示)",
// add torrent modal // add torrent modal
'Add Downloads By Torrents': '使用种子下载', "Add Downloads By Torrents": "使用种子下载",
'- Select the torrent from the local filesystem to start the download.': '- 从本地文件系统选择种子文件开始下载;', "- Select the torrent from the local filesystem to start the download.":
'- You can select multiple torrents to start multiple downloads.': '- 你可以同时选择多个种子来启动多个下载;', "- 从本地文件系统选择种子文件开始下载;",
'- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.': '- 如果要添加磁力链接,请使用添加链接的方式。', "- You can select multiple torrents to start multiple downloads.":
'Select Torrents': '选择种子文件', "- 你可以同时选择多个种子来启动多个下载;",
'Select a Torrent': '选择种子文件', "- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.":
// add metalink modal "- 如果要添加磁力链接,请使用添加链接的方式。",
'Add Downloads By Metalinks': '使用 Metalink 下载', "Select Torrents": "选择种子文件",
'Select Metalinks': '选择 Metalink 文件', "Select a Torrent": "选择种子文件",
'- Select the Metalink from the local filesystem to start the download.': '* 从本地文件系统选择 Metalink 文件开始下载;', // add metalink modal
'- You can select multiple Metalinks to start multiple downloads.': '* 你可以同时选择多个 Metalink 文件来启动多个下载。', "Add Downloads By Metalinks": "使用 Metalink 下载",
'Select a Metalink': '选择 Metalink 文件', "Select Metalinks": "选择 Metalink 文件",
// select file modal "- Select the Metalink from the local filesystem to start the download.":
'Choose files to start download for': '请选择要下载的文件', "* 从本地文件系统选择 Metalink 文件开始下载;",
'Select to download': '选择以下载', "- You can select multiple Metalinks to start multiple downloads.":
// settings modal "* 你可以同时选择多个 Metalink 文件来启动多个下载。",
'Aria2 RPC host and port': 'Aria2 RPC 主机和端口', "Select a Metalink": "选择 Metalink 文件",
'Enter the host': '主机', // select file modal
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)': "Choose files to start download for": "请选择要下载的文件",
'输入 Aria2 RPC 所在服务器的 IP 或域名默认localhost', "Select to download": "选择以下载",
'Enter the port': '端口', // settings modal
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)': "Aria2 RPC host and port": "Aria2 RPC 主机和端口",
'输入 Aria2 RPC 端口号默认6800', "Enter the host": "主机",
'Enter the RPC path': 'RPC 路径', "Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': '输入 Aria2 RPC 路径(默认:/jsonrpc', "输入 Aria2 RPC 所在服务器的 IP 或域名默认localhost",
'SSL/TLS encryption': 'SSL/TLS 加密', "Enter the port": "端口",
'Enable SSL/TLS encryption': '启用 SSL/TLS 加密', "Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
'Enter the secret token (optional)': '密码令牌(可选)', "输入 Aria2 RPC 端口号默认6800",
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)': "Enter the RPC path": "RPC 路径",
'输入 Aria2 RPC 密码令牌(如果未启用则留空)', "Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
'Enter the username (optional)': '用户名(可选)', "输入 Aria2 RPC 路径(默认:/jsonrpc",
'Enter the Aria2 RPC username (empty if authentication not enabled)': "SSL/TLS encryption": "SSL/TLS 加密",
'输入 Aria2 RPC 用户名(如果未启用身份验证则留空)', "Enable SSL/TLS encryption": "启用 SSL/TLS 加密",
'Enter the password (optional)': '密码(可选)', "Enter the secret token (optional)": "密码令牌(可选)",
'Enter the Aria2 RPC password (empty if authentication not enabled)': '输入 Aria2 RPC 密码(如果未启用身份验证则留空)', "Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
'Enter base URL (optional)': '基本链接地址(可选)', "输入 Aria2 RPC 密码令牌(如果未启用则留空)",
'Direct Download': '直接下载', "Enter the username (optional)": "用户名(可选)",
'If supplied, links will be created to enable direct download from the Aria2 server.': "Enter the Aria2 RPC username (empty if authentication not enabled)":
'如果指定该选项,将会创建可以直接从 Aria2 服务器上下载文件的链接。', "输入 Aria2 RPC 用户名(如果未启用身份验证则留空)",
'(Requires appropriate webserver to be configured.)': '(需要 WEB 服务器配置正确)', "Enter the password (optional)": "密码(可选)",
'Save Connection configuration': '保存连接配置', "Enter the Aria2 RPC password (empty if authentication not enabled)":
'Filter':'过滤', "输入 Aria2 RPC 密码(如果未启用身份验证则留空)",
// server info modal "Enter base URL (optional)": "基本链接地址(可选)",
'Aria2 server info': 'Aria2 服务器信息', "Direct Download": "直接下载",
'Aria2 Version': 'Aria2 版本', "If supplied, links will be created to enable direct download from the Aria2 server.":
'Features Enabled': '已启用功能', "如果指定该选项,将会创建可以直接从 Aria2 服务器上下载文件的链接。",
// about modal "(Requires appropriate webserver to be configured.)": "(需要 WEB 服务器配置正确)",
'To download the latest version of the project, add issues or to contribute back, head on to': "Save Connection configuration": "保存连接配置",
'下载最新版本、提交问题或捐助,请访问', Filter: "过滤",
'Or you can open the latest version in the browser through': '直接在浏览器中使用最新版本,请访问', // server info modal
'Close': '关闭', "Aria2 server info": "Aria2 服务器信息",
// labels "Aria2 Version": "Aria2 版本",
'Download status':'当前下载状态', "Features Enabled": "已启用功能",
'Download Speed':'当前下载速度', // about modal
'Upload Speed':'当前上传速度', "To download the latest version of the project, add issues or to contribute back, head on to":
'Estimated time':'预计剩余时间', "下载最新版本、提交问题或捐助,请访问",
'Download Size':'下载总大小', "Or you can open the latest version in the browser through": "直接在浏览器中使用最新版本,请访问",
'Downloaded':'已下载大小', Close: "关闭",
'Progress':'当前下载进度', // labels
'Download Path':'文件下载路径', "Download status": "当前下载状态",
'Uploaded':'已上传大小', "Download Speed": "当前下载速度",
'Download GID':'下载的 GID', "Upload Speed": "当前上传速度",
'Number of Pieces':'文件块数量', "Estimated time": "预计剩余时间",
'Piece Length':'每块大小', "Download Size": "下载总大小",
Downloaded: "已下载大小",
Progress: "当前下载进度",
"Download Path": "文件下载路径",
Uploaded: "已上传大小",
"Download GID": "下载的 GID",
"Number of Pieces": "文件块数量",
"Piece Length": "每块大小",
//alerts //alerts
'The last connection attempt was unsuccessful. Trying another configuration': "The last connection attempt was unsuccessful. Trying another configuration":
'上次连接请求未成功,正在尝试使用另一个配置', "上次连接请求未成功,正在尝试使用另一个配置",
'Oh Snap!': '糟糕!', "Oh Snap!": "糟糕!",
'Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings': "Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings":
'无法连接到 Aria2 RPC 服务器将在10秒后重试。您可能需要检查连接设置请前往 设置 > 连接设置', "无法连接到 Aria2 RPC 服务器将在10秒后重试。您可能需要检查连接设置请前往 设置 > 连接设置",
'Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings': "Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings":
'连接到 Aria2 RPC 服务器时认证失败将在10秒后重试。您可能需要确认您的身份验证信息请前往 设置 > 连接设置', "连接到 Aria2 RPC 服务器时认证失败将在10秒后重试。您可能需要确认您的身份验证信息请前往 设置 > 连接设置",
'Successfully connected to Aria2 through its remote RPC …': "Successfully connected to Aria2 through its remote RPC …": "通过 RPC 连接到 Aria2 成功!",
'通过 RPC 连接到 Aria2 成功!', "Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)":
'Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)': "通过 RPC 连接到 Aria2 成功,但是连接并不安全。要想使用安全连接,尝试在启动 Aria2 时添加一个授权密码令牌(通过 --rpc-secret 参数)",
'通过 RPC 连接到 Aria2 成功,但是连接并不安全。要想使用安全连接,尝试在启动 Aria2 时添加一个授权密码令牌(通过 --rpc-secret 参数)', "Trying to connect to aria2 using the new connection configuration":
'Trying to connect to aria2 using the new connection configuration': "正在尝试使用新的连接配置来连接到 Aria2 ……",
'正在尝试使用新的连接配置来连接到 Aria2 ……', "Remove {{name}} and associated meta-data?": "是否删除 {{name}} 和关联的元数据?"
'Remove {{name}} and associated meta-data?':
'是否删除 {{name}} 和关联的元数据?'
}; };

View File

@ -1,154 +1,159 @@
if(typeof translations == 'undefined'){ if (typeof translations == "undefined") {
translations = {}; translations = {};
} }
translations.zh_TW = { translations.zh_TW = {
// header // header
'Search': '搜尋', Search: "搜尋",
// Nav menu // Nav menu
'Add': '新增', Add: "新增",
'By URIs': '使用連結', "By URIs": "使用連結",
'By Torrents': '使用種子', "By Torrents": "使用種子",
'By Metalinks': '使用 Metalink', "By Metalinks": "使用 Metalink",
'Manage': '管理', Manage: "管理",
'Pause All': '暫停所有', "Pause All": "暫停所有",
'Resume Paused': '恢復下載', "Resume Paused": "恢復下載",
'Purge Completed': '清除已完成', "Purge Completed": "清除已完成",
'Shutdown Server': '關閉伺服器', "Shutdown Server": "關閉伺服器",
'Settings': '設定', Settings: "設定",
'Connection Settings': '連線設定', "Connection Settings": "連線設定",
'Global Settings': '全域性設定', "Global Settings": "全域性設定",
'Server info': '伺服器資訊', "Server info": "伺服器資訊",
'About and contribute': '關於和捐助', "About and contribute": "關於和捐助",
'Toggle navigation': '切換導航', "Toggle navigation": "切換導航",
// body // body
// nav side bar // nav side bar
'Miscellaneous': '雜項', Miscellaneous: "雜項",
'Global Statistics': '全域性統計', "Global Statistics": "全域性統計",
'About': '關於', About: "關於",
'Displaying': '正在顯示', Displaying: "正在顯示",
'of': '/', of: "/",
'downloads': '下載', downloads: "下載",
'Language': '語言', Language: "語言",
// download filters // download filters
'Download Filters': '下載過濾器', "Download Filters": "下載過濾器",
'Running': '執行中', Running: "執行中",
'Active': '活動的', Active: "活動的",
'Waiting': '等待中', Waiting: "等待中",
'Complete': '已完成', Complete: "已完成",
'Error': '出錯的', Error: "出錯的",
'Paused': '已暫停', Paused: "已暫停",
'Removed': '已刪除', Removed: "已刪除",
'Hide linked meta-data': '隱藏連線的元資料', "Hide linked meta-data": "隱藏連線的元資料",
'Toggle': '反向選擇', Toggle: "反向選擇",
'Reset filters': '重置過濾器', "Reset filters": "重置過濾器",
// download status // download status
'Verifing': '正在驗證', Verifing: "正在驗證",
'Verify Pending': '等待驗證', "Verify Pending": "等待驗證",
// starred properties // starred properties
'Quick Access Settings': '快速訪問設定', "Quick Access Settings": "快速訪問設定",
'Save': '儲存', Save: "儲存",
'Save settings': '儲存設定', "Save settings": "儲存設定",
'Currently no download in line to display, use the': '當前沒有可顯示的下載項,使用', "Currently no download in line to display, use the": "當前沒有可顯示的下載項,使用",
'download button to start downloading files!': '按鈕來開始下載!', "download button to start downloading files!": "按鈕來開始下載!",
'Peers': 'Peers', Peers: "Peers",
'More Info': '更多資訊', "More Info": "更多資訊",
'Remove': '刪除', Remove: "刪除",
'# of': '塊數', "# of": "塊數",
'Length': '塊大小', Length: "塊大小",
// modals // modals
'Add Downloads By URIs': '使用連結下載', "Add Downloads By URIs": "使用連結下載",
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.': "- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
'- 你可以同時新增多個檔案下載任務,每行下載一個檔案;', "- 你可以同時新增多個檔案下載任務,每行下載一個檔案;",
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.': "- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
'- 你也可以給同一個下載任務新增多個映象連結,寫在一行並用空格分隔每條連結;', "- 你也可以給同一個下載任務新增多個映象連結,寫在一行並用空格分隔每條連結;",
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '- 連結可以是 HTTP(S)、FTP 和磁力連結。', "- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.": "- 連結可以是 HTTP(S)、FTP 和磁力連結。",
'Download settings': '下載設定', "Download settings": "下載設定",
'Advanced settings': '高階設定', "Advanced settings": "高階設定",
'Cancel': '取消', Cancel: "取消",
'Start': '開始', Start: "開始",
'Choose': '選擇', Choose: "選擇",
'Quick Access (shown on the main page)': '快速訪問(在主頁上顯示)', "Quick Access (shown on the main page)": "快速訪問(在主頁上顯示)",
// add torrent modal // add torrent modal
'Add Downloads By Torrents': '使用種子下載', "Add Downloads By Torrents": "使用種子下載",
'- Select the torrent from the local filesystem to start the download.': '- 從本地檔案系統選擇種子檔案開始下載;', "- Select the torrent from the local filesystem to start the download.":
'- You can select multiple torrents to start multiple downloads.': '- 你可以同時選擇多個種子來啟動多個下載;', "- 從本地檔案系統選擇種子檔案開始下載;",
'- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.': '- 如果要新增磁力連結,請使用新增連結的方式。', "- You can select multiple torrents to start multiple downloads.":
'Select Torrents': '選擇種子檔案', "- 你可以同時選擇多個種子來啟動多個下載;",
'Select a Torrent': '選擇種子檔案', "- To add a BitTorrent-Magnet URL, use the Add By URI option and add it there.":
// add metalink modal "- 如果要新增磁力連結,請使用新增連結的方式。",
'Add Downloads By Metalinks': '使用 Metalink 下載', "Select Torrents": "選擇種子檔案",
'Select Metalinks': '選擇 Metalink 檔案', "Select a Torrent": "選擇種子檔案",
'- Select the Metalink from the local filesystem to start the download.': '* 從本地檔案系統選擇 Metalink 檔案開始下載;', // add metalink modal
'- You can select multiple Metalinks to start multiple downloads.': '* 你可以同時選擇多個 Metalink 檔案來啟動多個下載。', "Add Downloads By Metalinks": "使用 Metalink 下載",
'Select a Metalink': '選擇 Metalink 檔案', "Select Metalinks": "選擇 Metalink 檔案",
// select file modal "- Select the Metalink from the local filesystem to start the download.":
'Choose files to start download for': '請選擇要下載的檔案', "* 從本地檔案系統選擇 Metalink 檔案開始下載;",
'Select to download': '選擇以下載', "- You can select multiple Metalinks to start multiple downloads.":
// settings modal "* 你可以同時選擇多個 Metalink 檔案來啟動多個下載。",
'Aria2 RPC host and port': 'Aria2 RPC 主機和埠', "Select a Metalink": "選擇 Metalink 檔案",
'Enter the host': '主機', // select file modal
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)': "Choose files to start download for": "請選擇要下載的檔案",
'輸入 Aria2 RPC 所在伺服器的 IP 或域名預設localhost', "Select to download": "選擇以下載",
'Enter the port': '埠號', // settings modal
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)': "Aria2 RPC host and port": "Aria2 RPC 主機和埠",
'輸入 Aria2 RPC 埠號預設6800', "Enter the host": "主機",
'Enter the RPC path': 'RPC 路徑', "Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': '輸入 Aria2 RPC 路徑(預設:/jsonrpc', "輸入 Aria2 RPC 所在伺服器的 IP 或域名預設localhost",
'SSL/TLS encryption': 'SSL/TLS 加密', "Enter the port": "埠號",
'Enable SSL/TLS encryption': '啟用 SSL/TLS 加密', "Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
'Enter the secret token (optional)': '密碼令牌(可選)', "輸入 Aria2 RPC 埠號預設6800",
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)': "Enter the RPC path": "RPC 路徑",
'輸入 Aria2 RPC 密碼令牌(如果未啟用則留空)', "Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
'Enter the username (optional)': '使用者名稱(可選)', "輸入 Aria2 RPC 路徑(預設:/jsonrpc",
'Enter the Aria2 RPC username (empty if authentication not enabled)': "SSL/TLS encryption": "SSL/TLS 加密",
'輸入 Aria2 RPC 使用者名稱(如果未啟用身份驗證則留空)', "Enable SSL/TLS encryption": "啟用 SSL/TLS 加密",
'Enter the password (optional)': '密碼(可選)', "Enter the secret token (optional)": "密碼令牌(可選)",
'Enter the Aria2 RPC password (empty if authentication not enabled)': '輸入 Aria2 RPC 密碼(如果未啟用身份驗證則留空)', "Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
'Enter base URL (optional)': '基本連結地址(可選)', "輸入 Aria2 RPC 密碼令牌(如果未啟用則留空)",
'Direct Download': '直接下載', "Enter the username (optional)": "使用者名稱(可選)",
'If supplied, links will be created to enable direct download from the Aria2 server.': "Enter the Aria2 RPC username (empty if authentication not enabled)":
'如果指定該選項,將會建立可以直接從 Aria2 伺服器上下載檔案的連結。', "輸入 Aria2 RPC 使用者名稱(如果未啟用身份驗證則留空)",
'(Requires appropriate webserver to be configured.)': '(需要 WEB 伺服器配置正確)', "Enter the password (optional)": "密碼(可選)",
'Save Connection configuration': '儲存連線配置', "Enter the Aria2 RPC password (empty if authentication not enabled)":
'Filter':'過濾', "輸入 Aria2 RPC 密碼(如果未啟用身份驗證則留空)",
// server info modal "Enter base URL (optional)": "基本連結地址(可選)",
'Aria2 server info': 'Aria2 伺服器資訊', "Direct Download": "直接下載",
'Aria2 Version': 'Aria2 版本', "If supplied, links will be created to enable direct download from the Aria2 server.":
'Features Enabled': '已啟用功能', "如果指定該選項,將會建立可以直接從 Aria2 伺服器上下載檔案的連結。",
// about modal "(Requires appropriate webserver to be configured.)": "(需要 WEB 伺服器配置正確)",
'To download the latest version of the project, add issues or to contribute back, head on to': "Save Connection configuration": "儲存連線配置",
'下載最新版本、提交問題或捐助,請訪問', Filter: "過濾",
'Or you can open the latest version in the browser through': '直接在瀏覽器中使用最新版本,請訪問', // server info modal
'Close': '關閉', "Aria2 server info": "Aria2 伺服器資訊",
// labels "Aria2 Version": "Aria2 版本",
'Download status':'當前下載狀態', "Features Enabled": "已啟用功能",
'Download Speed':'當前下載速度', // about modal
'Upload Speed':'當前上傳速度', "To download the latest version of the project, add issues or to contribute back, head on to":
'Estimated time':'預計剩餘時間', "下載最新版本、提交問題或捐助,請訪問",
'Download Size':'下載總大小', "Or you can open the latest version in the browser through": "直接在瀏覽器中使用最新版本,請訪問",
'Downloaded':'已下載大小', Close: "關閉",
'Progress':'當前下載進度', // labels
'Download Path':'檔案下載路徑', "Download status": "當前下載狀態",
'Uploaded':'已上傳大小', "Download Speed": "當前下載速度",
'Download GID':'下載的 GID', "Upload Speed": "當前上傳速度",
'Number of Pieces':'檔案塊數量', "Estimated time": "預計剩餘時間",
'Piece Length':'每塊大小', "Download Size": "下載總大小",
Downloaded: "已下載大小",
Progress: "當前下載進度",
"Download Path": "檔案下載路徑",
Uploaded: "已上傳大小",
"Download GID": "下載的 GID",
"Number of Pieces": "檔案塊數量",
"Piece Length": "每塊大小",
//alerts //alerts
'The last connection attempt was unsuccessful. Trying another configuration': "The last connection attempt was unsuccessful. Trying another configuration":
'上次連線請求未成功,正在嘗試使用另一個配置', "上次連線請求未成功,正在嘗試使用另一個配置",
'Oh Snap!': '糟糕!', "Oh Snap!": "糟糕!",
'Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings': "Could not connect to the aria2 RPC server. Will retry in 10 secs. You might want to check the connection settings by going to Settings > Connection Settings":
'無法連線到 Aria2 RPC 伺服器將在10秒後重試。您可能需要檢查連線設定請前往 設定 > 連線設定', "無法連線到 Aria2 RPC 伺服器將在10秒後重試。您可能需要檢查連線設定請前往 設定 > 連線設定",
'Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings': "Authentication failed while connecting to Aria2 RPC server. Will retry in 10 secs. You might want to confirm your authentication details by going to Settings > Connection Settings":
'連線到 Aria2 RPC 伺服器時認證失敗將在10秒後重試。您可能需要確認您的身份驗證資訊請前往 設定 > 連線設定', "連線到 Aria2 RPC 伺服器時認證失敗將在10秒後重試。您可能需要確認您的身份驗證資訊請前往 設定 > 連線設定",
'Successfully connected to Aria2 through its remote RPC …': "Successfully connected to Aria2 through its remote RPC …": "通過 RPC 連線到 Aria2 成功!",
'通過 RPC 連線到 Aria2 成功!', "Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)":
'Successfully connected to Aria2 through remote RPC, however the connection is still insecure. For complete security try adding an authorization secret token while starting Aria2 (through the flag --rpc-secret)': "通過 RPC 連線到 Aria2 成功,但是連線並不安全。要想使用安全連線,嘗試在啟動 Aria2 時新增一個授權密碼令牌(通過 --rpc-secret 引數)",
'通過 RPC 連線到 Aria2 成功,但是連線並不安全。要想使用安全連線,嘗試在啟動 Aria2 時新增一個授權密碼令牌(通過 --rpc-secret 引數)', "Trying to connect to aria2 using the new connection configuration":
'Trying to connect to aria2 using the new connection configuration': "正在嘗試使用新的連線配置來連線到 Aria2 ……",
'正在嘗試使用新的連線配置來連線到 Aria2 ……', "Remove {{name}} and associated meta-data?": "是否刪除 {{name}} 和關聯的元資料?"
'Remove {{name}} and associated meta-data?':
'是否刪除 {{name}} 和關聯的元資料?'
}; };

View File

@ -1,46 +1,54 @@
var http = require("http"), var http = require("http"),
url = require("url"), url = require("url"),
path = require("path"), path = require("path"),
fs = require("fs") fs = require("fs");
port = process.argv[2] || 8888; port = process.argv[2] || 8888;
http.createServer(function(request, response) { http
.createServer(function(request, response) {
var uri = url.parse(request.url).pathname, var uri = url.parse(request.url).pathname,
filename = path.join(process.cwd(), uri); filename = path.join(process.cwd(), uri);
var extname = path.extname(filename); var extname = path.extname(filename);
var contentType = 'text/html'; var contentType = "text/html";
switch (extname) { switch (extname) {
case '.js': contentType = 'text/javascript'; break; case ".js":
case '.css': contentType = 'text/css'; break; contentType = "text/javascript";
case '.ico': contentType = 'image/x-icon'; break; break;
case '.svg': contentType = 'image/svg+xml'; break; case ".css":
contentType = "text/css";
break;
case ".ico":
contentType = "image/x-icon";
break;
case ".svg":
contentType = "image/svg+xml";
break;
} }
fs.exists(filename, function(exists) { fs.exists(filename, function(exists) {
if(!exists) { if (!exists) {
response.writeHead(404, {"Content-Type": "text/plain"}); response.writeHead(404, { "Content-Type": "text/plain" });
response.write("404 Not Found\n"); response.write("404 Not Found\n");
response.end(); response.end();
return; return;
} }
if (fs.statSync(filename).isDirectory()) filename += '/index.html'; if (fs.statSync(filename).isDirectory()) filename += "/index.html";
fs.readFile(filename, "binary", function(err, file) { fs.readFile(filename, "binary", function(err, file) {
if(err) { if (err) {
response.writeHead(500, {"Content-Type": "text/plain"}); response.writeHead(500, { "Content-Type": "text/plain" });
response.write(err + "\n"); response.write(err + "\n");
response.end(); response.end();
return; return;
} }
response.writeHead(200, {'Content-Type': contentType}); response.writeHead(200, { "Content-Type": contentType });
response.write(file, "binary"); response.write(file, "binary");
response.end(); response.end();
}); });
}); });
}).listen(parseInt(port, 10)); })
.listen(parseInt(port, 10));
console.log("WebUI Aria2 Server is running on http://localhost:" + port ); console.log("WebUI Aria2 Server is running on http://localhost:" + port);