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,46 +1,55 @@
angular
.module('webui.services.configuration', [])
.constant('$name', 'Aria2 WebUI') // name used across the entire UI
.constant('$titlePattern', 'active: {active} - waiting: {waiting} - stopped: {stopped} — {name}')
.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
host: location.protocol.startsWith('http') ? location.hostname : 'localhost',
path: '/jsonrpc',
port: 6800,
encrypt: false,
auth: { // either add the token field or the user and pass field, not both.
// token: '$YOUR_SECRET_TOKEN$'
/*-----------------------------*/
// user: '*YOUR_USERNAME*',
// 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
})
.constant('$enable', {
.module("webui.services.configuration", [])
.constant("$name", "Aria2 WebUI") // name used across the entire UI
.constant("$titlePattern", "active: {active} - waiting: {waiting} - stopped: {stopped} — {name}")
.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
host: location.protocol.startsWith("http") ? location.hostname : "localhost",
path: "/jsonrpc",
port: 6800,
encrypt: false,
auth: {
// either add the token field or the user and pass field, not both.
// token: '$YOUR_SECRET_TOKEN$'
/*-----------------------------*/
// user: '*YOUR_USERNAME*',
// 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
})
.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
show: true, // set to false to completely hide the sidebar. Other elements inside will be automatically hidden
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
stats: true, // set to false to hide the global statistic section (contains the speed graph for now)
filters: true, // set to false to hide the Download Filters
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
// go to Global Settings dialog to see their description
'dir', 'conf-path', '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
'header', 'http-user', 'http-passwd', 'pause', 'dir', 'max-connection-per-server'
])
.constant('$globalTimeout', 1000) // interval to update the individual downloads
;
stats: true, // set to false to hide the global statistic section (contains the speed graph for now)
filters: true, // set to false to hide the Download Filters
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
// go to Global Settings dialog to see their description
"dir",
"conf-path",
"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
"header",
"http-user",
"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;
}
.active-download, .waiting-download, .stopped-download, .download {
.active-download,
.waiting-download,
.stopped-download,
.download {
cursor: pointer;
width: 100%;
padding: 4px 5px;
background-color: #fff;
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 */
@media (max-width: 767px) {
.active-download, .waiting-download, .stopped-download, .download {
.active-download,
.waiting-download,
.stopped-download,
.download {
table-layout: fixed;
}
}
.download-graph {
margin: .5em 30px .5em 0;
margin: 0.5em 30px 0.5em 0;
}
@media (min-width: 1200px) {

View File

@ -45,4 +45,4 @@
.selectFiles div.recursivedir {
width: 100%;
}
}

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 {
font-family: 'Lato', sans-serif;
font-family: "Lato", sans-serif;
overflow-y: scroll;
background-color: #f5f5f5;
padding-bottom: 5em;
}
input[type=checkbox], input[type=radio] {
input[type="checkbox"],
input[type="radio"] {
vertical-align: middle;
position: relative;
}
@ -21,8 +22,10 @@ input[type=checkbox], input[type=radio] {
background-color: #428bca;
}
.label-active, .badge-active, .progress-active .bar {
background-color: #62C462;
.label-active,
.badge-active,
.progress-active .bar {
background-color: #62c462;
}
.progress-success .bar {
@ -81,8 +84,8 @@ input[type=checkbox], input[type=radio] {
.main-navbar {
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.1);
background-color: #00897B;
border-color: #00897B;
background-color: #00897b;
border-color: #00897b;
}
.main-navbar .navbar-brand {
@ -110,7 +113,8 @@ input[type=checkbox], input[type=radio] {
margin-bottom: 30px;
background-color: #fff;
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 {
@ -121,6 +125,6 @@ input[type=checkbox], input[type=radio] {
.filter-input-group > .clear-button {
position: absolute;
right: 25px;
top: 6px;
top: 6px;
cursor: pointer;
}
}

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@ var parseFiles = function(files, cb) {
var txts = [];
var onload = function(res) {
var txt = res.target.result;
txts.push(txt.split(',')[1]);
txts.push(txt.split(",")[1]);
cnt--;
if (!cnt) {
cb(txts);
@ -11,13 +11,13 @@ var parseFiles = function(files, cb) {
};
_.each(files, function(file) {
cnt++;
console.log('starting file reader');
console.log("starting file reader");
var reader = new FileReader();
reader.onload = onload;
reader.onerror = function(err) {
// return error
// TODO: find a better way to propogate error upstream
console.log('got back error', err);
console.log("got back error", err);
cb([]);
};
reader.readAsDataURL(file);
@ -25,261 +25,294 @@ var parseFiles = function(files, cb) {
};
angular
.module('webui.ctrls.modal', [
"ui.bootstrap", 'webui.services.deps', 'webui.services.modals', 'webui.services.rpc',
'webui.services.configuration'
])
.controller('ModalCtrl', [
'$_', '$scope', '$modal', "$modals", '$rpc','$fileSettings', '$downloadProps',
function(_, scope, $modal, modals, rpc, fsettings, dprops) {
.module("webui.ctrls.modal", [
"ui.bootstrap",
"webui.services.deps",
"webui.services.modals",
"webui.services.rpc",
"webui.services.configuration"
])
.controller("ModalCtrl", [
"$_",
"$scope",
"$modal",
"$modals",
"$rpc",
"$fileSettings",
"$downloadProps",
function(_, scope, $modal, modals, rpc, fsettings, dprops) {
scope.getUris = {
open: function(cb) {
var self = this;
this.uris = "";
this.downloadSettingsCollapsed = true;
this.advancedSettingsCollapsed = true;
this.settings = {};
this.fsettings = _.cloneDeep(fsettings);
this.cb = cb;
scope.getUris = {
open: function(cb) {
var self = this;
this.uris = "";
this.downloadSettingsCollapsed = true;
this.advancedSettingsCollapsed = true;
this.settings = {};
this.fsettings = _.cloneDeep(fsettings);
this.cb = cb;
// fill in default download properties
_.forEach(dprops, function(p) {
self.settings[p] = self.fsettings[p];
delete self.fsettings[p];
});
this.inst = $modal.open({
templateUrl: "getUris.html",
scope: scope,
windowClass: "modal-large"
});
this.inst.result.then(function() {
delete self.inst;
if (self.cb) {
var settings = {};
// no need to send in default values, just the changed ones
for (var i in self.settings) {
if (fsettings[i].val != self.settings[i].val)
settings[i] = self.settings[i].val;
}
for (var i in self.fsettings) {
if (fsettings[i].val != self.fsettings[i].val)
settings[i] = self.fsettings[i].val;
}
console.log('sending settings:', settings);
self.cb(self.parse(), settings);
}
},
function() {
delete self.inst;
});
},
parse: function() {
return _
.chain(this.uris.trim().split(/\r?\n/g))
.map(function(d) {
return _(d)
.replace(/["'][^"']*["']/g, function(c) {
return c.replace(/%/g,'%25').replace(/ /g,'%20');
})
.trim()
.split(/\s+/g)
.map(function(c) {
return c.replace(/%20/g,' ').replace(/%25/g,'%').replace(/["']/g,'');
});
})
.filter(function(d) { return d.length })
.value();
}
};
scope.settings = {
open: function(settings, title, actionText, cb) {
var self = this;
this.settings = settings;
this.title = title;
this.actionText = actionText;
this.inst = $modal.open({
templateUrl: "settings.html",
scope: scope,
windowClass: "modal-large"
});
this.inst.result.then(function() {
delete self.inst;
if (cb) {
cb(self.settings);
}
},
function() {
delete self.inst;
});
}
};
scope.selectFiles = {
open: function(files, cb) {
var self = this;
this.files = _.cloneDeep(files);
var groupFiles = function (files) {
// sort files alphabetically
files.sort(function (a, b) {
if (a.relpath < b.relpath) {
return -1;
} else {
return 1;
}
// fill in default download properties
_.forEach(dprops, function(p) {
self.settings[p] = self.fsettings[p];
delete self.fsettings[p];
});
function OrganizedFolder () {
this.inst = $modal.open({
templateUrl: "getUris.html",
scope: scope,
windowClass: "modal-large"
});
this.inst.result.then(
function() {
delete self.inst;
if (self.cb) {
var settings = {};
// no need to send in default values, just the changed ones
for (var i in self.settings) {
if (fsettings[i].val != self.settings[i].val) settings[i] = self.settings[i].val;
}
for (var i in self.fsettings) {
if (fsettings[i].val != self.fsettings[i].val)
settings[i] = self.fsettings[i].val;
}
console.log("sending settings:", settings);
self.cb(self.parse(), settings);
}
},
function() {
delete self.inst;
}
);
},
parse: function() {
return _.chain(this.uris.trim().split(/\r?\n/g))
.map(function(d) {
return _(d)
.replace(/["'][^"']*["']/g, function(c) {
return c.replace(/%/g, "%25").replace(/ /g, "%20");
})
.trim()
.split(/\s+/g)
.map(function(c) {
return c
.replace(/%20/g, " ")
.replace(/%25/g, "%")
.replace(/["']/g, "");
});
})
.filter(function(d) {
return d.length;
})
.value();
}
};
scope.settings = {
open: function(settings, title, actionText, cb) {
var self = this;
this.settings = settings;
this.title = title;
this.actionText = actionText;
this.inst = $modal.open({
templateUrl: "settings.html",
scope: scope,
windowClass: "modal-large"
});
this.inst.result.then(
function() {
delete self.inst;
if (cb) {
cb(self.settings);
}
},
function() {
delete self.inst;
}
);
}
};
scope.selectFiles = {
open: function(files, cb) {
var self = this;
this.files = _.cloneDeep(files);
var groupFiles = function(files) {
// sort files alphabetically
files.sort(function(a, b) {
if (a.relpath < b.relpath) {
return -1;
} else {
return 1;
}
});
function OrganizedFolder() {
this.dirs = {};
this.files = [];
this.show = false;
this.selected = true;
}
var folder = new OrganizedFolder(), tmp;
for (var i = 0; i < files.length; i++) {
}
var folder = new OrganizedFolder(),
tmp;
for (var i = 0; i < files.length; i++) {
tmp = folder;
var str = files[i].relpath;
var arr = str.split("/");
for (var j = 0; j < arr.length - 1; j++) {
if (!tmp.dirs[arr[j]]) {
tmp.dirs[arr[j]] = new OrganizedFolder();
}
tmp = tmp.dirs[arr[j]];
if (!tmp.dirs[arr[j]]) {
tmp.dirs[arr[j]] = new OrganizedFolder();
}
tmp = tmp.dirs[arr[j]];
}
tmp.files.push(files[i]);
}
return folder;
}
return folder;
};
this.groupedFiles = groupFiles(this.files);
this.inst = $modal.open({
templateUrl: "selectFiles.html",
scope: scope,
windowClass: "modal-large"
});
this.inst.result.then(
function() {
delete self.inst;
if (cb) {
cb(self.files);
}
},
function() {
delete self.inst;
}
);
}
};
this.groupedFiles = groupFiles(this.files);
this.inst = $modal.open({
templateUrl: "selectFiles.html",
scope: scope,
windowClass: "modal-large"
});
this.inst.result.then(function() {
delete self.inst;
scope.connection = {
open: function(defaults, cb) {
var self = this;
if (cb) {
cb(self.files);
}
},
function() {
delete self.inst;
});
}
};
// XXX We need to actually clone this!
this.conf = rpc.getConfiguration();
this.inst = $modal.open({
templateUrl: "connection.html",
scope: scope,
windowClass: "modal-large"
});
scope.connection = {
open: function(defaults, cb) {
var self = this;
// XXX We need to actually clone this!
this.conf = rpc.getConfiguration();
this.inst = $modal.open({
templateUrl: "connection.html",
scope: scope,
windowClass: "modal-large",
});
this.inst.result.then(function() {
delete self.inst;
if (cb) {
cb(self.conf);
}
},
function() {
delete self.inst;
});
}
};
_.each(['getTorrents', 'getMetalinks'], function(name) {
scope[name] = {
open: function(cb) {
var self = this;
this.files = [];
this.collapsed = true;
this.settings = {};
this.fsettings = _.cloneDeep(fsettings);
// fill in default download properties
_.forEach(dprops, function(p) {
self.settings[p] = self.fsettings[p];
delete self.fsettings[p];
});
this.inst = $modal.open({
templateUrl: name + ".html",
scope: scope,
windowClass: "modal-large",
});
this.inst.result.then(function() {
delete self.inst;
if (cb) {
parseFiles(self.files, function(txts) {
var settings = {};
// no need to send in default values, just the changed ones
for (var i in self.settings) {
if (fsettings[i].val != self.settings[i].val)
settings[i] = self.settings[i].val;
}
for (var i in self.fsettings) {
if (fsettings[i].val != self.fsettings[i].val)
settings[i] = self.fsettings[i].val;
this.inst.result.then(
function() {
delete self.inst;
if (cb) {
cb(self.conf);
}
},
function() {
delete self.inst;
}
);
}
};
console.log('sending settings:', settings);
cb(txts, settings);
_.each(["getTorrents", "getMetalinks"], function(name) {
scope[name] = {
open: function(cb) {
var self = this;
this.files = [];
this.collapsed = true;
this.settings = {};
this.fsettings = _.cloneDeep(fsettings);
// fill in default download properties
_.forEach(dprops, function(p) {
self.settings[p] = self.fsettings[p];
delete self.fsettings[p];
});
this.inst = $modal.open({
templateUrl: name + ".html",
scope: scope,
windowClass: "modal-large"
});
this.inst.result.then(
function() {
delete self.inst;
if (cb) {
parseFiles(self.files, function(txts) {
var settings = {};
// no need to send in default values, just the changed ones
for (var i in self.settings) {
if (fsettings[i].val != self.settings[i].val)
settings[i] = self.settings[i].val;
}
for (var i in self.fsettings) {
if (fsettings[i].val != self.fsettings[i].val)
settings[i] = self.fsettings[i].val;
}
console.log("sending settings:", settings);
cb(txts, settings);
});
}
},
function() {
delete self.inst;
}
);
}
},
function() {
delete self.inst;
});
}
};
});
};
});
_.each(["about", "server_info"], function(name) {
scope[name] = {
open: function() {
var self = this;
this.inst = $modal.open({
templateUrl: name + ".html",
scope: scope
});
this.inst.result.then(function() {
delete self.inst;
},
function() {
delete self.inst;
});
}
};
});
_.each(["about", "server_info"], function(name) {
scope[name] = {
open: function() {
var self = this;
this.inst = $modal.open({
templateUrl: name + ".html",
scope: scope
});
this.inst.result.then(
function() {
delete self.inst;
},
function() {
delete self.inst;
}
);
}
};
});
rpc.once('getVersion', [], function(data) {
scope.miscellaneous = data[0];
});
rpc.once("getVersion", [], function(data) {
scope.miscellaneous = data[0];
});
_.each([
'getUris', 'getTorrents', 'getMetalinks', 'selectFiles',
'settings', 'connection', 'server_info', 'about'
], function(name) {
modals.register(name, function() {
if (scope[name].inst) {
// Already open.
return;
}
var args = Array.prototype.slice.call(arguments, 0);
scope[name].open.apply(scope[name], args);
});
});
}]);
_.each(
[
"getUris",
"getTorrents",
"getMetalinks",
"selectFiles",
"settings",
"connection",
"server_info",
"about"
],
function(name) {
modals.register(name, function() {
if (scope[name].inst) {
// Already open.
return;
}
var args = Array.prototype.slice.call(arguments, 0);
scope[name].open.apply(scope[name], args);
});
}
);
}
]);

View File

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

View File

@ -1,85 +1,93 @@
angular.module('webui.ctrls.props', [
'webui.services.utils', 'webui.services.settings', 'webui.services.deps',
'webui.services.rpc', 'webui.services.configuration',
])
.controller('StarredPropsCtrl', ['$scope', '$_', '$utils', '$rpc', '$globalSettings', '$fileSettings', '$starredProps',
function(scope, _, utils, rpc, gsettings, fsettings, starredProps) {
scope._props = [];
scope.dirty = true;
scope.properties = [];
scope.getProps = function() {
var props = utils.getCookie('aria2props');
if (!props || !props.indexOf) props = starredProps; // default properties starred in the global configuration file
angular
.module("webui.ctrls.props", [
"webui.services.utils",
"webui.services.settings",
"webui.services.deps",
"webui.services.rpc",
"webui.services.configuration"
])
.controller("StarredPropsCtrl", [
"$scope",
"$_",
"$utils",
"$rpc",
"$globalSettings",
"$fileSettings",
"$starredProps",
function(scope, _, utils, rpc, gsettings, fsettings, starredProps) {
scope._props = [];
scope.dirty = true;
scope.properties = [];
scope.getProps = function() {
var props = utils.getCookie("aria2props");
if (!props || !props.indexOf) props = starredProps; // default properties starred in the global configuration file
return props;
};
return props;
};
scope.enabled = function() {
for (var i = 0; i < scope.properties.length; i++) {
if (scope.properties[i]._val != scope.properties[i].val) return true;
}
return false;
}
scope.save = function() {
var sets = {};
var found = false;
for (var i = 0; i < scope.properties.length; i++) {
if (scope.properties[i]._val != scope.properties[i].val) {
sets[scope.properties[i].name] = scope.properties[i].val;
found = true;
}
}
if (found) {
rpc.once('changeGlobalOption', [sets]);
}
}
rpc.subscribe('getGlobalOption', [], function(data) {
var vals = data[0];
var props = scope.getProps();
var arr = [];
for (var i = 0; i < props.length; i++) {
var set = {};
if (props[i] in gsettings) {
set = gsettings[props[i]];
if (props[i] in vals) {
set.val = vals[props[i]];
scope.enabled = function() {
for (var i = 0; i < scope.properties.length; i++) {
if (scope.properties[i]._val != scope.properties[i].val) return true;
}
set.name = props[i];
arr.push(set);
}
else if (props[i] in fsettings) {
set = fsettings[props[i]];
if (props[i] in vals) {
set.val = vals[props[i]];
return false;
};
scope.save = function() {
var sets = {};
var found = false;
for (var i = 0; i < scope.properties.length; i++) {
if (scope.properties[i]._val != scope.properties[i].val) {
sets[scope.properties[i].name] = scope.properties[i].val;
found = true;
}
}
set.name = props[i];
arr.push(set);
}
else if (props[i] in vals) {
arr.push({name: props[i], val: vals[props[i]]});
}
if (found) {
rpc.once("changeGlobalOption", [sets]);
}
};
rpc.subscribe("getGlobalOption", [], function(data) {
var vals = data[0];
var props = scope.getProps();
var arr = [];
for (var i = 0; i < props.length; i++) {
var set = {};
if (props[i] in gsettings) {
set = gsettings[props[i]];
if (props[i] in vals) {
set.val = vals[props[i]];
}
set.name = props[i];
arr.push(set);
} else if (props[i] in fsettings) {
set = fsettings[props[i]];
if (props[i] in vals) {
set.val = vals[props[i]];
}
set.name = props[i];
arr.push(set);
} else if (props[i] in vals) {
arr.push({ name: props[i], val: vals[props[i]] });
}
}
utils.mergeMap(arr, scope.properties, function(prop, nprop) {
nprop = nprop || {};
nprop.name = prop.name;
nprop.options = prop.options;
nprop.multiline = prop.multiline;
if (nprop._val == nprop.val || nprop.val == prop.val) {
nprop._val = prop.val;
nprop.val = prop.val;
} else {
nprop._val = prop.val;
}
nprop.desc = prop.desc;
return nprop;
});
});
}
utils.mergeMap(arr, scope.properties, function(prop, nprop) {
nprop = nprop || {};
nprop.name = prop.name;
nprop.options = prop.options;
nprop.multiline = prop.multiline;
if (nprop._val == nprop.val || nprop.val == prop.val) {
nprop._val = prop.val;
nprop.val = prop.val;
}
else {
nprop._val = prop.val;
}
nprop.desc = prop.desc;
return nprop;
});
});
}]);
]);

View File

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

View File

@ -2,154 +2,158 @@
// 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
angular
.module('webui.directives.dgraph', ['webui.filters.bytes', 'webui.services.deps'])
.directive('dgraph', ['$', '$filter', '$parse', function($, filter, parse) {
var ratio = 0.6;
var xfmt = "%H:%M:%S";
var yTicks = 7; // Number of y-axis ticks (sans 0)
var xticks = 10; // Number of x-axis ticks (sans 0)
var yTickBase = 10240; // y-axis ticks must be a multiple of this (bytes).
try {
// Try to detect AM/PM locales.
if (!/16/.test(new Date(2000,0,1,16,7,9).toLocaleTimeString())) {
xfmt = "%I:%M:%S %P";
.module("webui.directives.dgraph", ["webui.filters.bytes", "webui.services.deps"])
.directive("dgraph", [
"$",
"$filter",
"$parse",
function($, filter, parse) {
var ratio = 0.6;
var xfmt = "%H:%M:%S";
var yTicks = 7; // Number of y-axis ticks (sans 0)
var xticks = 10; // Number of x-axis ticks (sans 0)
var yTickBase = 10240; // y-axis ticks must be a multiple of this (bytes).
try {
// Try to detect AM/PM locales.
if (!/16/.test(new Date(2000, 0, 1, 16, 7, 9).toLocaleTimeString())) {
xfmt = "%I:%M:%S %P";
}
} catch (ex) {
// Ignore. Browser does not support toLocaleTimeString.
}
return function(scope, elem, attrs) {
var canDraw = false;
var graphSize = 180,
dspeed = 0,
uspeed = 0,
hasSpeeds = false,
dconf = {
label: "DOWN",
data: [],
color: "#00ff00",
lines: { show: true }
},
uconf = {
label: "UP",
data: [],
color: "#0000ff",
lines: { show: true }
};
// hack for the null height for flot elem
elem.height(elem.width() * ratio);
var graph = $.plot(elem, [dconf, uconf], {
legend: {
show: attrs.nolabel == undefined,
backgroundOpacity: 0,
margin: [10, 20],
labelFormatter: function(label, series) {
if (!series.data.length) {
return label;
}
return label + " (" + filter("bspeed")(series.data[series.data.length - 1][1]) + ")";
},
position: "sw"
},
xaxis: {
show: true,
mode: "time",
timeformat: xfmt,
ticks: +attrs.xticks || xticks, // allow users of the directive to overwride xticks
minTickSize: [30, "second"] // 180 / 30 == 6
},
yaxis: {
position: "right",
ticks: function(axis) {
var res = [0];
yt = +attrs.yticks || yticks; // allow users of directive to overwride yticks
var step = yTickBase * Math.max(1, Math.ceil(axis.max / (yt * yTickBase)));
for (var s = 0; s < yt; s++) {
var c = step * s;
if (c > axis.max) break;
res.push(step * s);
}
return res;
},
tickFormatter: function(val, axis) {
return filter("bspeed")(val);
},
min: 0
}
});
var draw = function() {
var width = elem.width();
if (width == 0) return;
elem.height(width * ratio);
graph.setData([dconf, uconf]);
graph.resize();
graph.setupGrid();
graph.draw();
};
function update() {
if (!hasSpeeds) {
return;
}
// Convoluted way to get the local date timestamp instead of the UTC one.
var cnt = new Date();
cnt = Date.UTC(
cnt.getFullYear(),
cnt.getMonth(),
cnt.getDate(),
cnt.getHours(),
cnt.getMinutes(),
cnt.getSeconds()
);
if (dconf.data.length === graphSize) dconf.data.shift();
dconf.data.push([cnt, dspeed]);
if (uconf.data.length === graphSize) uconf.data.shift();
uconf.data.push([cnt, uspeed]);
// if any parents is collapsable, then confirm if it isnt
if (canDraw) {
draw();
}
}
scope.$watch(attrs.dspeed, function(val) {
if (val === undefined) {
return;
}
hasSpeeds = true;
dspeed = parseFloat(val) || 0;
});
scope.$watch(attrs.uspeed, function(val) {
if (val === undefined) {
return;
}
hasSpeeds = true;
uspeed = parseFloat(val) || 0;
});
scope.$watch(attrs.draw, function(val) {
canDraw = val;
});
var interval = setInterval(update, 1000);
angular.element(window).bind("resize", draw);
elem.bind("$destroy", function() {
clearInterval(interval);
});
};
}
}
catch (ex) {
// Ignore. Browser does not support toLocaleTimeString.
}
return function(scope, elem, attrs) {
var canDraw = false;
var graphSize = 180
, dspeed = 0, uspeed = 0, hasSpeeds = false
, dconf = {
label: "DOWN",
data: [],
color: "#00ff00",
lines: { show: true }
}
, uconf = {
label: "UP",
data: [],
color: "#0000ff",
lines: { show: true }
}
;
// hack for the null height for flot elem
elem.height(elem.width() * ratio);
var graph = $.plot(elem, [dconf, uconf], {
legend: {
show: (attrs.nolabel == undefined),
backgroundOpacity: 0,
margin: [10, 20],
labelFormatter: function(label, series) {
if (!series.data.length) {
return label;
}
return label + " (" + filter("bspeed")(series.data[series.data.length-1][1]) + ")";
},
position: "sw"
},
xaxis: {
show: true,
mode: "time",
timeformat: xfmt,
ticks: +attrs.xticks || xticks, // allow users of the directive to overwride xticks
minTickSize: [30, "second"] // 180 / 30 == 6
},
yaxis: {
position: "right",
ticks: function(axis) {
var res = [0];
yt = +attrs.yticks || yticks; // allow users of directive to overwride yticks
var step = yTickBase * Math.max(1, Math.ceil(axis.max / (yt * yTickBase)))
for (var s = 0; s < yt; s++) {
var c = step * s;
if (c > axis.max)
break;
res.push(step * s);
}
return res;
},
tickFormatter: function(val, axis) {
return filter('bspeed')(val);
},
min: 0
}
});
var draw = function() {
var width = elem.width();
if (width == 0) return;
elem.height(width * ratio);
graph.setData([dconf, uconf]);
graph.resize();
graph.setupGrid();
graph.draw();
};
function update() {
if (!hasSpeeds) {
return;
}
// Convoluted way to get the local date timestamp instead of the UTC one.
var cnt = new Date();
cnt = Date.UTC(
cnt.getFullYear(),
cnt.getMonth(),
cnt.getDate(),
cnt.getHours(),
cnt.getMinutes(),
cnt.getSeconds());
if (dconf.data.length === graphSize) dconf.data.shift();
dconf.data.push([cnt, dspeed]);
if (uconf.data.length === graphSize) uconf.data.shift();
uconf.data.push([cnt, uspeed]);
// if any parents is collapsable, then confirm if it isnt
if (canDraw) {
draw();
}
};
scope.$watch(attrs.dspeed, function(val) {
if (val === undefined) {
return;
}
hasSpeeds = true;
dspeed = parseFloat(val) || 0;
});
scope.$watch(attrs.uspeed, function(val) {
if (val === undefined) {
return;
}
hasSpeeds = true;
uspeed = parseFloat(val) || 0;
});
scope.$watch(attrs.draw, function(val) {
canDraw = val;
});
var interval = setInterval(update, 1000);
angular.element(window).bind('resize', draw);
elem.bind('$destroy', function() {
clearInterval(interval);
});
};
}]);
]);

View File

@ -2,125 +2,152 @@
// puts the files selected in an attribute
var app = angular.module("webui.directives.fileselect", ["webui.services.deps"]);
app.directive("indeterminate", [
"$parse", function syncInput (parse) {
return {
require : "ngModel",
// Restrict the directive so it can only be used as an attribute
restrict : "A",
"$parse",
function syncInput(parse) {
return {
require: "ngModel",
// Restrict the directive so it can only be used as an attribute
restrict: "A",
link : function link (scope, elem, attr, ngModelCtrl) {
// 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
var getter = parse(attr["ngModel"]);
// var setter = getter.assign;
var children = []; // cache children input
var cacheSelectedSubInputNumber = 0;
var cacheNoSelectedSubInputNumber = 0;
var get = function () {
return getter(scope);
};
// the internal 'indeterminate' flag on the attached dom element
var setIndeterminateState = function (newValue) {
elem.prop("indeterminate", newValue);
};
var setModelValueWithSideEffect = function (newVal) { // will cause to emit corresponding events
ngModelCtrl.$setViewValue(newVal);
ngModelCtrl.$render();
};
var passIfIsLeafChild = function (callback) { // ensure to execute callback only when this input has one or more subinputs
return function () {
if (children.length > 0) {
callback.apply(this, arguments);
}
};
};
var passIfNotIsLeafChild = function (callback) { // ensure to execute callback only when this input hasn't any subinput
return function () {
if (children.length === 0) {
callback.apply(this, arguments);
}
};
};
var passThroughThisScope = function (callback) { // pass through the event from the scope where they sent
return function (event) {
if (event.targetScope !== event.currentScope) {
return callback.apply(this, arguments);
}
};
};
var passIfIsIndeterminate = function (callback) { // pass through the event when this input is indeterminate
return function () {
if (!elem.prop("indeterminate")) {
return callback.apply(this, arguments);
}
};
};
/* var catchEventOnlyOnce = function (callback) { // only fire once, and stop event's propagation
link: function link(scope, elem, attr, ngModelCtrl) {
// 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
var getter = parse(attr["ngModel"]);
// var setter = getter.assign;
var children = []; // cache children input
var cacheSelectedSubInputNumber = 0;
var cacheNoSelectedSubInputNumber = 0;
var get = function() {
return getter(scope);
};
// the internal 'indeterminate' flag on the attached dom element
var setIndeterminateState = function(newValue) {
elem.prop("indeterminate", newValue);
};
var setModelValueWithSideEffect = function(newVal) {
// will cause to emit corresponding events
ngModelCtrl.$setViewValue(newVal);
ngModelCtrl.$render();
};
var passIfIsLeafChild = function(callback) {
// ensure to execute callback only when this input has one or more subinputs
return function() {
if (children.length > 0) {
callback.apply(this, arguments);
}
};
};
var passIfNotIsLeafChild = function(callback) {
// ensure to execute callback only when this input hasn't any subinput
return function() {
if (children.length === 0) {
callback.apply(this, arguments);
}
};
};
var passThroughThisScope = function(callback) {
// pass through the event from the scope where they sent
return function(event) {
if (event.targetScope !== event.currentScope) {
return callback.apply(this, arguments);
}
};
};
var passIfIsIndeterminate = function(callback) {
// pass through the event when this input is indeterminate
return function() {
if (!elem.prop("indeterminate")) {
return callback.apply(this, arguments);
}
};
};
/* var catchEventOnlyOnce = function (callback) { // only fire once, and stop event's propagation
return function (event) {
callback.apply(this, arguments);
return event.stopPropagation();
};
}; */
if (attr["indeterminate"] && parse(attr["indeterminate"]).constant) {
setIndeterminateState(scope.$eval(attr["indeterminate"])); // set to default value (set in template)
}
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
ngModelCtrl.$viewChangeListeners.push(passIfNotIsLeafChild(function () {
scope.$emit("childSelectedChange", get()); // notifies parents to change their state
}));
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
})));
// 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("childSelectedChange", get()); // force emitted, and force the parent change their state base on children at first time
if (attr["indeterminate"] && parse(attr["indeterminate"]).constant) {
setIndeterminateState(scope.$eval(attr["indeterminate"])); // set to default value (set in template)
}
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
ngModelCtrl.$viewChangeListeners.push(
passIfNotIsLeafChild(function() {
scope.$emit("childSelectedChange", get()); // notifies parents to change their state
})
);
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
})
)
);
// 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("childSelectedChange", get()); // force emitted, and force the parent change their state base on children at first time
} else {
// establish parent-child's relation
// 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
function(event, child) {
children.push(child);
}
)
);
var updateBaseOnChildrenState = function(event, newChildValue) {
if (cacheSelectedSubInputNumber + cacheNoSelectedSubInputNumber !== children.length) {
// cache childern state
cacheSelectedSubInputNumber = 0;
cacheNoSelectedSubInputNumber = 0;
for (var i = 0; i < children.length; i++) {
if (children[i]()) {
cacheSelectedSubInputNumber += 1;
} else {
// establish parent-child's relation
// 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
function (event, child) {
children.push(child);
})
);
var updateBaseOnChildrenState = function (event, newChildValue) {
if ((cacheSelectedSubInputNumber + cacheNoSelectedSubInputNumber) !== children.length) {
// cache childern state
cacheSelectedSubInputNumber = 0;
cacheNoSelectedSubInputNumber = 0;
for (var i = 0; i < children.length; i++) {
if (children[i]()) {
cacheSelectedSubInputNumber += 1;
} else {
cacheNoSelectedSubInputNumber += 1;
}
}
} else {
// no need for recalculated children state
// just make a few change to cache value
if (newChildValue) {
cacheSelectedSubInputNumber++;
cacheNoSelectedSubInputNumber--;
} else {
cacheSelectedSubInputNumber--;
cacheNoSelectedSubInputNumber++;
}
}
var allSelected = (cacheNoSelectedSubInputNumber === 0); // if doesn't has any no selected input
var anySeleted = (cacheSelectedSubInputNumber > 0);
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
};
// is not leaf input, Only receive child change and parent change event
ngModelCtrl.$viewChangeListeners.push(passIfIsLeafChild(passIfIsIndeterminate(function () {
// emit when input property indeterminate is false, prevent recursively emitting event from parent to children, children to parent
scope.$broadcast("ParentSelectedChange", get());
})));
// reset input state base on children inputs
scope.$on("childSelectedChange", passThroughThisScope(passIfIsLeafChild(updateBaseOnChildrenState)));
cacheNoSelectedSubInputNumber += 1;
}
}
} else {
// no need for recalculated children state
// just make a few change to cache value
if (newChildValue) {
cacheSelectedSubInputNumber++;
cacheNoSelectedSubInputNumber--;
} else {
cacheSelectedSubInputNumber--;
cacheNoSelectedSubInputNumber++;
}
}
};
}
var allSelected = cacheNoSelectedSubInputNumber === 0; // if doesn't has any no selected input
var anySeleted = cacheSelectedSubInputNumber > 0;
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
};
// is not leaf input, Only receive child change and parent change event
ngModelCtrl.$viewChangeListeners.push(
passIfIsLeafChild(
passIfIsIndeterminate(function() {
// emit when input property indeterminate is false, prevent recursively emitting event from parent to children, children to parent
scope.$broadcast("ParentSelectedChange", get());
})
)
);
// reset input state base on children inputs
scope.$on(
"childSelectedChange",
passThroughThisScope(passIfIsLeafChild(updateBaseOnChildrenState))
);
}
}
};
}
]);

View File

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

View File

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

View File

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

View File

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

View File

@ -1,68 +1,82 @@
var webui = angular.module('webui', [
'webui.services.utils', 'webui.services.deps', 'webui.services.base64',
'webui.services.configuration', 'webui.services.rpc',
'webui.services.modals', 'webui.services.alerts',
'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',
var webui = angular.module("webui", [
"webui.services.utils",
"webui.services.deps",
"webui.services.base64",
"webui.services.configuration",
"webui.services.rpc",
"webui.services.modals",
"webui.services.alerts",
"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
'ui.bootstrap',
"ui.bootstrap",
// translate
'pascalprecht.translate'
"pascalprecht.translate"
]);
function mergeTranslation(translation, base) {
for (var i in base) {
if (!base.hasOwnProperty(i)) {
continue;
}
for (var i in base) {
if (!base.hasOwnProperty(i)) {
continue;
}
if (!translation[i] || !translation[i].length) {
translation[i] = base[i];
}
}
if (!translation[i] || !translation[i].length) {
translation[i] = base[i];
}
}
return translation;
return translation;
}
webui.config(function ($translateProvider, $locationProvider) {
webui.config(function($translateProvider, $locationProvider) {
$translateProvider
.translations('en_US', translations.en_US)
.translations('nl_NL', mergeTranslation(translations.nl_NL, 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_TW', mergeTranslation(translations.zh_TW, translations.en_US))
.translations('pl_PL', mergeTranslation(translations.pl_PL, translations.en_US))
.translations('fr_FR', mergeTranslation(translations.fr_FR, translations.en_US))
.translations('de_DE', mergeTranslation(translations.de_DE, translations.en_US))
.translations('es_ES', mergeTranslation(translations.es_ES, translations.en_US))
.translations('ru_RU', mergeTranslation(translations.ru_RU, translations.en_US))
.translations('it_IT', mergeTranslation(translations.it_IT, translations.en_US))
.translations('tr_TR', mergeTranslation(translations.tr_TR, translations.en_US))
.translations('cs_CZ', mergeTranslation(translations.cs_CZ, translations.en_US))
.translations('fa_IR', mergeTranslation(translations.fa_IR, translations.en_US))
.translations('id_ID', mergeTranslation(translations.id_ID, translations.en_US))
.translations('pt_BR', mergeTranslation(translations.pt_BR, translations.en_US))
.useSanitizeValueStrategy('escapeParameters')
.determinePreferredLanguage();
.translations("en_US", translations.en_US)
.translations("nl_NL", mergeTranslation(translations.nl_NL, 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_TW", mergeTranslation(translations.zh_TW, translations.en_US))
.translations("pl_PL", mergeTranslation(translations.pl_PL, translations.en_US))
.translations("fr_FR", mergeTranslation(translations.fr_FR, translations.en_US))
.translations("de_DE", mergeTranslation(translations.de_DE, translations.en_US))
.translations("es_ES", mergeTranslation(translations.es_ES, translations.en_US))
.translations("ru_RU", mergeTranslation(translations.ru_RU, translations.en_US))
.translations("it_IT", mergeTranslation(translations.it_IT, translations.en_US))
.translations("tr_TR", mergeTranslation(translations.tr_TR, translations.en_US))
.translations("cs_CZ", mergeTranslation(translations.cs_CZ, translations.en_US))
.translations("fa_IR", mergeTranslation(translations.fa_IR, translations.en_US))
.translations("id_ID", mergeTranslation(translations.id_ID, translations.en_US))
.translations("pt_BR", mergeTranslation(translations.pt_BR, translations.en_US))
.useSanitizeValueStrategy("escapeParameters")
.determinePreferredLanguage();
$locationProvider.html5Mode({
enabled: true,
requireBase: false
});
$locationProvider.html5Mode({
enabled: true,
requireBase: false
});
});
$(function() {
if (!String.prototype.startsWith) {
Object.defineProperty(String.prototype, 'startsWith', {
enumerable: false, configurable: false, writable: false,
value: function (searchString, position) {
position = position || 0;
return this.indexOf(searchString, position) === position;
}
Object.defineProperty(String.prototype, "startsWith", {
enumerable: false,
configurable: false,
writable: false,
value: function(searchString, position) {
position = position || 0;
return this.indexOf(searchString, position) === position;
}
});
}
angular.bootstrap(document, ['webui'])
angular.bootstrap(document, ["webui"]);
});

View File

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

View File

@ -1,21 +1,23 @@
angular.module('webui.services.alerts', ['webui.services.deps'])
.factory('$alerts', ['$_', function(_) {
var alerters = [];
return {
addAlert: function() {
var args = Array.prototype.slice.call(arguments, 0);
setTimeout(function() {
_.each(alerters, function(alt) {
alt.apply({}, args);
});
}, 0);
},
addAlerter: function(cb) {
alerters.push(cb);
},
// a simple function for debugging
log: function(msg) {
this.addAlert(msg, 'info');
}
};
}]);
angular.module("webui.services.alerts", ["webui.services.deps"]).factory("$alerts", [
"$_",
function(_) {
var alerters = [];
return {
addAlert: function() {
var args = Array.prototype.slice.call(arguments, 0);
setTimeout(function() {
_.each(alerters, function(alt) {
alt.apply({}, args);
});
}, 0);
},
addAlerter: function(cb) {
alerters.push(cb);
},
// a simple function for debugging
log: function(msg) {
this.addAlert(msg, "info");
}
};
}
]);

View File

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

View File

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

View File

@ -1,68 +1,66 @@
angular
.module('webui.services.errors', [])
.value('$getErrorStatus', function(errorCode) {
// normalize it to 0
errorCode = errorCode - 1;
switch(errorCode) {
case 0:
return "download was unsuccessful";
case 1:
return "unknown error occurred";
case 2:
return "time out occurred";
case 3:
return "resource was not found";
case 4:
return 'aria2 saw the specified number of "resource not found" error. See --max-file-not-found option';
case 5:
return "download aborted because download speed was too slow. See --lowest-speed-limit option";
case 6:
return "there were unfinished downloads";
case 7:
return "remote server did not support resume when resume was required to complete download";
case 8:
return "not enough disk space available";
case 9:
return "piece length was different from one in .aria2 control";
case 10:
return "downloading same file at that moment";
case 11:
return "downloading same info hash torrent at that moment";
case 12:
return "file already existed";
case 13:
return "renaming file failed";
case 14:
return "could not open existing file";
case 15:
return "could not create new file or truncate existing file";
case 16:
return "file I/O error occurred";
case 17:
return "could not create directory";
case 18:
return "name resolution failed";
case 19:
return "could not parse Metalink document";
case 20:
return "FTP command failed";
case 21:
return "HTTP response header was bad or unexpected";
case 22:
return "too many redirects occurred";
case 23:
return "HTTP authorization failed";
case 24:
return "could not parse bencoded file";
case 25:
return ' ".torrent" file was corrupted or missing information ';
case 26:
return "Magnet URI was bad";
case 27:
return "bad/unrecognized option was given or unexpected option argument was given";
case 28:
return "remote server was unable to handle the request due to a temporary overloading or maintenance";
case 29:
return "could not parse JSON-RPC request";
}
angular.module("webui.services.errors", []).value("$getErrorStatus", function(errorCode) {
// normalize it to 0
errorCode = errorCode - 1;
switch (errorCode) {
case 0:
return "download was unsuccessful";
case 1:
return "unknown error occurred";
case 2:
return "time out occurred";
case 3:
return "resource was not found";
case 4:
return 'aria2 saw the specified number of "resource not found" error. See --max-file-not-found option';
case 5:
return "download aborted because download speed was too slow. See --lowest-speed-limit option";
case 6:
return "there were unfinished downloads";
case 7:
return "remote server did not support resume when resume was required to complete download";
case 8:
return "not enough disk space available";
case 9:
return "piece length was different from one in .aria2 control";
case 10:
return "downloading same file at that moment";
case 11:
return "downloading same info hash torrent at that moment";
case 12:
return "file already existed";
case 13:
return "renaming file failed";
case 14:
return "could not open existing file";
case 15:
return "could not create new file or truncate existing file";
case 16:
return "file I/O error occurred";
case 17:
return "could not create directory";
case 18:
return "name resolution failed";
case 19:
return "could not parse Metalink document";
case 20:
return "FTP command failed";
case 21:
return "HTTP response header was bad or unexpected";
case 22:
return "too many redirects occurred";
case 23:
return "HTTP authorization failed";
case 24:
return "could not parse bencoded file";
case 25:
return ' ".torrent" file was corrupted or missing information ';
case 26:
return "Magnet URI was bad";
case 27:
return "bad/unrecognized option was given or unexpected option argument was given";
case 28:
return "remote server was unable to handle the request due to a temporary overloading or maintenance";
case 29:
return "could not parse JSON-RPC request";
}
});

View File

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

View File

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

View File

@ -1,76 +1,85 @@
angular
.module('webui.services.rpc.jsoncall', [
'webui.services.deps', 'webui.services.base64'])
.factory('$jsoncall', ['$', '$json', '$base64', function($, JSON, base64) {
return {
init: function(conf) {
this.avgTimeout = 2000;
this.serverConf = conf;
},
ariaRequest: function(url, funcName, params, success, error) {
var startTime = new Date();
var conn = this;
$.post({
url: url,
timeout: this.avgTimeout,
contentType: 'application/json',
data: JSON.stringify({
jsonrpc: 2.0,
id: 'webui',
method: funcName,
params: params
}),
success: function(data) {
conn.avgTimeout = 2000 + 3 * (new Date() - startTime);
return success(data);
.module("webui.services.rpc.jsoncall", ["webui.services.deps", "webui.services.base64"])
.factory("$jsoncall", [
"$",
"$json",
"$base64",
function($, JSON, base64) {
return {
init: function(conf) {
this.avgTimeout = 2000;
this.serverConf = conf;
},
error: error
});
},
invoke: function(opts) {
var rpc = this;
var scheme = rpc.serverConf.encrypt ? 'https' : 'http';
rpc.ariaRequest(
scheme + '://' + rpc.serverConf.host + ':' + rpc.serverConf.port + (rpc.serverConf.path || '/jsonrpc'),
opts.name,
opts.params,
opts.success,
function() {
// check if authentication details are given, if yes then use a hack to support
// http authentication otherwise emit error
if (!rpc.serverConf.auth || !rpc.serverConf.auth.user) {
console.log("jsonrpc disconnect!!!");
return opts.error();
}
var authUrl = scheme + '://' +
rpc.serverConf.auth.user + ":" +
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,
// most browsers will then cache the authentication details and we dont have
// to give them next time we make a request
var img = $('<img/>').attr("src", authUrl);
$('body').append(img);
img.remove();
// timeout to let the image load and then make a request,
setTimeout(function() {
rpc.ariaRequest(
authUrl,
opts.name,
opts.params,
opts.success,
function() {
ariaRequest: function(url, funcName, params, success, error) {
var startTime = new Date();
var conn = this;
$.post({
url: url,
timeout: this.avgTimeout,
contentType: "application/json",
data: JSON.stringify({
jsonrpc: 2.0,
id: "webui",
method: funcName,
params: params
}),
success: function(data) {
conn.avgTimeout = 2000 + 3 * (new Date() - startTime);
return success(data);
},
error: error
});
},
invoke: function(opts) {
var rpc = this;
var scheme = rpc.serverConf.encrypt ? "https" : "http";
rpc.ariaRequest(
scheme +
"://" +
rpc.serverConf.host +
":" +
rpc.serverConf.port +
(rpc.serverConf.path || "/jsonrpc"),
opts.name,
opts.params,
opts.success,
function() {
// check if authentication details are given, if yes then use a hack to support
// http authentication otherwise emit error
if (!rpc.serverConf.auth || !rpc.serverConf.auth.user) {
console.log("jsonrpc disconnect!!!");
return opts.error();
}
);
}, rpc.avgTimeout);
var authUrl =
scheme +
"://" +
rpc.serverConf.auth.user +
":" +
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,
// most browsers will then cache the authentication details and we dont have
// to give them next time we make a request
var img = $("<img/>").attr("src", authUrl);
$("body").append(img);
img.remove();
// timeout to let the image load and then make a request,
setTimeout(function() {
rpc.ariaRequest(authUrl, opts.name, opts.params, opts.success, function() {
console.log("jsonrpc disconnect!!!");
return opts.error();
});
}, rpc.avgTimeout);
}
);
}
);
};
}
};
}]);
]);

View File

@ -1,272 +1,306 @@
angular
.module('webui.services.rpc', [
'webui.services.rpc.syscall', 'webui.services.configuration', 'webui.services.alerts',
'webui.services.utils'
])
.factory('$rpc', [
'$syscall', '$globalTimeout', '$alerts', '$utils',
'$rootScope', '$location', '$authconf', '$filter',
function(syscall, globalTimeout, alerts, utils, rootScope, uri, authconf, filter) {
.module("webui.services.rpc", [
"webui.services.rpc.syscall",
"webui.services.configuration",
"webui.services.alerts",
"webui.services.utils"
])
.factory("$rpc", [
"$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 = []
, 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
if (cookieConf) configurations.unshift(cookieConf);
var cookieConf = utils.getCookie('aria2conf');
// try at the start, so that it is presistant even when default authconf works
if(cookieConf) configurations.unshift(cookieConf);
if (uri.search().host) {
configurations.unshift(uri.search());
configurations[0].auth = {
token: configurations[0].token,
user: configurations[0].username,
pass: configurations[0].password
};
}
if (['http', 'https'].indexOf(uri.protocol()) != -1 && uri.host() != 'localhost') {
configurations.push({
host: uri.host(),
path: '/jsonrpc',
port: 6800,
encrypt: false
},
{
host: uri.host(),
port: uri.port(),
path: '/jsonrpc',
encrypt: ( uri.protocol() == 'https' )
},
{
host: uri.host(),
port: uri.port(),
path: authconf.path,
encrypt: ( uri.protocol() == 'https' )
});
}
// set if we got error on connection. This will cause another connection attempt.
var needNewConnection = true;
// update is implemented such that
// only one syscall at max is ongoing
// (i.e. serially) so should be private
// to maintain that invariant
var update = function() {
clearTimeout(timeout);
timeout = null;
subscriptions = _.filter(subscriptions, function(e) {
return !!e && e.once !== 2;
});
var subs = subscriptions.slice();
if (!subs.length) {
timeout = setTimeout(update, globalTimeout);
return;
}
if (syscall.state == 'initializing') {
console.log("Syscall is initializing, waiting");
timeout = setTimeout(update, globalTimeout);
return;
}
if (needNewConnection && configurations.length) {
needNewConnection = false;
currentConf = configurations[0];
if (currentConf && currentConf.auth && currentConf.auth.token) {
currentToken = currentConf.auth.token;
if (uri.search().host) {
configurations.unshift(uri.search());
configurations[0].auth = {
token: configurations[0].token,
user: configurations[0].username,
pass: configurations[0].password
};
}
else {
currentToken = null;
}
syscall.init(currentConf);
timeout = setTimeout(update, globalTimeout);
return;
}
var params = _.map(subs, function(s) {
var p = s.params;
if (currentToken) {
p = ["token:" + currentToken].concat(p || []);
if (["http", "https"].indexOf(uri.protocol()) != -1 && uri.host() != "localhost") {
configurations.push(
{
host: uri.host(),
path: "/jsonrpc",
port: 6800,
encrypt: false
},
{
host: uri.host(),
port: uri.port(),
path: "/jsonrpc",
encrypt: uri.protocol() == "https"
},
{
host: uri.host(),
port: uri.port(),
path: authconf.path,
encrypt: uri.protocol() == "https"
}
);
}
return {
methodName: s.name,
params: p && p.length ? p : undefined
};
});
var error = function() {
needNewConnection = true;
var ind = configurations.indexOf(currentConf);
if (ind != -1) configurations.splice(ind, 1);
// set if we got error on connection. This will cause another connection attempt.
var needNewConnection = true;
// If some proposed configurations are still in the pipeline then retry
if (configurations.length) {
alerts.log(filter('translate')("The last connection attempt was unsuccessful. Trying another configuration"));
timeout = setTimeout(update, 0);
}
else {
alerts.addAlert('<strong>' + filter('translate')('Oh Snap!') + '</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);
}
};
// update is implemented such that
// only one syscall at max is ongoing
// (i.e. serially) so should be private
// to maintain that invariant
var update = function() {
clearTimeout(timeout);
timeout = null;
syscall.invoke({
name: 'system.multicall',
params: [params],
success: function(data) {
var failed = _.some(data.result, function(d) {
return d.code && d.message === "Unauthorized";
subscriptions = _.filter(subscriptions, function(e) {
return !!e && e.once !== 2;
});
if (failed) {
needNewConnection = true;
alerts.addAlert('<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'));
var subs = subscriptions.slice();
if (!subs.length) {
timeout = setTimeout(update, globalTimeout);
return;
}
if (configurations.length) {
// configuration worked, save it in cookie for next time and
// delete the pipelined configurations!!
if (currentToken)
alerts.addAlert(filter('translate')('Successfully connected to Aria2 through its remote RPC …'), 'success');
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)'));
configurations = [];
}
utils.setCookie('aria2conf', currentConf);
var cbs = [];
_.each(data.result, function(d, i) {
var handle = subs[i];
if (handle) {
if (d.code) {
console.error(handle, d);
alerts.addAlert(d.message, 'error');
}
// run them later as the cb itself can mutate the subscriptions
cbs.push({cb: handle.cb, data: d});
if (handle.once) {
handle.once = 2;
}
}
});
_.each(cbs, function(hnd) {
hnd.cb(hnd.data);
});
rootScope.$digest();
if (forceNextUpdate) {
forceNextUpdate = false;
timeout = setTimeout(update, 0);
}
else {
if (syscall.state == "initializing") {
console.log("Syscall is initializing, waiting");
timeout = setTimeout(update, globalTimeout);
return;
}
},
error: error
});
};
// initiate the update loop
timeout = setTimeout(update, globalTimeout);
if (needNewConnection && configurations.length) {
needNewConnection = false;
currentConf = configurations[0];
if (currentConf && currentConf.auth && currentConf.auth.token) {
currentToken = currentConf.auth.token;
} else {
currentToken = null;
}
syscall.init(currentConf);
timeout = setTimeout(update, globalTimeout);
return;
}
return {
// conf can be configuration or array of configurations,
// each one will be tried one after the other till success,
// for all options for one conf read rpc/syscall.js
configure: function(conf) {
alerts.addAlert(filter('translate')('Trying to connect to aria2 using the new connection configuration'), 'info');
var params = _.map(subs, function(s) {
var p = s.params;
if (currentToken) {
p = ["token:" + currentToken].concat(p || []);
}
return {
methodName: s.name,
params: p && p.length ? p : undefined
};
});
if (conf instanceof Array)
configurations = conf;
else
configurations = [conf];
var error = function() {
needNewConnection = true;
var ind = configurations.indexOf(currentConf);
if (ind != -1) configurations.splice(ind, 1);
if (timeout) {
clearTimeout(timeout);
timeout = setTimeout(update, 0);
}
},
// If some proposed configurations are still in the pipeline then retry
if (configurations.length) {
alerts.log(
filter("translate")(
"The last connection attempt was unsuccessful. Trying another configuration"
)
);
timeout = setTimeout(update, 0);
} else {
alerts.addAlert(
"<strong>" +
filter("translate")("Oh Snap!") +
"</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);
}
};
// get current configuration being used
getConfiguration: function() { return currentConf },
syscall.invoke({
name: "system.multicall",
params: [params],
success: function(data) {
var failed = _.some(data.result, function(d) {
return d.code && d.message === "Unauthorized";
});
// get currently configured directURL
getDirectURL : function() { return currentConf.directURL },
if (failed) {
needNewConnection = true;
alerts.addAlert(
"<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);
return;
}
// syscall is done only once, delay is optional
// and pass true to only dispatch it in the global timeout
// which can be used to batch up once calls
once: function(name, params, cb, delay) {
cb = cb || angular.noop;
params = params || [];
if (configurations.length) {
// configuration worked, save it in cookie for next time and
// delete the pipelined configurations!!
if (currentToken)
alerts.addAlert(
filter("translate")("Successfully connected to Aria2 through its remote RPC …"),
"success"
);
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)"
)
);
configurations = [];
}
subscriptions.push({
once: true,
name: 'aria2.' + name,
params: params,
cb: cb
});
utils.setCookie("aria2conf", currentConf);
if (!delay) {
this.forceUpdate();
}
},
var cbs = [];
_.each(data.result, function(d, i) {
var handle = subs[i];
if (handle) {
if (d.code) {
console.error(handle, d);
alerts.addAlert(d.message, "error");
}
// run them later as the cb itself can mutate the subscriptions
cbs.push({ cb: handle.cb, data: d });
if (handle.once) {
handle.once = 2;
}
}
});
// callback is called each time with updated syscall data
// after the global timeout, delay is optional and pass it
// true to dispatch the first syscall also on global timeout
// which can be used to batch the subscribe calls
subscribe: function(name, params, cb, delay) {
cb = cb || angular.noop;
params = params || [];
_.each(cbs, function(hnd) {
hnd.cb(hnd.data);
});
var handle = {
once: false,
name: 'aria2.' + name,
params: params,
cb: cb
rootScope.$digest();
if (forceNextUpdate) {
forceNextUpdate = false;
timeout = setTimeout(update, 0);
} else {
timeout = setTimeout(update, globalTimeout);
}
},
error: error
});
};
subscriptions.push(handle);
if (!delay) this.forceUpdate();
return handle;
},
// initiate the update loop
timeout = setTimeout(update, globalTimeout);
// remove the subscribed callback by passing
// the returned handle bysubscribe
unsubscribe: function(handle) {
var ind = subscriptions.indexOf(handle);
subscriptions[ind] = null;
},
return {
// conf can be configuration or array of configurations,
// each one will be tried one after the other till success,
// for all options for one conf read rpc/syscall.js
configure: function(conf) {
alerts.addAlert(
filter("translate")(
"Trying to connect to aria2 using the new connection configuration"
),
"info"
);
// force the global syscall update
forceUpdate: function() {
if (timeout) {
clearTimeout(timeout);
timeout = setTimeout(update, 0);
}
else {
// a batch call is already in progress,
// wait till it returns and force the next one
forceNextUpdate = true;
}
if (conf instanceof Array) configurations = conf;
else configurations = [conf];
if (timeout) {
clearTimeout(timeout);
timeout = setTimeout(update, 0);
}
},
// get current configuration being used
getConfiguration: function() {
return currentConf;
},
// get currently configured directURL
getDirectURL: function() {
return currentConf.directURL;
},
// syscall is done only once, delay is optional
// and pass true to only dispatch it in the global timeout
// which can be used to batch up once calls
once: function(name, params, cb, delay) {
cb = cb || angular.noop;
params = params || [];
subscriptions.push({
once: true,
name: "aria2." + name,
params: params,
cb: cb
});
if (!delay) {
this.forceUpdate();
}
},
// callback is called each time with updated syscall data
// after the global timeout, delay is optional and pass it
// true to dispatch the first syscall also on global timeout
// which can be used to batch the subscribe calls
subscribe: function(name, params, cb, delay) {
cb = cb || angular.noop;
params = params || [];
var handle = {
once: false,
name: "aria2." + name,
params: params,
cb: cb
};
subscriptions.push(handle);
if (!delay) this.forceUpdate();
return handle;
},
// remove the subscribed callback by passing
// the returned handle bysubscribe
unsubscribe: function(handle) {
var ind = subscriptions.indexOf(handle);
subscriptions[ind] = null;
},
// force the global syscall update
forceUpdate: function() {
if (timeout) {
clearTimeout(timeout);
timeout = setTimeout(update, 0);
} else {
// a batch call is already in progress,
// wait till it returns and force the next one
forceNextUpdate = true;
}
}
};
}
};
}]);
]);

View File

@ -1,143 +1,157 @@
angular
.module('webui.services.rpc.sockcall', [
'webui.services.deps', 'webui.services.utils', 'webui.services.base64',
'webui.services.alerts'
])
.factory('$sockcall', ['$_', '$json', '$name', '$utils', '$alerts',
function(_, JSON, name, utils, alerts) {
var sockRPC = {
// true when sockrpc is ready to be used,
// false when either initializing
// or no support for web sockets
initialized: false,
.module("webui.services.rpc.sockcall", [
"webui.services.deps",
"webui.services.utils",
"webui.services.base64",
"webui.services.alerts"
])
.factory("$sockcall", [
"$_",
"$json",
"$name",
"$utils",
"$alerts",
function(_, JSON, name, utils, alerts) {
var sockRPC = {
// true when sockrpc is ready to be used,
// false when either initializing
// or no support for web sockets
initialized: false,
// ongoing connection handles containing connection id and callbacks
handles: [],
// ongoing connection handles containing connection id and callbacks
handles: [],
// websocket connection socket used for all connections
sock: null,
// websocket connection socket used for all connections
sock: null,
// connection configuration
conf: null,
// connection configuration
conf: null,
// socket connection scheme, default to unencrypted connection
scheme: 'ws',
// socket connection scheme, default to unencrypted connection
scheme: "ws",
// called when a connection error occurs
onerror: function(ev) {
_.each(sockRPC.handles, function(h) { h.error() });
sockRPC.handles = [];
sockRPC.initialized = false;
if (sockRPC.onready) {
sockRPC.onready();
sockRPC.onready = null;
}
},
onclose: function(ev) {
if (sockRPC.handles && sockRPC.handles.length)
sockRPC.onerror('Connection reset while calling aria2');
sockRPC.initialized = false;
if (sockRPC.onready) {
sockRPC.onready();
sockRPC.onready = null;
}
},
// called when a connection error occurs
onerror: function(ev) {
_.each(sockRPC.handles, function(h) {
h.error();
});
sockRPC.handles = [];
sockRPC.initialized = false;
if (sockRPC.onready) {
sockRPC.onready();
sockRPC.onready = null;
}
},
onclose: function(ev) {
if (sockRPC.handles && sockRPC.handles.length)
sockRPC.onerror("Connection reset while calling aria2");
sockRPC.initialized = false;
if (sockRPC.onready) {
sockRPC.onready();
sockRPC.onready = null;
}
},
// when connection opens
onopen: function() {
console.log('websocket initialized!!!');
sockRPC.initialized = true;
if (sockRPC.onready) {
sockRPC.onready();
sockRPC.onready = null;
}
},
// when connection opens
onopen: function() {
console.log("websocket initialized!!!");
sockRPC.initialized = true;
if (sockRPC.onready) {
sockRPC.onready();
sockRPC.onready = null;
}
},
// when message is recieved
onmessage: function(message) {
var data = JSON.parse(message.data);
// when message is recieved
onmessage: function(message) {
var data = JSON.parse(message.data);
// reverse loop because we are deleting elements
// while looping over the old items
for (var i = sockRPC.handles.length - 1; i >= 0; i--) {
if (sockRPC.handles[i].id === data.id) {
sockRPC.handles[i].success(data);
sockRPC.handles.splice(i, 1);
return;
}
}
},
// reverse loop because we are deleting elements
// while looping over the old items
for (var i = sockRPC.handles.length - 1; i >= 0; i--) {
if (sockRPC.handles[i].id === data.id) {
sockRPC.handles[i].success(data);
sockRPC.handles.splice(i, 1);
return;
// call to use the rpc
invoke: function(opts) {
var data = {
jsonrpc: 2.0,
id: utils.uuid(),
method: opts.name,
params: opts.params && opts.params.length ? opts.params : undefined
};
if (data.params && !data.params.length) data.params = undefined;
sockRPC.handles.push({
success: opts.success || angular.noop,
error: opts.error || angular.noop,
id: data.id
});
sockRPC.sock.send(JSON.stringify(data));
},
// should be called initially to start using the sock rpc
// onready is called when initial connection is resolved
init: function(conf, onready) {
sockRPC.initialized = false;
if (sockRPC.onready) {
// make previous call is resolved
sockRPC.onready();
sockRPC.onready = null;
}
if (typeof WebSocket == "undefined") {
alerts.addAlert("Web sockets are not supported! Falling back to JSONP.", "info");
onready();
return;
}
sockRPC.conf = conf || sockRPC.conf;
sockRPC.scheme = sockRPC.conf.encrypt ? "wss" : "ws";
if (sockRPC.sock) {
sockRPC.sock.onopen = sockRPC.sock.onmessage = sockRPC.sock.onerror = sockRPC.sock.onclose = null;
sockRPC.onerror({ message: "Changing the websocket aria2 server details" });
}
try {
var authUrl =
sockRPC.scheme + "://" + conf.host + ":" + conf.port + (conf.path || "/jsonrpc");
if (sockRPC.conf.auth && sockRPC.conf.auth.user && sockRPC.conf.auth.pass) {
authUrl =
sockRPC.scheme +
"://" +
sockRPC.conf.auth.user +
":" +
sockRPC.conf.auth.pass +
"@" +
sockRPC.conf.host +
":" +
sockRPC.conf.port +
(conf.path || "/jsonrpc");
}
sockRPC.sock = new WebSocket(authUrl);
sockRPC.sock.onopen = sockRPC.onopen;
sockRPC.sock.onclose = sockRPC.onclose;
sockRPC.sock.onerror = sockRPC.onerror;
sockRPC.sock.onmessage = sockRPC.onmessage;
sockRPC.onready = onready;
} catch (ex) {
// ignoring IE security exception on local ip addresses
console.log("not using websocket for aria2 rpc due to: ", ex);
alerts.addAlert("Web sockets not working due to " + ex.message, "info");
onready();
}
}
}
},
// call to use the rpc
invoke: function(opts) {
var data = {
jsonrpc: 2.0,
id: utils.uuid(),
method: opts.name,
params: opts.params && opts.params.length ? opts.params : undefined
};
if (data.params && !data.params.length) data.params = undefined;
sockRPC.handles.push({
success: opts.success || angular.noop,
error: opts.error || angular.noop,
id: data.id
});
sockRPC.sock.send( JSON.stringify(data) );
},
// should be called initially to start using the sock rpc
// onready is called when initial connection is resolved
init: function(conf, onready) {
sockRPC.initialized = false;
if (sockRPC.onready) {
// make previous call is resolved
sockRPC.onready();
sockRPC.onready = null;
}
if (typeof WebSocket == "undefined") {
alerts.addAlert('Web sockets are not supported! Falling back to JSONP.', 'info');
onready();
return;
}
sockRPC.conf = conf || sockRPC.conf;
sockRPC.scheme = sockRPC.conf.encrypt ? 'wss' : 'ws';
if (sockRPC.sock) {
sockRPC.sock.onopen = sockRPC.sock.onmessage = sockRPC.sock.onerror = sockRPC.sock.onclose = null;
sockRPC.onerror({message: 'Changing the websocket aria2 server details'});
}
try {
var authUrl = sockRPC.scheme + '://' + conf.host + ':' + conf.port + (conf.path || '/jsonrpc');
if (sockRPC.conf.auth && sockRPC.conf.auth.user && sockRPC.conf.auth.pass) {
authUrl = sockRPC.scheme + '://' +
sockRPC.conf.auth.user + ":" +
sockRPC.conf.auth.pass + "@" +
sockRPC.conf.host + ':' +
sockRPC.conf.port + (conf.path || '/jsonrpc');
}
sockRPC.sock = new WebSocket(authUrl);
sockRPC.sock.onopen = sockRPC.onopen;
sockRPC.sock.onclose = sockRPC.onclose;
sockRPC.sock.onerror = sockRPC.onerror;
sockRPC.sock.onmessage = sockRPC.onmessage;
sockRPC.onready = onready;
}
catch (ex) {
// ignoring IE security exception on local ip addresses
console.log('not using websocket for aria2 rpc due to: ', ex);
alerts.addAlert('Web sockets not working due to ' + ex.message, 'info');
onready();
}
},
};
return sockRPC;
}]);
return sockRPC;
}
]);

View File

@ -1,51 +1,57 @@
angular
.module('webui.services.rpc.syscall', [
'webui.services.rpc.jsoncall', 'webui.services.rpc.sockcall',
'webui.services.utils', 'webui.services.alerts'
])
.factory('$syscall', ['$log', '$jsoncall', '$sockcall', '$alerts',
function(log, jsonRPC, sockRPC, alerts) {
return {
state: 'none',
// called to initialize the rpc interface, call everytime configuration changes
// conf has the following structure:
// {
// host (string): host for the aria2 server
// port (number): port number for the aria2 server
// encrypt (boolean, optional): true if encryption is enabled in the aria2 server
// auth (optional): {
// token (string): secret token for authentication (--rpc-secret)
// user (string): username for http authentication if enabled
// pass (string): password for the http authentication if enabled
// }
init: function(conf) {
console.log("Syscall is initializing to", conf);
this.state = 'initializing';
jsonRPC.init(conf);
var syscall = this;
sockRPC.init(conf, function() {
console.log("Syscall is ready");
syscall.state = 'ready';
});
},
.module("webui.services.rpc.syscall", [
"webui.services.rpc.jsoncall",
"webui.services.rpc.sockcall",
"webui.services.utils",
"webui.services.alerts"
])
.factory("$syscall", [
"$log",
"$jsoncall",
"$sockcall",
"$alerts",
function(log, jsonRPC, sockRPC, alerts) {
return {
state: "none",
// called to initialize the rpc interface, call everytime configuration changes
// conf has the following structure:
// {
// host (string): host for the aria2 server
// port (number): port number for the aria2 server
// encrypt (boolean, optional): true if encryption is enabled in the aria2 server
// auth (optional): {
// token (string): secret token for authentication (--rpc-secret)
// user (string): username for http authentication if enabled
// pass (string): password for the http authentication if enabled
// }
init: function(conf) {
console.log("Syscall is initializing to", conf);
this.state = "initializing";
jsonRPC.init(conf);
var syscall = this;
sockRPC.init(conf, function() {
console.log("Syscall is ready");
syscall.state = "ready";
});
},
// call this to start an rpc call, opts has the following structure:
// {
// name (string): name of the actual aria2 syscall
// success (function): callback called with (parsed) data if rpc is successfull
// error (function): callback called when an error occurs
// params (array, optional): the params for some syscall (like multicall) and is optional for others
// }
invoke: function(opts) {
opts.success = opts.success || angular.noop;
opts.error = opts.error || angular.noop;
// call this to start an rpc call, opts has the following structure:
// {
// name (string): name of the actual aria2 syscall
// success (function): callback called with (parsed) data if rpc is successfull
// error (function): callback called when an error occurs
// params (array, optional): the params for some syscall (like multicall) and is optional for others
// }
invoke: function(opts) {
opts.success = opts.success || angular.noop;
opts.error = opts.error || angular.noop;
if (sockRPC.initialized) {
return sockRPC.invoke(opts);
}
else {
return jsonRPC.invoke(opts);
}
if (sockRPC.initialized) {
return sockRPC.invoke(opts);
} else {
return jsonRPC.invoke(opts);
}
}
};
}
};
}]);
]);

View File

@ -1,14 +1,17 @@
angular.module('webui.services.settings.filters', [])
.value('$globalsettingsexclude', [
"checksum", "index-out", "out", "pause", "select-file"
])
.value('$waitingsettingsexclude', [
"dry-run", "metalink-base-uri", "parameterized-uri", "pause",
"piece-length"
])
.value('$activesettingsfilter', [
"bt-max-peers", "bt-request-peer-speed-limit", "bt-remove-unselected-file",
"max-download-limit", "max-upload-limit",
]);
angular
.module("webui.services.settings.filters", [])
.value("$globalsettingsexclude", ["checksum", "index-out", "out", "pause", "select-file"])
.value("$waitingsettingsexclude", [
"dry-run",
"metalink-base-uri",
"parameterized-uri",
"pause",
"piece-length"
])
.value("$activesettingsfilter", [
"bt-max-peers",
"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,168 +1,187 @@
angular.module('webui.services.utils', ['webui.services.configuration'])
.factory('$utils', ['$filter', '$name', '$titlePattern', function(filter, $name, $titlePattern) {
var rnd16 = (function() {
"use strict";
var rndBuffer = new Uint8Array(16);
var rnd16Weak = function() {
for (var i = 0, r; i < 16; i++) {
if (!(i % 0x3)) r = Math.random() * 0x100000000 | 0;
rndBuffer[i] = r >>> ((i & 0x3) << 0x3) & 0xff;
}
return rndBuffer;
};
if (!window.crypto || !crypto.getRandomValues) {
return rnd16Weak;
}
return function() {
try {
crypto.getRandomValues(rndBuffer);
angular.module("webui.services.utils", ["webui.services.configuration"]).factory("$utils", [
"$filter",
"$name",
"$titlePattern",
function(filter, $name, $titlePattern) {
var rnd16 = (function() {
"use strict";
var rndBuffer = new Uint8Array(16);
var rnd16Weak = function() {
for (var i = 0, r; i < 16; i++) {
if (!(i % 0x3)) r = (Math.random() * 0x100000000) | 0;
rndBuffer[i] = (r >>> ((i & 0x3) << 0x3)) & 0xff;
}
return rndBuffer;
}
catch (ex) {
// Entropy might be exhausted
return rnd16Weak();
}
};
})();
var utils = {
fmtsize: function(len) {
len = +len; // coerce to number
if (len <= 1024) {
return len.toFixed(0) + " B";
}
len /= 1024;
if (len <= 1024) {
return len.toFixed(1) + " KB"
}
len /= 1024;
if (len <= 1024) {
return len.toFixed(2) + " MB";
}
len /= 1024;
return len.toFixed(3) + " GB";
},
fmtspeed: function(speed) {
return utils.fmtsize(speed) + "/s";
},
// saves the key value pair in cookies
setCookie: function(key, value) {
var exdate = new Date();
exdate.setDate(exdate.getDate() + 30 * 12);
var cvalue = escape(JSON.stringify(value)) + "; expires=" + exdate.toUTCString();
document.cookie = key + "=" + cvalue;
},
// gets a value for a key stored in cookies
getCookie: function(key) {
var chunks = document.cookie.split(";");
for (var i = 0; i < chunks.length; i++) {
var ckey = chunks[i].substr(0, chunks[i].indexOf("=")).replace(/^\s+|\s+$/g,"");
var cvalue = chunks[i].substr(chunks[i].indexOf("=") + 1);
if (key == ckey) {
return JSON.parse(unescape(cvalue));
}
}
return null;
},
getFileName: function(path) {
var seed = path.split(/[/\\]/);
return seed[seed.length - 1];
},
uuid: (function() {
var bt = [];
for (var i = 0; i < 0x100; ++i) {
bt.push((i + 0x100).toString(16).substr(1));
}
Object.freeze(bt);
return function() {
var r = rnd16();
r[6] = (r[6] & 0xf) | 0x40; // Version 4
r[8] = (r[8] & 0x3f) | 0x80; // Version 4y
return bt[r[0]] + bt[r[1]] + bt[r[2]] + 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() {
return utils.uuid();
},
// maps the array in place to the destination
// arr, dest (optional): array
// func: a merge mapping func, see ctrls/download.js
mergeMap: function(arr, dest, func) {
if (!dest) {
dest = [];
if (!window.crypto || !crypto.getRandomValues) {
return rnd16Weak;
}
for (var i = 0, e = Math.min(arr.length, dest.length); i < e; ++i) {
func(arr[i], dest[i]);
}
// Insert newly created downloads
while (i < arr.length) {
dest.push(func(arr[i++]));
}
// Truncate if necessary.
dest.length = arr.length;
return dest;
},
// get info title from global statistics
getTitle: function(stats) {
if(!stats) {
stats = {};
return function() {
try {
crypto.getRandomValues(rndBuffer);
return rndBuffer;
} catch (ex) {
// Entropy might be exhausted
return rnd16Weak();
}
return $titlePattern
.replace('{active}', stats.numActive || '⌛')
.replace('{waiting}', stats.numWaiting || '⌛')
.replace('{download_speed}', utils.fmtspeed(stats.downloadSpeed) || '⌛')
.replace('{upload_speed}', utils.fmtspeed(stats.uploadSpeed) || '⌛')
.replace('{stopped}', stats.numStopped || '⌛')
.replace('{name}', $name);
},
};
})();
// get download chunks from aria2 bitfield
getChunksFromHex: function(bitfield, numOfPieces) {
var chunks = [], len = 0, numPieces = parseInt(numOfPieces);
if (!bitfield) return [];
var utils = {
fmtsize: function(len) {
len = +len; // coerce to number
if (len <= 1024) {
return len.toFixed(0) + " B";
}
len /= 1024;
if (len <= 1024) {
return len.toFixed(1) + " KB";
}
len /= 1024;
if (len <= 1024) {
return len.toFixed(2) + " MB";
}
len /= 1024;
return len.toFixed(3) + " GB";
},
var totalDownloaded = 0;
if (numPieces > 1) {
var chunk_ratio = 1 / numPieces;
var piecesProcessed = 0;
for (var i = 0; i < bitfield.length; i++) {
var hex = parseInt(bitfield[i], 16);
for (var j = 1; j <= 4; j++) {
var bit = hex & (1 << (4 - j));
if (bit) totalDownloaded++;
var prog = !!bit;
if (len >= 1 && chunks[len - 1].show == prog) {
chunks[len - 1].ratio += chunk_ratio;
}
else {
chunks.push({
ratio: chunk_ratio,
show: prog
});
len++;
}
piecesProcessed++;
if (piecesProcessed == numPieces)
return chunks;
fmtspeed: function(speed) {
return utils.fmtsize(speed) + "/s";
},
// saves the key value pair in cookies
setCookie: function(key, value) {
var exdate = new Date();
exdate.setDate(exdate.getDate() + 30 * 12);
var cvalue = escape(JSON.stringify(value)) + "; expires=" + exdate.toUTCString();
document.cookie = key + "=" + cvalue;
},
// gets a value for a key stored in cookies
getCookie: function(key) {
var chunks = document.cookie.split(";");
for (var i = 0; i < chunks.length; i++) {
var ckey = chunks[i].substr(0, chunks[i].indexOf("=")).replace(/^\s+|\s+$/g, "");
var cvalue = chunks[i].substr(chunks[i].indexOf("=") + 1);
if (key == ckey) {
return JSON.parse(unescape(cvalue));
}
}
return null;
},
getFileName: function(path) {
var seed = path.split(/[/\\]/);
return seed[seed.length - 1];
},
uuid: (function() {
var bt = [];
for (var i = 0; i < 0x100; ++i) {
bt.push((i + 0x100).toString(16).substr(1));
}
Object.freeze(bt);
return function() {
var r = rnd16();
r[6] = (r[6] & 0xf) | 0x40; // Version 4
r[8] = (r[8] & 0x3f) | 0x80; // Version 4y
return (
bt[r[0]] +
bt[r[1]] +
bt[r[2]] +
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() {
return utils.uuid();
},
// maps the array in place to the destination
// arr, dest (optional): array
// func: a merge mapping func, see ctrls/download.js
mergeMap: function(arr, dest, func) {
if (!dest) {
dest = [];
}
for (var i = 0, e = Math.min(arr.length, dest.length); i < e; ++i) {
func(arr[i], dest[i]);
}
// Insert newly created downloads
while (i < arr.length) {
dest.push(func(arr[i++]));
}
// Truncate if necessary.
dest.length = arr.length;
return dest;
},
// get info title from global statistics
getTitle: function(stats) {
if (!stats) {
stats = {};
}
return $titlePattern
.replace("{active}", stats.numActive || "⌛")
.replace("{waiting}", stats.numWaiting || "⌛")
.replace("{download_speed}", utils.fmtspeed(stats.downloadSpeed) || "⌛")
.replace("{upload_speed}", utils.fmtspeed(stats.uploadSpeed) || "⌛")
.replace("{stopped}", stats.numStopped || "⌛")
.replace("{name}", $name);
},
// get download chunks from aria2 bitfield
getChunksFromHex: function(bitfield, numOfPieces) {
var chunks = [],
len = 0,
numPieces = parseInt(numOfPieces);
if (!bitfield) return [];
var totalDownloaded = 0;
if (numPieces > 1) {
var chunk_ratio = 1 / numPieces;
var piecesProcessed = 0;
for (var i = 0; i < bitfield.length; i++) {
var hex = parseInt(bitfield[i], 16);
for (var j = 1; j <= 4; j++) {
var bit = hex & (1 << (4 - j));
if (bit) totalDownloaded++;
var prog = !!bit;
if (len >= 1 && chunks[len - 1].show == prog) {
chunks[len - 1].ratio += chunk_ratio;
} else {
chunks.push({
ratio: chunk_ratio,
show: prog
});
len++;
}
piecesProcessed++;
if (piecesProcessed == numPieces) return chunks;
}
}
}
return chunks;
}
return chunks;
}
};
return utils;
}]);
};
return utils;
}
]);

View File

@ -1,154 +1,163 @@
if(typeof translations == 'undefined'){
translations = {};
if (typeof translations == "undefined") {
translations = {};
}
translations.cs_CZ = {
// header
'Search': 'Hledat',
// Nav menu
'Add': 'Přidat',
'By URIs': 'Z URI',
'By Torrents': 'Z torrentu',
'By Metalinks': 'Z metalinku',
'Manage': 'Spravovat',
'Pause All': 'Zastavit vše',
'Resume Paused': 'Obnovit zastavené',
'Purge Completed': 'Odstranit hotové',
'Shutdown Server': 'Vypnout server',
'Settings': 'Nastavení',
'Connection Settings': 'Nastavení připojení',
'Global Settings': 'Obecné nastavení',
'Server info': 'Informace o serveru',
'About and contribute': 'Informace',
'Toggle navigation': 'Přepnout ovládání',
// body
// nav side bar
'Miscellaneous': 'Různé',
'Global Statistics': 'Globální statistika',
'About': 'Informace',
'Displaying': 'Zobrazuji',
'of': 'z',
'downloads': 'stahování',
'Language': 'Jazyk',
// download filters
'Download Filters': 'Filtry stahování',
'Running': 'Stahují se',
'Active': 'Aktivní',
'Waiting': 'Čekající',
'Complete': 'Hotové',
'Error': 'Chyba',
'Paused': 'Zastavené',
'Removed': 'Odstraněné',
'Hide linked meta-data': 'Skrýt připojená meta-data',
'Toggle': 'Prohodit',
'Reset filters': 'Smazat filtry',
// download status
'Verifing': 'Ověřování',
'Verify Pending': 'Čekání na ověření',
// starred properties
'Quick Access Settings': 'Rychlé nastavení',
'Save': 'Uložit',
'Save settings': 'Uložit nastavení',
'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ů!',
'Peers': 'Zdroje',
'More Info': 'Víc informací',
'Remove': 'Odstranit',
'# of': '# z',
'Length': 'Délka',
// modals
'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.':
'- 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.':
'- 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.',
'Download settings': 'Nastavení stahování',
'Advanced settings': 'Pokročilé nastavení',
'Cancel': 'Zrušit',
'Start': 'Spustit',
'Choose': 'Zvolit',
'Quick Access (shown on the main page)': 'Rychlý přístup (Zobrazení na hlavní stránce)',
// add torrent modal
'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',
'- You can select multiple torrents to start multiple downloads.': ' - Můžete zvolit víc torrentů pro spuštění více stahování',
'- 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\"',
'Select Torrents': 'Vyberte torrenty',
'Select a Torrent': 'Vyberte torrent',
// add metalink modal
'Add Downloads By Metalinks': 'Přidat stahovní pomocí metalinku',
'Select Metalinks': 'Výběr metalinků',
'- Select the Metalink from the local filesystem to start the download.': '- Pro stahování vyberte metalink soubor z disku',
'- You can select multiple Metalinks to start multiple downloads.': '- Můžete zvolit víc mentalinků pro spuštění více stahování',
'Select a Metalink': 'Vyberte metalink',
// select file modal
'Choose files to start download for': 'Vyberte soubory pro stažení',
'Select to download': 'Vyberte ke stažení',
// settings modal
'Aria2 RPC host and port': 'Aria2 RPC host a port',
'Enter the host': 'Zadejte hosta',
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)':
'Zadejte IP nebo DNS jméno serveru na kterém běží Aria2 RPC (výchozí: localhost)',
'Enter the port': 'Zadejte port',
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)':
'Zadejte port serveru na kterém běží Aria2 RPC (výchozí: 6800)',
'Enter the RPC path': 'Zadejte cestu k RPC',
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'Zadejte cestu k endpointu Aria2 RPC (výchozí: /jsonrpc)',
'SSL/TLS encryption': 'SSL/TLS šifrování',
'Enable SSL/TLS encryption': 'Zapnout SSL/TLS šifrování',
'Enter the secret token (optional)': 'Zadejte bezpečnostní token (volitelné)',
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)':
'Zadejte bezpečnostní token k Aria2 RPC (nechte prázné pokud autentifikace není nastavena)',
'Enter the username (optional)': 'Zadejte uživatelské jméno (volitelné)',
'Enter the Aria2 RPC username (empty if authentication not enabled)':
'Zadejte uživatelské jméno pro Aria2 RPC (nechte prázné pokud autentifikace není nastavena)',
'Enter the password (optional)': 'Zadejte heslo (volitelné)',
'Enter the Aria2 RPC password (empty if authentication not enabled)': 'Zadej heslo k Aria2 RPC (nechte prázné pokud autentifikace není nastavena)',
'Enter base URL (optional)': 'Zadejte kořenovou URL serveru (volitelné)',
'Direct Download': 'Přímé stažení',
'If supplied, links will be created to enable direct download from the Aria2 server.':
'Jestliže je nastaveno, je možné stáhnout soubor přímo z Aria2 serveru.',
'(Requires appropriate webserver to be configured.)': '(Je třeba udělat patřičnou konfiguraci webserveru)',
'Save Connection configuration': 'Uložit nastavení',
'Filter': 'Filtr',
// server info modal
'Aria2 server info': 'Informace o Aria2 serveru',
'Aria2 Version': 'Verze Aria2',
'Features Enabled': 'Zapnuté funkce',
// about modal
'To download the latest version of the project, add issues or to contribute back, head on to':
'Ke stažení aktuální verze, nahlášení problému či přispění, zamiřte na',
'Or you can open the latest version in the browser through': 'Nebo můžete spustit aktuální verzi pomocí:',
'Close': 'Zavřít',
// labels
'Download status':'Stav stahování',
'Download Speed':'Rychlost stahování',
'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',
// header
Search: "Hledat",
// Nav menu
Add: "Přidat",
"By URIs": "Z URI",
"By Torrents": "Z torrentu",
"By Metalinks": "Z metalinku",
Manage: "Spravovat",
"Pause All": "Zastavit vše",
"Resume Paused": "Obnovit zastavené",
"Purge Completed": "Odstranit hotové",
"Shutdown Server": "Vypnout server",
Settings: "Nastavení",
"Connection Settings": "Nastavení připojení",
"Global Settings": "Obecné nastavení",
"Server info": "Informace o serveru",
"About and contribute": "Informace",
"Toggle navigation": "Přepnout ovládání",
// body
// nav side bar
Miscellaneous: "Různé",
"Global Statistics": "Globální statistika",
About: "Informace",
Displaying: "Zobrazuji",
of: "z",
downloads: "stahování",
Language: "Jazyk",
// download filters
"Download Filters": "Filtry stahování",
Running: "Stahují se",
Active: "Aktivní",
Waiting: "Čekající",
Complete: "Hotové",
Error: "Chyba",
Paused: "Zastavené",
Removed: "Odstraněné",
"Hide linked meta-data": "Skrýt připojená meta-data",
Toggle: "Prohodit",
"Reset filters": "Smazat filtry",
// download status
Verifing: "Ověřování",
"Verify Pending": "Čekání na ověření",
// starred properties
"Quick Access Settings": "Rychlé nastavení",
Save: "Uložit",
"Save settings": "Uložit nastavení",
"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ů!",
Peers: "Zdroje",
"More Info": "Víc informací",
Remove: "Odstranit",
"# of": "# z",
Length: "Délka",
// modals
"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.":
"- 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.":
"- 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.",
"Download settings": "Nastavení stahování",
"Advanced settings": "Pokročilé nastavení",
Cancel: "Zrušit",
Start: "Spustit",
Choose: "Zvolit",
"Quick Access (shown on the main page)": "Rychlý přístup (Zobrazení na hlavní stránce)",
// add torrent modal
"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",
"- You can select multiple torrents to start multiple downloads.":
" - Můžete zvolit víc torrentů pro spuštění více stahování",
"- 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"',
"Select Torrents": "Vyberte torrenty",
"Select a Torrent": "Vyberte torrent",
// add metalink modal
"Add Downloads By Metalinks": "Přidat stahovní pomocí metalinku",
"Select Metalinks": "Výběr metalinků",
"- Select the Metalink from the local filesystem to start the download.":
"- Pro stahování vyberte metalink soubor z disku",
"- You can select multiple Metalinks to start multiple downloads.":
"- Můžete zvolit víc mentalinků pro spuštění více stahování",
"Select a Metalink": "Vyberte metalink",
// select file modal
"Choose files to start download for": "Vyberte soubory pro stažení",
"Select to download": "Vyberte ke stažení",
// settings modal
"Aria2 RPC host and port": "Aria2 RPC host a port",
"Enter the host": "Zadejte hosta",
"Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
"Zadejte IP nebo DNS jméno serveru na kterém běží Aria2 RPC (výchozí: localhost)",
"Enter the port": "Zadejte port",
"Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
"Zadejte port serveru na kterém běží Aria2 RPC (výchozí: 6800)",
"Enter the RPC path": "Zadejte cestu k RPC",
"Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
"Zadejte cestu k endpointu Aria2 RPC (výchozí: /jsonrpc)",
"SSL/TLS encryption": "SSL/TLS šifrování",
"Enable SSL/TLS encryption": "Zapnout SSL/TLS šifrování",
"Enter the secret token (optional)": "Zadejte bezpečnostní token (volitelné)",
"Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
"Zadejte bezpečnostní token k Aria2 RPC (nechte prázné pokud autentifikace není nastavena)",
"Enter the username (optional)": "Zadejte uživatelské jméno (volitelné)",
"Enter the Aria2 RPC username (empty if authentication not enabled)":
"Zadejte uživatelské jméno pro Aria2 RPC (nechte prázné pokud autentifikace není nastavena)",
"Enter the password (optional)": "Zadejte heslo (volitelné)",
"Enter the Aria2 RPC password (empty if authentication not enabled)":
"Zadej heslo k Aria2 RPC (nechte prázné pokud autentifikace není nastavena)",
"Enter base URL (optional)": "Zadejte kořenovou URL serveru (volitelné)",
"Direct Download": "Přímé stažení",
"If supplied, links will be created to enable direct download from the Aria2 server.":
"Jestliže je nastaveno, je možné stáhnout soubor přímo z Aria2 serveru.",
"(Requires appropriate webserver to be configured.)":
"(Je třeba udělat patřičnou konfiguraci webserveru)",
"Save Connection configuration": "Uložit nastavení",
Filter: "Filtr",
// server info modal
"Aria2 server info": "Informace o Aria2 serveru",
"Aria2 Version": "Verze Aria2",
"Features Enabled": "Zapnuté funkce",
// about modal
"To download the latest version of the project, add issues or to contribute back, head on to":
"Ke stažení aktuální verze, nahlášení problému či přispění, zamiřte na",
"Or you can open the latest version in the browser through":
"Nebo můžete spustit aktuální verzi pomocí:",
Close: "Zavřít",
// labels
"Download status": "Stav stahování",
"Download Speed": "Rychlost stahování",
"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
'The last connection attempt was unsuccessful. Trying another configuration':
'Poslední pokus o připojení se nezdařil. Zkuste jiné nastavení',
'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':
'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':
'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 …':
'Ú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)':
'Ú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':
'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.
'Odstranit {{name}} a příslušná meta-data?'
//alerts
"The last connection attempt was unsuccessful. Trying another configuration":
"Poslední pokus o připojení se nezdařil. Zkuste jiné nastavení",
"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":
"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":
"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 …":
"Ú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)":
"Ú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":
"Zkouším se připojit k Aria2 za pomocí nového nastavení",
// {{name}} refers to the download name, do not modify.
"Remove {{name}} and associated meta-data?": "Odstranit {{name}} a příslušná meta-data?"
};

View File

@ -1,132 +1,144 @@
if(typeof translations == 'undefined'){
translations = {};
if (typeof translations == "undefined") {
translations = {};
}
translations.de_DE = {
// header
'Search': 'Suche',
// Nav menu
'Add': 'Hinzufügen',
'By URIs': 'mit URIs',
'By Torrents': 'mit Torrents',
'By Metalinks': 'mit Metalinks',
'Manage': 'Verwalten',
'Pause All': 'Alle anhalten',
'Resume Paused': 'Angehaltene fortsetzen',
'Purge Completed': 'Fertige entfernen',
'Settings': 'Einstellungen',
'Connection Settings': 'Verbindungseinstellungen',
'Global Settings': 'Globale Einstellungen',
'Server info': 'Server Information',
'About and contribute': 'Über webui-aria2',
'Toggle navigation': 'Navigation an/ausschalten',
// body
// nav side bar
'Miscellaneous': 'Verschiedenes',
'Global Statistics': 'Globale Statistiken',
'About': 'Über',
'Displaying': 'Anzeige',
'of': 'von',
'downloads': 'Downloads',
'Language': 'Sprache',
// download filters
'Download Filters': 'Download Filter',
'Running': 'Laufende',
'Active': 'Aktive',
'Waiting': 'Wartende',
'Complete': 'Fertige',
'Error': 'Fehler',
'Paused': 'Angehaltene',
'Removed': 'Gelöschte',
'Hide linked meta-data': 'Blende verlinkte Meta-Daten aus',
'Toggle': 'Umschalten',
'Reset filters': 'Filter zurücksetzen',
// starred properties
'Quick Access Settings': 'Ausgewählte Einstellungen',
'Save settings': 'Einstellungen speichern',
'Currently no download in line to display, use the': 'Aktuell sind keine Downloads vorhanden, bitte benutz den',
'download button to start downloading files!': 'Download Link um den Download von Dateien zu beginnen!',
'Peers': 'Peers',
'More Info': 'Mehr Infos',
'Remove': 'Entfernen',
'# of': '# von',
'Length': 'Länge',
// modals
'Add Downloads By URIs': 'Downloads anhand von URIs hinzufügen',
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.':
'- Es können mehrere Downloads (Dateien) gleichzeitig hinzugefügt werden, indem jede URI in eine separate Zeile eingegeben wird.',
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.':
'- Es können auch mehrere URIs (Spiegelserver) für *dieselbe* Datei durch Leerzeichen getrennt angegeben werden.',
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '- Eine URI kann folgende Protokolle besitzen: HTTP(S)/FTP/BitTorrent-Magnet.',
'Download settings': 'Download Einstellungen',
'Advanced settings': 'Erweiterte Einstellungen',
'Cancel': 'Abbrechen',
'Start': 'Beginnen',
'Choose': 'Auswählen',
'Quick Access (shown on the main page)': 'Schnellzugriff (Anzeige auf der Hauptseite)',
// add torrent modal
'Add Downloads By Torrents': 'Downloads mit Torrents hinzufügen',
'- Select the torrent from the local filesystem to start the download.': '- Wähle ein Torrent vom lokalen Dateisystem um den Download zu starten',
'- You can select multiple torrents to start multiple downloads.': '- Es können mehrere Torrents ausgewählt werden um mehrere Downloads zu starten',
'- 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\'',
'Select Torrents': 'Wähle Torrents',
'Select a Torrent': 'Wähle ein Torrent',
// add metalink modal
'Add Downloads By Metalinks': 'Download mit Metalinks hinzufügen',
'Select Metalinks': 'Wähle Metalinks',
'- Select the Metalink from the local filesystem to start the download.': '- Wähle ein Metalink vom lokalen Dateisystem um den Download zu starten',
'- You can select multiple Metalinks to start multiple downloads.': '- Es können mehrere Metalinks ausgewählt werden um mehrere Downloads zu starten',
'Select a Metalink': 'Wähle einen Metalink',
// select file modal
'Choose files to start download for': 'Wähle Dateien für den Download aus',
'Select to download': 'Wähle zum Download',
// settings modal
'Aria2 RPC host and port': 'Aria2 RPC host und port',
'Enter the host': 'Host',
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)':
'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 port': 'Port',
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)':
'Gib den Port des Servers ein, auf dem der RPC-Dienst von Aria2 läuft (Standard: 6800)',
'Enter the RPC path': 'RPC Pfad',
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'Gib den Pfad zum Aria2 RPC Endpunkt an (Standard: /jsonrpc)',
'SSL/TLS encryption': 'SSL/TLS',
'Enable SSL/TLS encryption': 'Aktiviere SSL/TLS Verschlüsselung',
'Enter the secret token (optional)': 'Secret Token (optional)',
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)':
'Gib den Aria2 RPC secret Token ein (leer lassen falls keine Authentifizierung aktiv)',
'Enter the username (optional)': 'Benutzername (optional)',
'Enter the Aria2 RPC username (empty if authentication not enabled)':
'Gib den Aria2 RPC Benutzernamen ein (leer lassen falls keine Authentifizierung aktiv)',
'Enter the password (optional)': 'Passwort (optional)',
'Enter the Aria2 RPC password (empty if authentication not enabled)': 'Gib das Aria2 RPC Passwort ein (leer lassen falls keine Authentifizierung aktiv)',
'Enter base URL (optional)': 'Base URL (optional)',
'Direct Download': 'Direkter Download',
'If supplied, links will be created to enable direct download from the Aria2 server.':
'Falls angegeben, werden Links erstellt um einen direkten Download vom Aria2 Server zu ermöglichen',
'(Requires appropriate webserver to be configured.)': '(Es wird ein entsprechend konfigurierter WebServer benötigt.)',
'Save Connection configuration': 'Speichern der Verbindungseinstellung',
'Filter': 'Filter',
// server info modal
'Aria2 server info': 'Aria2 Server Info',
'Aria2 Version': 'Aria2 Version',
'Features Enabled': 'Aktive Funktionen',
// about modal
'To download the latest version of the project, add issues or to contribute back, head on to':
'Um die neuste Version des Projects zu laden, Fehler zu melden oder sich zu beteiligen, besuch',
'Or you can open the latest version in the browser through': 'Oder du kannst die neueste Version direkt in deinem Browser verwenden',
'Close': 'Schließen',
// 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'
// header
Search: "Suche",
// Nav menu
Add: "Hinzufügen",
"By URIs": "mit URIs",
"By Torrents": "mit Torrents",
"By Metalinks": "mit Metalinks",
Manage: "Verwalten",
"Pause All": "Alle anhalten",
"Resume Paused": "Angehaltene fortsetzen",
"Purge Completed": "Fertige entfernen",
Settings: "Einstellungen",
"Connection Settings": "Verbindungseinstellungen",
"Global Settings": "Globale Einstellungen",
"Server info": "Server Information",
"About and contribute": "Über webui-aria2",
"Toggle navigation": "Navigation an/ausschalten",
// body
// nav side bar
Miscellaneous: "Verschiedenes",
"Global Statistics": "Globale Statistiken",
About: "Über",
Displaying: "Anzeige",
of: "von",
downloads: "Downloads",
Language: "Sprache",
// download filters
"Download Filters": "Download Filter",
Running: "Laufende",
Active: "Aktive",
Waiting: "Wartende",
Complete: "Fertige",
Error: "Fehler",
Paused: "Angehaltene",
Removed: "Gelöschte",
"Hide linked meta-data": "Blende verlinkte Meta-Daten aus",
Toggle: "Umschalten",
"Reset filters": "Filter zurücksetzen",
// starred properties
"Quick Access Settings": "Ausgewählte Einstellungen",
"Save settings": "Einstellungen speichern",
"Currently no download in line to display, use the":
"Aktuell sind keine Downloads vorhanden, bitte benutz den",
"download button to start downloading files!":
"Download Link um den Download von Dateien zu beginnen!",
Peers: "Peers",
"More Info": "Mehr Infos",
Remove: "Entfernen",
"# of": "# von",
Length: "Länge",
// modals
"Add Downloads By URIs": "Downloads anhand von URIs hinzufügen",
"- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
"- Es können mehrere Downloads (Dateien) gleichzeitig hinzugefügt werden, indem jede URI in eine separate Zeile eingegeben wird.",
"- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
"- Es können auch mehrere URIs (Spiegelserver) für *dieselbe* Datei durch Leerzeichen getrennt angegeben werden.",
"- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.":
"- Eine URI kann folgende Protokolle besitzen: HTTP(S)/FTP/BitTorrent-Magnet.",
"Download settings": "Download Einstellungen",
"Advanced settings": "Erweiterte Einstellungen",
Cancel: "Abbrechen",
Start: "Beginnen",
Choose: "Auswählen",
"Quick Access (shown on the main page)": "Schnellzugriff (Anzeige auf der Hauptseite)",
// add torrent modal
"Add Downloads By Torrents": "Downloads mit Torrents hinzufügen",
"- Select the torrent from the local filesystem to start the download.":
"- Wähle ein Torrent vom lokalen Dateisystem um den Download zu starten",
"- You can select multiple torrents to start multiple downloads.":
"- Es können mehrere Torrents ausgewählt werden um mehrere Downloads zu starten",
"- 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'",
"Select Torrents": "Wähle Torrents",
"Select a Torrent": "Wähle ein Torrent",
// add metalink modal
"Add Downloads By Metalinks": "Download mit Metalinks hinzufügen",
"Select Metalinks": "Wähle Metalinks",
"- Select the Metalink from the local filesystem to start the download.":
"- Wähle ein Metalink vom lokalen Dateisystem um den Download zu starten",
"- You can select multiple Metalinks to start multiple downloads.":
"- Es können mehrere Metalinks ausgewählt werden um mehrere Downloads zu starten",
"Select a Metalink": "Wähle einen Metalink",
// select file modal
"Choose files to start download for": "Wähle Dateien für den Download aus",
"Select to download": "Wähle zum Download",
// settings modal
"Aria2 RPC host and port": "Aria2 RPC host und port",
"Enter the host": "Host",
"Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
"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 port": "Port",
"Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
"Gib den Port des Servers ein, auf dem der RPC-Dienst von Aria2 läuft (Standard: 6800)",
"Enter the RPC path": "RPC Pfad",
"Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
"Gib den Pfad zum Aria2 RPC Endpunkt an (Standard: /jsonrpc)",
"SSL/TLS encryption": "SSL/TLS",
"Enable SSL/TLS encryption": "Aktiviere SSL/TLS Verschlüsselung",
"Enter the secret token (optional)": "Secret Token (optional)",
"Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
"Gib den Aria2 RPC secret Token ein (leer lassen falls keine Authentifizierung aktiv)",
"Enter the username (optional)": "Benutzername (optional)",
"Enter the Aria2 RPC username (empty if authentication not enabled)":
"Gib den Aria2 RPC Benutzernamen ein (leer lassen falls keine Authentifizierung aktiv)",
"Enter the password (optional)": "Passwort (optional)",
"Enter the Aria2 RPC password (empty if authentication not enabled)":
"Gib das Aria2 RPC Passwort ein (leer lassen falls keine Authentifizierung aktiv)",
"Enter base URL (optional)": "Base URL (optional)",
"Direct Download": "Direkter Download",
"If supplied, links will be created to enable direct download from the Aria2 server.":
"Falls angegeben, werden Links erstellt um einen direkten Download vom Aria2 Server zu ermöglichen",
"(Requires appropriate webserver to be configured.)":
"(Es wird ein entsprechend konfigurierter WebServer benötigt.)",
"Save Connection configuration": "Speichern der Verbindungseinstellung",
Filter: "Filter",
// server info modal
"Aria2 server info": "Aria2 Server Info",
"Aria2 Version": "Aria2 Version",
"Features Enabled": "Aktive Funktionen",
// about modal
"To download the latest version of the project, add issues or to contribute back, head on to":
"Um die neuste Version des Projects zu laden, Fehler zu melden oder sich zu beteiligen, besuch",
"Or you can open the latest version in the browser through":
"Oder du kannst die neueste Version direkt in deinem Browser verwenden",
Close: "Schließen",
// 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'){
translations = {};
if (typeof translations == "undefined") {
translations = {};
}
translations.en_US = {
// header
'Search': 'Search',
// 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',
// body
// 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',
'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
'Verifing': 'Verifing',
'Verify Pending': 'Verify Pending',
// 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
'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 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 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
'Choose files to start download for': 'Choose files to start download for',
'Select to download': 'Select to download',
// 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 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 password (optional)',
'Enter the Aria2 RPC password (empty if authentication not enabled)': 'Enter the Aria2 RPC password (empty if authentication not enabled)',
'Enter base URL (optional)': 'Enter base URL (optional)',
'Direct Download': 'Direct Download',
'If supplied, links will be created to enable direct download from the Aria2 server.':
'If supplied, links will be created to enable direct download from the Aria2 server.',
'(Requires appropriate webserver to be configured.)': '(Requires appropriate webserver to be configured.)',
'Save Connection configuration': 'Save Connection configuration',
'Filter': 'Filter',
// server info modal
'Aria2 server info': 'Aria2 server info',
'Aria2 Version': 'Aria2 Version',
'Features Enabled': 'Features Enabled',
// about modal
'To download the latest version of the project, add issues or to contribute back, head on to':
'To download the latest version of the project, add issues or to contribute back, head on to',
'Or you can open the latest version in the browser through': 'Or you can open the latest version in the browser through',
'Close': 'Close',
// lables
'Download status':'Download status',
'Download Speed':'Download Speed',
'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',
// header
Search: "Search",
// 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",
// body
// 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",
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
Verifing: "Verifing",
"Verify Pending": "Verify Pending",
// 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
"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 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 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
"Choose files to start download for": "Choose files to start download for",
"Select to download": "Select to download",
// 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 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 password (optional)",
"Enter the Aria2 RPC password (empty if authentication not enabled)":
"Enter the Aria2 RPC password (empty if authentication not enabled)",
"Enter base URL (optional)": "Enter base URL (optional)",
"Direct Download": "Direct Download",
"If supplied, links will be created to enable direct download from the Aria2 server.":
"If supplied, links will be created to enable direct download from the Aria2 server.",
"(Requires appropriate webserver to be configured.)":
"(Requires appropriate webserver to be configured.)",
"Save Connection configuration": "Save Connection configuration",
Filter: "Filter",
// server info modal
"Aria2 server info": "Aria2 server info",
"Aria2 Version": "Aria2 Version",
"Features Enabled": "Features Enabled",
// about modal
"To download the latest version of the project, add issues or to contribute back, head on to":
"To download the latest version of the project, add issues or to contribute back, head on to",
"Or you can open the latest version in the browser through":
"Or you can open the latest version in the browser through",
Close: "Close",
// lables
"Download status": "Download status",
"Download Speed": "Download Speed",
"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',
'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': 'Trying to connect to aria2 using the new connection configuration',
'Remove {{name}} and associated meta-data?': 'Remove {{name}} and associated meta-data?'
"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":
"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.
// http://angular-translate.github.io/docs/en/#/guide/07_multi-language
if(typeof translations == 'undefined'){
translations = {};
if (typeof translations == "undefined") {
translations = {};
}
translations.es_ES = { // replace en_US to ll_CC, examples: zh_CN, de_AT.
// header
'Search': 'Buscar',
// Nav menu
'Add': 'Añadir',
'By URIs': 'URIs',
'By Torrents': 'Torrents',
'By Metalinks': 'Metalinks',
'Manage': 'Administrar',
'Pause All': 'Pausar Todos',
'Resume Paused': 'Reanudar Pausados',
'Purge Completed': 'Purgar Completados',
'Shutdown Server': 'Desactivar servidor',
'Settings': 'Ajustes',
'Connection Settings': 'Ajustes de Conexión',
'Global Settings': 'Ajustes Globales',
'Server info': 'Info de Servidor',
'About and contribute': 'Acerca y Colaborar',
'Toggle navigation': 'Conmutar Navegación',
// body
// nav side bar
'Miscellaneous': 'Otros',
'Global Statistics': 'Estadísticas Globales',
'About': 'Acerca de',
'Displaying': 'Mostrando',
'of': 'de',
'downloads': 'descargas',
'Language': 'Idioma',
// download filters
'Download Filters': 'Filtros de Descargas',
'Running': 'Procesando',
'Active': 'Activo',
'Waiting': 'Esperando',
'Complete': 'Completo',
'Error': 'Error',
'Paused': 'En Pausa',
'Removed': 'Eliminado',
'Hide linked meta-data': 'Ocultar metadatos adjuntos',
'Toggle': 'Conmutar',
'Reset filters': 'Restablecer Filtros',
// download status
'Verifing': 'Verificando',
'Verify Pending': 'Pendiente de verificación',
// starred properties
'Quick Access Settings': 'Ajustes Rápidos',
'Save': 'Guardar',
'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',
'download button to start downloading files!': 'para empezar a descargar sus archivos!',
'Peers': 'Pares',
'More Info': 'Mas Info',
'Remove': 'Eliminar',
'# of': '# de',
'Length': 'Longitud',
// modals
'Add Downloads By URIs': 'Añadir descargas por URIs',
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.':
'Añada varias descargas colocando la URI de cada descarga en una línea separada.',
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.':
'Puede añadir URIs de espejo para *el mismo* archivo. Separe cada URI con un espacio.',
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': 'Una URI puede ser HTTP(S), FTP, BitTorrent o Magnet.',
'Download settings': 'Ajustes de Descargas',
'Advanced settings': 'Ajustes Avanzados',
'Cancel': 'Cancelar',
'Start': 'Iniciar',
'Choose': 'Escoja',
'Quick Access (shown on the main page)': 'Acceso Rápido (Se muestra en la pág principal)',
// add torrent modal
'Add Downloads By Torrents': 'Añadir descargas Torrent',
'- Select the torrent from the local filesystem to start the download.': 'Seleccione el archivo Torrent de su equipo para iniciar la descarga',
'- You can select multiple torrents to start multiple downloads.': 'Puede seleccionar varios torrents',
'- 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 Torrents': 'Escoja los Torrents',
'Select a Torrent': 'Escoja el Torrent',
// add metalink modal
'Add Downloads By Metalinks': 'Añadir descargas Metalink',
'Select Metalinks': 'Seleccione el Metalink',
'- Select the Metalink from the local filesystem to start the download.': 'Escoja el archivo Metalink de su equipo para iniciar la descarga',
'- You can select multiple Metalinks to start multiple downloads.': 'Puede escoger varios archivos Metalink',
'Select a Metalink': 'Escoja el archivo Metalink',
// select file modal
'Choose files to start download for': 'Escoja los archivos que desea descargar',
'Select to download': 'Escoja que descargar',
// settings modal
'Aria2 RPC host and port': 'Servidor Aria2 y puerto',
'Enter the host': 'Escriba la dirección',
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)':
'Escriba la dirección o nombre DNS del servidor Aria2 (por defecto: localhost)',
'Enter the port': 'Escriba el puerto',
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)':
'Escriba el número del puerto del servidor Aria2 (por defecto: 6800)',
'Enter the RPC path': 'Escriba la ruta RPC',
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'Escriba la ruta de acceso RPC de Aria2 (por defecto: /jsonrpc)',
'SSL/TLS encryption': 'Cifrado SSL/TLS',
'Enable SSL/TLS encryption': 'Habilitar Cifrado SSL/TLS',
'Enter the secret token (optional)': 'Escriba la frase Token (opcional)',
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)':
'Escriba la frase Token secreta (vacío si la autenticación está deshabilitada)',
'Enter the username (optional)': 'Usuario (opcional)',
'Enter the Aria2 RPC username (empty if authentication not enabled)':
'Escriba el nombre de usuario (vacío si la autenticación está deshabilitada)',
'Enter the password (optional)': 'Escriba la contraseña',
'Enter the Aria2 RPC password (empty if authentication not enabled)': 'Escriba la contraseña RPC (vacío si la autenticación está deshabilitada)',
'Enter base URL (optional)': 'Escriba la URL base (opcional)',
'Direct Download': 'Descarga Directa',
'If supplied, links will be created to enable direct download from the Aria2 server.':
'Esto permite crear enlaces de descarga de los archivos desde el servidor Aria2',
'(Requires appropriate webserver to be configured.)': '(Requiere configuración apropiada del servidor web)',
'Save Connection configuration': 'Guardar Configuración',
'Filter': 'Filrar',
// server info modal
'Aria2 server info': 'Información de servidor Aria2',
'Aria2 Version': 'Aria2 versión',
'Features Enabled': 'Funcionalidad disponible',
// about modal
'To download the latest version of the project, add issues or to contribute back, head on to':
'Para obtener la última versión del proyecto, reportar problemas o colaborar, vaya a',
'Or you can open the latest version in the browser through': 'Puede abrir la última versión en su navegador, directamente',
'Close': 'Cerrar',
// labels
'Download status':'Estado de descarga',
'Download Speed':'Velocidad de descarga',
'Upload Speed':'Vel. Subida',
'Estimated time':'Tiempo estimado',
'Download Size':'Tamaño de descarga',
'Downloaded':'Descargado',
'Progress':'Progreso',
'Download Path':'Carpeta de descarga',
'Uploaded':'Subido',
'Download GID':'GID de Descarga',
'Number of Pieces':'N° de Piezas',
'Piece Length':'Tamaño de pieza',
//alerts
'The last connection attempt was unsuccessful. Trying another configuration':
'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'
translations.es_ES = {
// replace en_US to ll_CC, examples: zh_CN, de_AT.
// header
Search: "Buscar",
// Nav menu
Add: "Añadir",
"By URIs": "URIs",
"By Torrents": "Torrents",
"By Metalinks": "Metalinks",
Manage: "Administrar",
"Pause All": "Pausar Todos",
"Resume Paused": "Reanudar Pausados",
"Purge Completed": "Purgar Completados",
"Shutdown Server": "Desactivar servidor",
Settings: "Ajustes",
"Connection Settings": "Ajustes de Conexión",
"Global Settings": "Ajustes Globales",
"Server info": "Info de Servidor",
"About and contribute": "Acerca y Colaborar",
"Toggle navigation": "Conmutar Navegación",
// body
// nav side bar
Miscellaneous: "Otros",
"Global Statistics": "Estadísticas Globales",
About: "Acerca de",
Displaying: "Mostrando",
of: "de",
downloads: "descargas",
Language: "Idioma",
// download filters
"Download Filters": "Filtros de Descargas",
Running: "Procesando",
Active: "Activo",
Waiting: "Esperando",
Complete: "Completo",
Error: "Error",
Paused: "En Pausa",
Removed: "Eliminado",
"Hide linked meta-data": "Ocultar metadatos adjuntos",
Toggle: "Conmutar",
"Reset filters": "Restablecer Filtros",
// download status
Verifing: "Verificando",
"Verify Pending": "Pendiente de verificación",
// starred properties
"Quick Access Settings": "Ajustes Rápidos",
Save: "Guardar",
"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",
"download button to start downloading files!": "para empezar a descargar sus archivos!",
Peers: "Pares",
"More Info": "Mas Info",
Remove: "Eliminar",
"# of": "# de",
Length: "Longitud",
// modals
"Add Downloads By URIs": "Añadir descargas por URIs",
"- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
"Añada varias descargas colocando la URI de cada descarga en una línea separada.",
"- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
"Puede añadir URIs de espejo para *el mismo* archivo. Separe cada URI con un espacio.",
"- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.":
"Una URI puede ser HTTP(S), FTP, BitTorrent o Magnet.",
"Download settings": "Ajustes de Descargas",
"Advanced settings": "Ajustes Avanzados",
Cancel: "Cancelar",
Start: "Iniciar",
Choose: "Escoja",
"Quick Access (shown on the main page)": "Acceso Rápido (Se muestra en la pág principal)",
// add torrent modal
"Add Downloads By Torrents": "Añadir descargas Torrent",
"- Select the torrent from the local filesystem to start the download.":
"Seleccione el archivo Torrent de su equipo para iniciar la descarga",
"- You can select multiple torrents to start multiple downloads.":
"Puede seleccionar varios torrents",
"- 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 Torrents": "Escoja los Torrents",
"Select a Torrent": "Escoja el Torrent",
// add metalink modal
"Add Downloads By Metalinks": "Añadir descargas Metalink",
"Select Metalinks": "Seleccione el Metalink",
"- Select the Metalink from the local filesystem to start the download.":
"Escoja el archivo Metalink de su equipo para iniciar la descarga",
"- You can select multiple Metalinks to start multiple downloads.":
"Puede escoger varios archivos Metalink",
"Select a Metalink": "Escoja el archivo Metalink",
// select file modal
"Choose files to start download for": "Escoja los archivos que desea descargar",
"Select to download": "Escoja que descargar",
// settings modal
"Aria2 RPC host and port": "Servidor Aria2 y puerto",
"Enter the host": "Escriba la dirección",
"Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
"Escriba la dirección o nombre DNS del servidor Aria2 (por defecto: localhost)",
"Enter the port": "Escriba el puerto",
"Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
"Escriba el número del puerto del servidor Aria2 (por defecto: 6800)",
"Enter the RPC path": "Escriba la ruta RPC",
"Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
"Escriba la ruta de acceso RPC de Aria2 (por defecto: /jsonrpc)",
"SSL/TLS encryption": "Cifrado SSL/TLS",
"Enable SSL/TLS encryption": "Habilitar Cifrado SSL/TLS",
"Enter the secret token (optional)": "Escriba la frase Token (opcional)",
"Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
"Escriba la frase Token secreta (vacío si la autenticación está deshabilitada)",
"Enter the username (optional)": "Usuario (opcional)",
"Enter the Aria2 RPC username (empty if authentication not enabled)":
"Escriba el nombre de usuario (vacío si la autenticación está deshabilitada)",
"Enter the password (optional)": "Escriba la contraseña",
"Enter the Aria2 RPC password (empty if authentication not enabled)":
"Escriba la contraseña RPC (vacío si la autenticación está deshabilitada)",
"Enter base URL (optional)": "Escriba la URL base (opcional)",
"Direct Download": "Descarga Directa",
"If supplied, links will be created to enable direct download from the Aria2 server.":
"Esto permite crear enlaces de descarga de los archivos desde el servidor Aria2",
"(Requires appropriate webserver to be configured.)":
"(Requiere configuración apropiada del servidor web)",
"Save Connection configuration": "Guardar Configuración",
Filter: "Filrar",
// server info modal
"Aria2 server info": "Información de servidor Aria2",
"Aria2 Version": "Aria2 versión",
"Features Enabled": "Funcionalidad disponible",
// about modal
"To download the latest version of the project, add issues or to contribute back, head on to":
"Para obtener la última versión del proyecto, reportar problemas o colaborar, vaya a",
"Or you can open the latest version in the browser through":
"Puede abrir la última versión en su navegador, directamente",
Close: "Cerrar",
// labels
"Download status": "Estado de descarga",
"Download Speed": "Velocidad de descarga",
"Upload Speed": "Vel. Subida",
"Estimated time": "Tiempo estimado",
"Download Size": "Tamaño de descarga",
Downloaded: "Descargado",
Progress: "Progreso",
"Download Path": "Carpeta de descarga",
Uploaded: "Subido",
"Download GID": "GID de Descarga",
"Number of Pieces": "N° de Piezas",
"Piece Length": "Tamaño de pieza",
//alerts
"The last connection attempt was unsuccessful. Trying another configuration":
"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'){
translations = {};
if (typeof translations == "undefined") {
translations = {};
}
translations.fa_IR = {
// header
'Search': 'جستجو',
// Nav menu
'Add': 'اضافه کردن',
'By URIs': 'بر اساس مسیر سایت',
'By Torrents': 'بر اساس تورنت',
'By Metalinks': 'بر اساس متا لینک',
'Manage': 'مدیریت',
'Pause All': 'توقف همه',
'Resume Paused': 'ادامه متوقف شده ها',
'Purge Completed': 'حذف تکمیل شده ها',
'Shutdown Server': 'خاموش کردن سرور',
'Settings': 'تنظیمات',
'Connection Settings': 'تنظیمات ارتباط',
'Global Settings': 'تنظیمات سراسری',
'Server info': 'اطلاعات سرور',
'About and contribute': 'درباره و مشارکت',
'Toggle navigation': 'تغییر ناوبری',
// body
// nav side bar
'Miscellaneous': 'متفرقه',
'Global Statistics': 'آمار سراسری',
'About': 'درباره',
'Displaying': 'نمایش',
'of': 'از',
'downloads': 'دانلودها',
'Language': 'زبان',
// download filters
'Download Filters': 'دانلود فیلترها',
'Running': 'در حال اجرا',
'Active': 'فعال',
'Waiting': 'در انتظار',
'Complete': 'تمام شده',
'Error': 'خطا',
'Paused': 'متوقف شده',
'Removed': 'حذف شده',
'Hide linked meta-data': 'مخفی کردن متا داده مرتبط',
'Toggle': 'تغییر وضعیت',
'Reset filters': 'حذف فیلترها',
// download status
'Verifing': 'تأیید کردن',
'Verify Pending': 'تأیید کردن در انتظارها',
// starred properties
'Quick Access Settings': 'تنظیمات دسترسی سریع',
'Save': 'ذخیره',
'Save settings': 'ذخیره تنظیمات',
'Currently no download in line to display, use the': 'در حال حاضر هیچ دانلودی برای نمایش وجود ندارد، استفاده از',
'download button to start downloading files!': 'دکمه دانلود برای شروع دانلود فایل ها!',
'Peers': 'همتایان',
'More Info': 'اطلاعات بیشتر',
'Remove': 'حذف',
'# of': 'از #',
'Length': 'طول',
// modals
'Add Downloads By URIs': 'اضافه کردن دانلود توسط لینک ها',
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.':
'- شما می توانید چند بار دانلود (فایل ها) را همزمان با قرار دادن URI ها برای هر فایل در یک خط جداگانه اضافه کنید.',
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.':
'- شما همچنین می توانید URI های متعدد (آینه ها) را برای فایل *همان* اضافه کنید. برای انجام این کار، URI ها را با یک فضای جداگانه جدا کنید.',
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '- یک URI می تواند HTTP (S) / FTP / BitTorrent-Magnet باشد.',
'Download settings': 'تنظیمات دانلود',
'Advanced settings': 'تنظیمات پیشرفته',
'Cancel': 'لغو',
'Start': 'شروع',
'Choose': 'انتخاب',
'Quick Access (shown on the main page)': 'دسترسی سریع (نشان داده شده در صفحه اصلی)',
// add torrent modal
'Add Downloads By Torrents': 'اضافه کردن دانلود توسط تورنت',
'- 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.': '- برای اضافه کردن URL BitTorrent-Magnet، از گزینه بر اساس مسیر سایت استفاده کنید و آن را در آنجا اضافه کنید.',
'Select Torrents': 'تورنت ها را انتخاب کنید',
'Select a Torrent': 'تورنتی را انتخاب کنید',
// add metalink modal
'Add Downloads By Metalinks': 'متالینک ها را انتخاب کنید',
'Select Metalinks': 'Metalinks را انتخاب کنید',
'- Select the Metalink from the local filesystem to start the download.': '- Metalink را از سیستم فایل محلی انتخاب کنید تا دانلود را شروع کنید.',
'- You can select multiple Metalinks to start multiple downloads.': '- شما می توانید چندین Metalinks را برای شروع چندین بار انتخاب کنید.',
'Select a Metalink': 'Metalink را انتخاب کنید',
// select file modal
'Choose files to start download for': 'فایل را برای شروع دانلود انتخاب کنید',
'Select to download': 'برای دانلود انتخاب کنید',
// settings modal
'Aria2 RPC host and port': 'میزبان و پورت Aria2 RPC',
'Enter the host': 'میزبان را وارد کنید',
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)':
'نام IP یا DNS سرور که RPC برای Aria2 در حال اجرا است را وارد کنید (به طور پیش فرض: localhost)',
'Enter the port': 'پورت را وارد کنید',
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)':
'پورت سرور که RPC برای Aria2 اجرا می شود را وارد کنید (به طور پیش فرض: 6800)',
'Enter the RPC path': 'مسیر RPC را وارد کنید',
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'مسیر نقطه پایانی Aria2 RPC را وارد کنید (default: / jsonrpc)',
'SSL/TLS encryption': 'SSL / TLS رمزگذاری',
'Enable SSL/TLS encryption': 'SSL / TLS رمزگذاری را فعال کنید',
'Enter the secret token (optional)': 'رمز نشانه (اختیاری) را وارد کنید',
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)':
'کد مخفی Aria2 RPC را وارد کنید (اگر احراز هویت فعال نمی شود خالی بگذارید)',
'Enter the username (optional)': 'نام کاربری (اختیاری) را وارد کنید',
'Enter the Aria2 RPC username (empty if authentication not enabled)':
'نام کاربری Aria2 RPC را وارد کنید (خالی اگر احراز هویت غیر فعال شود)',
'Enter the password (optional)': 'رمز عبور را وارد کنید (اختیاری)',
'Enter the Aria2 RPC password (empty if authentication not enabled)': 'گذرواژه Aria2 RPC را وارد کنید (اگر احراز هویت فعال نمی شود خالی بگذارید)',
'Enter base URL (optional)': 'URL پایه را وارد کنید (اختیاری)',
'Direct Download': 'دانلود مستقیم',
'If supplied, links will be created to enable direct download from the Aria2 server.':
'در صورت عرضه، لینک برای ایجاد مستقیم دانلود از سرور Aria2 ایجاد خواهد شد.',
'(Requires appropriate webserver to be configured.)': '(نیاز به وب سرور مناسب برای پیکربندی.)',
'Save Connection configuration': 'ذخیره پیکربندی اتصال',
'Filter': 'فیلتر',
// server info modal
'Aria2 server info': 'مشخصات سرور Aria2',
'Aria2 Version': 'نسخه Aria2',
'Features Enabled': 'ویژگی های فعال',
// about modal
'To download the latest version of the project, add issues or to contribute back, head on to':
'برای دانلود آخرين نسخه پروژه، مسائل را اضافه کنيد يا به پشتيبانی بپردازيد بروید به',
'Or you can open the latest version in the browser through': 'یا شما می توانید آخرین نسخه را از طریق مرورگر باز کنید',
'Close': 'بستن',
// labels
'Download status':'وضعیت دانلود',
'Download Speed':'سرعت دانلود',
'Upload Speed':'سرعت آپلود',
'Estimated time':'زمان تخمین زده شده',
'Download Size':'اندازه دانلود',
'Downloaded':'دانلود شده',
'Progress':'پیشرفت',
'Download Path':'مسیر دانلود',
'Uploaded':'آپلود شده',
'Download GID':'دانلود GID',
'Number of Pieces':'تعداد قطعات',
'Piece Length':'طول قطعه',
// header
Search: "جستجو",
// Nav menu
Add: "اضافه کردن",
"By URIs": "بر اساس مسیر سایت",
"By Torrents": "بر اساس تورنت",
"By Metalinks": "بر اساس متا لینک",
Manage: "مدیریت",
"Pause All": "توقف همه",
"Resume Paused": "ادامه متوقف شده ها",
"Purge Completed": "حذف تکمیل شده ها",
"Shutdown Server": "خاموش کردن سرور",
Settings: "تنظیمات",
"Connection Settings": "تنظیمات ارتباط",
"Global Settings": "تنظیمات سراسری",
"Server info": "اطلاعات سرور",
"About and contribute": "درباره و مشارکت",
"Toggle navigation": "تغییر ناوبری",
// body
// nav side bar
Miscellaneous: "متفرقه",
"Global Statistics": "آمار سراسری",
About: "درباره",
Displaying: "نمایش",
of: "از",
downloads: "دانلودها",
Language: "زبان",
// download filters
"Download Filters": "دانلود فیلترها",
Running: "در حال اجرا",
Active: "فعال",
Waiting: "در انتظار",
Complete: "تمام شده",
Error: "خطا",
Paused: "متوقف شده",
Removed: "حذف شده",
"Hide linked meta-data": "مخفی کردن متا داده مرتبط",
Toggle: "تغییر وضعیت",
"Reset filters": "حذف فیلترها",
// download status
Verifing: "تأیید کردن",
"Verify Pending": "تأیید کردن در انتظارها",
// starred properties
"Quick Access Settings": "تنظیمات دسترسی سریع",
Save: "ذخیره",
"Save settings": "ذخیره تنظیمات",
"Currently no download in line to display, use the":
"در حال حاضر هیچ دانلودی برای نمایش وجود ندارد، استفاده از",
"download button to start downloading files!": "دکمه دانلود برای شروع دانلود فایل ها!",
Peers: "همتایان",
"More Info": "اطلاعات بیشتر",
Remove: "حذف",
"# of": "از #",
Length: "طول",
// modals
"Add Downloads By URIs": "اضافه کردن دانلود توسط لینک ها",
"- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
"- شما می توانید چند بار دانلود (فایل ها) را همزمان با قرار دادن URI ها برای هر فایل در یک خط جداگانه اضافه کنید.",
"- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
"- شما همچنین می توانید URI های متعدد (آینه ها) را برای فایل *همان* اضافه کنید. برای انجام این کار، URI ها را با یک فضای جداگانه جدا کنید.",
"- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.":
"- یک URI می تواند HTTP (S) / FTP / BitTorrent-Magnet باشد.",
"Download settings": "تنظیمات دانلود",
"Advanced settings": "تنظیمات پیشرفته",
Cancel: "لغو",
Start: "شروع",
Choose: "انتخاب",
"Quick Access (shown on the main page)": "دسترسی سریع (نشان داده شده در صفحه اصلی)",
// add torrent modal
"Add Downloads By Torrents": "اضافه کردن دانلود توسط تورنت",
"- 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.":
"- برای اضافه کردن URL BitTorrent-Magnet، از گزینه بر اساس مسیر سایت استفاده کنید و آن را در آنجا اضافه کنید.",
"Select Torrents": "تورنت ها را انتخاب کنید",
"Select a Torrent": "تورنتی را انتخاب کنید",
// add metalink modal
"Add Downloads By Metalinks": "متالینک ها را انتخاب کنید",
"Select Metalinks": "Metalinks را انتخاب کنید",
"- Select the Metalink from the local filesystem to start the download.":
"- Metalink را از سیستم فایل محلی انتخاب کنید تا دانلود را شروع کنید.",
"- You can select multiple Metalinks to start multiple downloads.":
"- شما می توانید چندین Metalinks را برای شروع چندین بار انتخاب کنید.",
"Select a Metalink": "Metalink را انتخاب کنید",
// select file modal
"Choose files to start download for": "فایل را برای شروع دانلود انتخاب کنید",
"Select to download": "برای دانلود انتخاب کنید",
// settings modal
"Aria2 RPC host and port": "میزبان و پورت Aria2 RPC",
"Enter the host": "میزبان را وارد کنید",
"Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
"نام IP یا DNS سرور که RPC برای Aria2 در حال اجرا است را وارد کنید (به طور پیش فرض: localhost)",
"Enter the port": "پورت را وارد کنید",
"Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
"پورت سرور که RPC برای Aria2 اجرا می شود را وارد کنید (به طور پیش فرض: 6800)",
"Enter the RPC path": "مسیر RPC را وارد کنید",
"Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
"مسیر نقطه پایانی Aria2 RPC را وارد کنید (default: / jsonrpc)",
"SSL/TLS encryption": "SSL / TLS رمزگذاری",
"Enable SSL/TLS encryption": "SSL / TLS رمزگذاری را فعال کنید",
"Enter the secret token (optional)": "رمز نشانه (اختیاری) را وارد کنید",
"Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
"کد مخفی Aria2 RPC را وارد کنید (اگر احراز هویت فعال نمی شود خالی بگذارید)",
"Enter the username (optional)": "نام کاربری (اختیاری) را وارد کنید",
"Enter the Aria2 RPC username (empty if authentication not enabled)":
"نام کاربری Aria2 RPC را وارد کنید (خالی اگر احراز هویت غیر فعال شود)",
"Enter the password (optional)": "رمز عبور را وارد کنید (اختیاری)",
"Enter the Aria2 RPC password (empty if authentication not enabled)":
"گذرواژه Aria2 RPC را وارد کنید (اگر احراز هویت فعال نمی شود خالی بگذارید)",
"Enter base URL (optional)": "URL پایه را وارد کنید (اختیاری)",
"Direct Download": "دانلود مستقیم",
"If supplied, links will be created to enable direct download from the Aria2 server.":
"در صورت عرضه، لینک برای ایجاد مستقیم دانلود از سرور Aria2 ایجاد خواهد شد.",
"(Requires appropriate webserver to be configured.)": "(نیاز به وب سرور مناسب برای پیکربندی.)",
"Save Connection configuration": "ذخیره پیکربندی اتصال",
Filter: "فیلتر",
// server info modal
"Aria2 server info": "مشخصات سرور Aria2",
"Aria2 Version": "نسخه Aria2",
"Features Enabled": "ویژگی های فعال",
// about modal
"To download the latest version of the project, add issues or to contribute back, head on to":
"برای دانلود آخرين نسخه پروژه، مسائل را اضافه کنيد يا به پشتيبانی بپردازيد بروید به",
"Or you can open the latest version in the browser through":
"یا شما می توانید آخرین نسخه را از طریق مرورگر باز کنید",
Close: "بستن",
// labels
"Download status": "وضعیت دانلود",
"Download Speed": "سرعت دانلود",
"Upload Speed": "سرعت آپلود",
"Estimated time": "زمان تخمین زده شده",
"Download Size": "اندازه دانلود",
Downloaded: "دانلود شده",
Progress: "پیشرفت",
"Download Path": "مسیر دانلود",
Uploaded: "آپلود شده",
"Download GID": "دانلود GID",
"Number of Pieces": "تعداد قطعات",
"Piece Length": "طول قطعه",
//alerts
'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':
'نمی توان به سرور 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':
'در هنگام اتصال به سرور Aria2 RPC تأییدیه شکست خورد. در 10 ثانیه دوباره تلاش خواهیم کرد ممکن است بخواهید جزئیات احراز هویت خود را با رفتن به تنظیمات > تنظیمات اتصال تایید کنید',
'Successfully connected to Aria2 through its remote RPC …':
'با موفقیت از طریق 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)':
'با موفقیت به Aria2 از طریق RPC راه دور متصل شد، اما اتصال هنوز ناامن است. برای امنیت کامل سعی کنید مجوز نشانه مجوز را در هنگام شروع Aria2 (از طریق پرچم --rpc-secret)',
'Trying to connect to aria2 using the new connection configuration':
'تلاش برای اتصال به aria2 با استفاده از پیکربندی اتصال جدید',
'Remove {{name}} and associated meta-data?':
'حذف {{name}} و متا داده های مرتبط'
//alerts
"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":
"نمی توان به سرور 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":
"در هنگام اتصال به سرور Aria2 RPC تأییدیه شکست خورد. در 10 ثانیه دوباره تلاش خواهیم کرد ممکن است بخواهید جزئیات احراز هویت خود را با رفتن به تنظیمات > تنظیمات اتصال تایید کنید",
"Successfully connected to Aria2 through its remote RPC …":
"با موفقیت از طریق 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)":
"با موفقیت به Aria2 از طریق RPC راه دور متصل شد، اما اتصال هنوز ناامن است. برای امنیت کامل سعی کنید مجوز نشانه مجوز را در هنگام شروع Aria2 (از طریق پرچم --rpc-secret)",
"Trying to connect to aria2 using the new connection configuration":
"تلاش برای اتصال به aria2 با استفاده از پیکربندی اتصال جدید",
"Remove {{name}} and associated meta-data?": "حذف {{name}} و متا داده های مرتبط"
};

View File

@ -1,146 +1,164 @@
if(typeof translations == 'undefined'){
translations = {};
if (typeof translations == "undefined") {
translations = {};
}
translations.fr_FR = {
// header
'Search': 'Rechercher',
// Nav menu
'Add': 'Ajouter',
'By URIs': 'Par URIs',
'By Torrents': 'Par Torrents',
'By Metalinks': 'Par Metaliens',
'Manage': 'Gérer',
'Pause All': 'Tout suspendre',
'Resume Paused': 'Reprendre',
'Purge Completed': 'Nettoyer les fichiers complétés',
'Settings': 'Paramètres',
'Connection Settings': 'Paramètres de connexion',
'Global Settings': 'Paramètres globaux',
'Server info': 'Informations serveur',
'About and contribute': 'À propos et contribuer',
'Toggle navigation': 'Basculer la navigation',
// body
// nav side bar
'Miscellaneous': 'Autres',
'Global Statistics': 'Statistiques globales',
'About': 'À propos',
'Displaying': 'Affichage de',
'of': 'parmi',
'downloads': 'téléchargements',
'Language': 'Langue',
// download filters
'Download Filters': 'Filtres de téléchargement',
'Running': 'En cours',
'Active': 'Actifs',
'Waiting': 'En attente',
'Complete': 'Complétés',
'Error': 'Erreurs',
'Paused': 'En pause',
'Removed': 'Supprimés',
'Hide linked meta-data': 'Cacher les métadonnées liées',
'Toggle': 'Basculer',
'Reset filters': 'Réinitialiser les filtres',
// download status
'Verifing': 'Vérification',
'Verify Pending': 'Vérification en attente',
// starred properties
'Quick Access Settings': 'Paramètres d\'accès rapide',
'Save': 'Sauvegarder',
'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',
'download button to start downloading files!': 'pour commencer à télécharger des fichiers !',
'Peers': 'Pairs',
'More Info': 'Plus d\'infos',
'Remove': 'Supprimer',
'# of': '# parmi',
'Length': 'Longueur',
// modals
'Add Downloads By URIs': 'Ajouter des téléchargements depuis des URIs',
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.':
'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 also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.':
'Vous pouvez aussi ajouter plusieurs URIs (mirroirs) pour le *même* fichier. Pour ce faire, séparez les URIs par un espace.',
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': 'Une URI peut être HTTP(S)/FTP/BitTorrent-Magnet.',
'Download settings': 'Paramètres de téléchargement',
'Advanced settings': 'Paramètres avancés',
'Cancel': 'Annuler',
'Start': 'Démarrer',
'Choose': 'Choisir',
'Quick Access (shown on the main page)': 'Accès rapide (affiché sur la page principale',
// add torrent modal
'Add Downloads By Torrents': 'Ajouter des téléchargements à partir de fichiers Torrent',
'- 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.',
'- You can select multiple torrents to start multiple downloads.': 'Vous pouvez sélectionner plusieurs torrents pour commencer plusieurs téléchargements.',
'- 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 Torrents': 'Sélectionner des Torrents',
'Select a Torrent': 'Sélectionner un Torrent',
// add metalink modal
'Add Downloads By Metalinks': 'Ajouter des téléchargements par Metaliens',
'Select Metalinks': 'Sélectionner des Métaliens',
'- 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.',
'- You can select multiple Metalinks to start multiple downloads.': 'Vous pouvez sélectionner plusieurs Métaliens pour commencer plusieurs téléchargements.',
'Select a Metalink': 'Sélectionner un Métalien',
// select file modal
'Choose files to start download for': 'Sélectionner les fichiers pour lesquels commencer le téléchargement.',
'Select to download': 'Sélectionner pour télécharger',
// settings modal
'Aria2 RPC host and port': 'Hôte et ports Aria2 RPC',
'Enter the host': 'Entrer l\'hôte',
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)':
'Entrer l\'IP ou le nom DNS du serveur sur lequel est lancé le RPC pour Aria2 (défaut : localhost)',
'Enter the port': 'Entrer le port',
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)':
'Entrer le port du serveur sur lequel tourne le RPC pour Aria2 (défaut : 6800)',
'Enter the RPC path': 'Entrer le chemin vers le RPC',
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'Entrer le chemin final pour le RPC Aria2 (défaut : /jsonrpc)',
'SSL/TLS encryption': 'Chiffrage SSL/TLS',
'Enable SSL/TLS encryption': 'Activer le chiffrage SSL/TLS',
'Enter the secret token (optional)': 'Entrer le token secret (optionnel)',
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)':
'Entrer le token secret pour le RPC Aria2 (laisser vide si l\'authentification n\'est pas activée)',
'Enter the username (optional)': 'Entrer le nom d\'utilisateur (optionnel)',
'Enter the Aria2 RPC username (empty if authentication not enabled)':
'Entrer le nom d\'utilisateur RPC Aria2 (laisser vide si l\'authentification n\'est pas activée)',
'Enter the password (optional)': 'Entrer le mot de passe (optionnel)',
'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)',
'Enter base URL (optional)': 'Entrez l\'URL de base',
'Direct Download': 'Téléchargement direct',
'If supplied, links will be created to enable direct download from the Aria2 server.':
'S\'ils sont fournis, les liens seront créés pour activer le téléchargement direct depuis le serveur Aria2',
'(Requires appropriate webserver to be configured.)': '(Nécessite un serveur web approprié pour être configuré)',
'Save Connection configuration': 'Sauvegarder la configuration de connexion',
'Filter': 'Filtre',
// server info modal
'Aria2 server info': 'Infos serveur Aria2',
'Aria2 Version': 'Version Aria2',
'Features Enabled': 'Fonctionnalités activées',
// about modal
'To download the latest version of the project, add issues or to contribute back, head on to':
'Pour télécharger la dernière version du projet, signaler des problèmes ou pour contribuer, aller à l\'adresse',
'Or you can open the latest version in the browser through': 'Ou vous pouvez ouvrir la dernière version dans le navigateur depuis',
'Close': 'Fermer',
// lables
'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',
// header
Search: "Rechercher",
// Nav menu
Add: "Ajouter",
"By URIs": "Par URIs",
"By Torrents": "Par Torrents",
"By Metalinks": "Par Metaliens",
Manage: "Gérer",
"Pause All": "Tout suspendre",
"Resume Paused": "Reprendre",
"Purge Completed": "Nettoyer les fichiers complétés",
Settings: "Paramètres",
"Connection Settings": "Paramètres de connexion",
"Global Settings": "Paramètres globaux",
"Server info": "Informations serveur",
"About and contribute": "À propos et contribuer",
"Toggle navigation": "Basculer la navigation",
// body
// nav side bar
Miscellaneous: "Autres",
"Global Statistics": "Statistiques globales",
About: "À propos",
Displaying: "Affichage de",
of: "parmi",
downloads: "téléchargements",
Language: "Langue",
// download filters
"Download Filters": "Filtres de téléchargement",
Running: "En cours",
Active: "Actifs",
Waiting: "En attente",
Complete: "Complétés",
Error: "Erreurs",
Paused: "En pause",
Removed: "Supprimés",
"Hide linked meta-data": "Cacher les métadonnées liées",
Toggle: "Basculer",
"Reset filters": "Réinitialiser les filtres",
// download status
Verifing: "Vérification",
"Verify Pending": "Vérification en attente",
// starred properties
"Quick Access Settings": "Paramètres d'accès rapide",
Save: "Sauvegarder",
"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",
"download button to start downloading files!": "pour commencer à télécharger des fichiers !",
Peers: "Pairs",
"More Info": "Plus d'infos",
Remove: "Supprimer",
"# of": "# parmi",
Length: "Longueur",
// modals
"Add Downloads By URIs": "Ajouter des téléchargements depuis des URIs",
"- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
"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 also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
"Vous pouvez aussi ajouter plusieurs URIs (mirroirs) pour le *même* fichier. Pour ce faire, séparez les URIs par un espace.",
"- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.":
"Une URI peut être HTTP(S)/FTP/BitTorrent-Magnet.",
"Download settings": "Paramètres de téléchargement",
"Advanced settings": "Paramètres avancés",
Cancel: "Annuler",
Start: "Démarrer",
Choose: "Choisir",
"Quick Access (shown on the main page)": "Accès rapide (affiché sur la page principale",
// add torrent modal
"Add Downloads By Torrents": "Ajouter des téléchargements à partir de fichiers Torrent",
"- 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.",
"- You can select multiple torrents to start multiple downloads.":
"Vous pouvez sélectionner plusieurs torrents pour commencer plusieurs téléchargements.",
"- 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 Torrents": "Sélectionner des Torrents",
"Select a Torrent": "Sélectionner un Torrent",
// add metalink modal
"Add Downloads By Metalinks": "Ajouter des téléchargements par Metaliens",
"Select Metalinks": "Sélectionner des Métaliens",
"- 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.",
"- You can select multiple Metalinks to start multiple downloads.":
"Vous pouvez sélectionner plusieurs Métaliens pour commencer plusieurs téléchargements.",
"Select a Metalink": "Sélectionner un Métalien",
// select file modal
"Choose files to start download for":
"Sélectionner les fichiers pour lesquels commencer le téléchargement.",
"Select to download": "Sélectionner pour télécharger",
// settings modal
"Aria2 RPC host and port": "Hôte et ports Aria2 RPC",
"Enter the host": "Entrer l'hôte",
"Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
"Entrer l'IP ou le nom DNS du serveur sur lequel est lancé le RPC pour Aria2 (défaut : localhost)",
"Enter the port": "Entrer le port",
"Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
"Entrer le port du serveur sur lequel tourne le RPC pour Aria2 (défaut : 6800)",
"Enter the RPC path": "Entrer le chemin vers le RPC",
"Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
"Entrer le chemin final pour le RPC Aria2 (défaut : /jsonrpc)",
"SSL/TLS encryption": "Chiffrage SSL/TLS",
"Enable SSL/TLS encryption": "Activer le chiffrage SSL/TLS",
"Enter the secret token (optional)": "Entrer le token secret (optionnel)",
"Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
"Entrer le token secret pour le RPC Aria2 (laisser vide si l'authentification n'est pas activée)",
"Enter the username (optional)": "Entrer le nom d'utilisateur (optionnel)",
"Enter the Aria2 RPC username (empty if authentication not enabled)":
"Entrer le nom d'utilisateur RPC Aria2 (laisser vide si l'authentification n'est pas activée)",
"Enter the password (optional)": "Entrer le mot de passe (optionnel)",
"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)",
"Enter base URL (optional)": "Entrez l'URL de base",
"Direct Download": "Téléchargement direct",
"If supplied, links will be created to enable direct download from the Aria2 server.":
"S'ils sont fournis, les liens seront créés pour activer le téléchargement direct depuis le serveur Aria2",
"(Requires appropriate webserver to be configured.)":
"(Nécessite un serveur web approprié pour être configuré)",
"Save Connection configuration": "Sauvegarder la configuration de connexion",
Filter: "Filtre",
// server info modal
"Aria2 server info": "Infos serveur Aria2",
"Aria2 Version": "Version Aria2",
"Features Enabled": "Fonctionnalités activées",
// about modal
"To download the latest version of the project, add issues or to contribute back, head on to":
"Pour télécharger la dernière version du projet, signaler des problèmes ou pour contribuer, aller à l'adresse",
"Or you can open the latest version in the browser through":
"Ou vous pouvez ouvrir la dernière version dans le navigateur depuis",
Close: "Fermer",
// lables
"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',
'Oh Snap!': 'Oh non !',
'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',
'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',
'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'
"The last connection attempt was unsuccessful. Trying another configuration":
"La dernière tentative de connexion a échoué. Essai d'une autre configuration",
"Oh Snap!": "Oh non !",
"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",
"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",
"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'){
translations = {};
if (typeof translations == "undefined") {
translations = {};
}
translations.id_ID = { // replace en_US to ll_CC, examples: zh_CN, de_AT.
// header
'Search': 'Telusuri',
// Nav menu
'Add': 'Tambah',
'By URIs': 'Dari URI',
'By Torrents': 'Dari Torrent',
'By Metalinks': 'Dari Metalink',
'Manage': 'Kelola',
'Pause All': 'Jeda Semua',
'Resume Paused': 'Lanjut yang Dijeda',
'Purge Completed': 'Hapus yang Terunduh',
'Shutdown Server': 'Matikan Peladen',
'Settings': 'Pengaturan',
'Connection Settings': 'Pengaturan Koneksi',
'Global Settings': 'Pengaturan Global',
'Server info': 'Info peladen',
'About and contribute': 'Tentang dan kontribusi',
'Toggle navigation': 'Alihkan navigasi',
// body
// nav side bar
'Miscellaneous': 'Lain-lain',
'Global Statistics': 'Statistik Global',
'About': 'Tentang',
'Displaying': 'Tampilan',
'of': 'dari',
'downloads': 'unduhan',
'Language': 'Bahasa',
// download filters
'Download Filters': 'Saring Unduhan',
'Running': 'Berjalan',
'Active': 'Aktif',
'Waiting': 'Menunggu',
'Complete': 'Selesai',
'Error': 'Galat',
'Paused': 'Dijeda',
'Removed': 'Dihapus',
'Hide linked meta-data': 'Sembunyikan tautan meta-data',
'Toggle': 'Tombol alihan',
'Reset filters': 'Reset penyaring',
// download status
'Verifing': 'Memverifikasi',
'Verify Pending': 'Verifikasi Ditunda',
// starred properties
'Quick Access Settings': 'Pengaturan Akses Cepat',
'Save': 'Simpan',
'Save settings': 'Simpan pengaturan',
'Currently no download in line to display, use the': 'Sekarang tak ada unduhan yang ditampilkan, gunakan',
'download button to start downloading files!': 'tombol unduh untuk mulai mengunduh berkas!',
'Peers': 'Peer',
'More Info': 'Info Lengkap',
'Remove': 'Hapus',
'# of': '# dari',
'Length': 'Ukuran',
// modals
'Add Downloads By URIs': 'Unduh dari URI',
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.':
'- Anda dapat menambah banyak unduhan (berkas) sekali waktu dg menaruh URI setiap berkas dlm baris terpisah.',
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.':
'- Anda juga dapat menambah banyak URI (cermin) untuk berkas yang *sama*. Pisahkan URI dengan spasi.',
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '- URI dapat berbentuk HTTP(S)/FTP/BitTorrent-Magnet.',
'Download settings': 'Pengaturan unduhan',
'Advanced settings': 'Pengaturan mahir',
'Cancel': 'Batal',
'Start': 'Mulai',
'Choose': 'Pilih',
'Quick Access (shown on the main page)': 'Akses Cepat (terlihat di laman utama)',
// add torrent modal
'Add Downloads By Torrents': 'Unduh dari Torrent',
'- Select the torrent from the local filesystem to start the download.': '- Pilih torrent dari sistem berkas lokal untuk mulai mengunduh.',
'- You can select multiple torrents to start multiple downloads.': 'Anda dapat memilih banyak torrent untuk memulai multi unduh.',
'- 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 Torrents': 'Pilih Torrent',
'Select a Torrent': 'Pilih Torrent',
// add metalink modal
'Add Downloads By Metalinks': 'Unduh dari Metalink',
'Select Metalinks': 'Pilih Metalink',
'- Select the Metalink from the local filesystem to start the download.': '- Pilih Metalink dari sistem berkas lokal untuk mulai mengunduh.',
'- You can select multiple Metalinks to start multiple downloads.': '- Anda dapat memilih banyak Metalink untuk mulai multi unduh.',
'Select a Metalink': 'Pilih Metalink',
// select file modal
'Choose files to start download for': 'Pilih berkas untuk mulai mengunduh',
'Select to download': 'Pilih untuk mengunduh',
// settings modal
'Aria2 RPC host and port': 'Port dan host RPC Aria2',
'Enter the host': 'Masukkan host',
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)':
'Masukkan IP atau nama DNS peladen tempat RPC Aria2 berjalan (asali: localhost)',
'Enter the port': 'Masukkan porta',
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)':
'Masukkan porta peladen tempat RPC Aria2 berjalan (asali: 6800)',
'Enter the RPC path': 'Masukkan path RPC',
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'Masukkan path untuk endpoint RPC Aria2 (asali: /jsonrpc)',
'SSL/TLS encryption': 'Enkripsi SSL/TLS',
'Enable SSL/TLS encryption': 'Aktifkan enkripsi SSL/TLS',
'Enter the secret token (optional)': 'Masukkan token rahasia (opsional)',
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)':
'Masukkan token rahasia RPC Aria2 (kosongkan jika otentifikasi tidak aktif)',
'Enter the username (optional)': 'Masukkan username (opsional)',
'Enter the Aria2 RPC username (empty if authentication not enabled)':
'Masukkan username RPC Aria2 (kosongkan jika otentifikasi tidak aktif)',
'Enter the password (optional)': 'Masukkan kata sandi (opsional)',
'Enter the Aria2 RPC password (empty if authentication not enabled)': 'Masukkan kata sandi RPC Aria2 (kosongkan jika otentifikasi tidak aktif)',
'Enter base URL (optional)': 'Masukkan URL dasar (opsional)',
'Direct Download': 'Unduh Langsung',
'If supplied, links will be created to enable direct download from the Aria2 server.':
'Jika tersedia, tautan akan dibuat untuk mengaktifkan unduhan langsung dari peladen Aria2.',
'(Requires appropriate webserver to be configured.)': '(Mewajibkan webserver yang perlu dikonfigurasi)',
'Save Connection configuration': 'Simpan konfigurasi Koneksi',
'Filter': 'Saring',
// server info modal
'Aria2 server info': 'Info peladen Aria2',
'Aria2 Version': 'Versi Aria2',
'Features Enabled': 'Fitur yang Aktif',
// about modal
'To download the latest version of the project, add issues or to contribute back, head on to':
'Untuk mengunduh versi terkini proyek, tambahkan isu atau kontribusi balik ke',
'Or you can open the latest version in the browser through': 'Atau Anda dapat membuka versi terkini via peramban lewat',
'Close': 'Tutup',
// labels
'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',
translations.id_ID = {
// replace en_US to ll_CC, examples: zh_CN, de_AT.
// header
Search: "Telusuri",
// Nav menu
Add: "Tambah",
"By URIs": "Dari URI",
"By Torrents": "Dari Torrent",
"By Metalinks": "Dari Metalink",
Manage: "Kelola",
"Pause All": "Jeda Semua",
"Resume Paused": "Lanjut yang Dijeda",
"Purge Completed": "Hapus yang Terunduh",
"Shutdown Server": "Matikan Peladen",
Settings: "Pengaturan",
"Connection Settings": "Pengaturan Koneksi",
"Global Settings": "Pengaturan Global",
"Server info": "Info peladen",
"About and contribute": "Tentang dan kontribusi",
"Toggle navigation": "Alihkan navigasi",
// body
// nav side bar
Miscellaneous: "Lain-lain",
"Global Statistics": "Statistik Global",
About: "Tentang",
Displaying: "Tampilan",
of: "dari",
downloads: "unduhan",
Language: "Bahasa",
// download filters
"Download Filters": "Saring Unduhan",
Running: "Berjalan",
Active: "Aktif",
Waiting: "Menunggu",
Complete: "Selesai",
Error: "Galat",
Paused: "Dijeda",
Removed: "Dihapus",
"Hide linked meta-data": "Sembunyikan tautan meta-data",
Toggle: "Tombol alihan",
"Reset filters": "Reset penyaring",
// download status
Verifing: "Memverifikasi",
"Verify Pending": "Verifikasi Ditunda",
// starred properties
"Quick Access Settings": "Pengaturan Akses Cepat",
Save: "Simpan",
"Save settings": "Simpan pengaturan",
"Currently no download in line to display, use the":
"Sekarang tak ada unduhan yang ditampilkan, gunakan",
"download button to start downloading files!": "tombol unduh untuk mulai mengunduh berkas!",
Peers: "Peer",
"More Info": "Info Lengkap",
Remove: "Hapus",
"# of": "# dari",
Length: "Ukuran",
// modals
"Add Downloads By URIs": "Unduh dari URI",
"- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
"- Anda dapat menambah banyak unduhan (berkas) sekali waktu dg menaruh URI setiap berkas dlm baris terpisah.",
"- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
"- Anda juga dapat menambah banyak URI (cermin) untuk berkas yang *sama*. Pisahkan URI dengan spasi.",
"- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.":
"- URI dapat berbentuk HTTP(S)/FTP/BitTorrent-Magnet.",
"Download settings": "Pengaturan unduhan",
"Advanced settings": "Pengaturan mahir",
Cancel: "Batal",
Start: "Mulai",
Choose: "Pilih",
"Quick Access (shown on the main page)": "Akses Cepat (terlihat di laman utama)",
// add torrent modal
"Add Downloads By Torrents": "Unduh dari Torrent",
"- Select the torrent from the local filesystem to start the download.":
"- Pilih torrent dari sistem berkas lokal untuk mulai mengunduh.",
"- You can select multiple torrents to start multiple downloads.":
"Anda dapat memilih banyak torrent untuk memulai multi unduh.",
"- 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 Torrents": "Pilih Torrent",
"Select a Torrent": "Pilih Torrent",
// add metalink modal
"Add Downloads By Metalinks": "Unduh dari Metalink",
"Select Metalinks": "Pilih Metalink",
"- Select the Metalink from the local filesystem to start the download.":
"- Pilih Metalink dari sistem berkas lokal untuk mulai mengunduh.",
"- You can select multiple Metalinks to start multiple downloads.":
"- Anda dapat memilih banyak Metalink untuk mulai multi unduh.",
"Select a Metalink": "Pilih Metalink",
// select file modal
"Choose files to start download for": "Pilih berkas untuk mulai mengunduh",
"Select to download": "Pilih untuk mengunduh",
// settings modal
"Aria2 RPC host and port": "Port dan host RPC Aria2",
"Enter the host": "Masukkan host",
"Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
"Masukkan IP atau nama DNS peladen tempat RPC Aria2 berjalan (asali: localhost)",
"Enter the port": "Masukkan porta",
"Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
"Masukkan porta peladen tempat RPC Aria2 berjalan (asali: 6800)",
"Enter the RPC path": "Masukkan path RPC",
"Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
"Masukkan path untuk endpoint RPC Aria2 (asali: /jsonrpc)",
"SSL/TLS encryption": "Enkripsi SSL/TLS",
"Enable SSL/TLS encryption": "Aktifkan enkripsi SSL/TLS",
"Enter the secret token (optional)": "Masukkan token rahasia (opsional)",
"Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
"Masukkan token rahasia RPC Aria2 (kosongkan jika otentifikasi tidak aktif)",
"Enter the username (optional)": "Masukkan username (opsional)",
"Enter the Aria2 RPC username (empty if authentication not enabled)":
"Masukkan username RPC Aria2 (kosongkan jika otentifikasi tidak aktif)",
"Enter the password (optional)": "Masukkan kata sandi (opsional)",
"Enter the Aria2 RPC password (empty if authentication not enabled)":
"Masukkan kata sandi RPC Aria2 (kosongkan jika otentifikasi tidak aktif)",
"Enter base URL (optional)": "Masukkan URL dasar (opsional)",
"Direct Download": "Unduh Langsung",
"If supplied, links will be created to enable direct download from the Aria2 server.":
"Jika tersedia, tautan akan dibuat untuk mengaktifkan unduhan langsung dari peladen Aria2.",
"(Requires appropriate webserver to be configured.)":
"(Mewajibkan webserver yang perlu dikonfigurasi)",
"Save Connection configuration": "Simpan konfigurasi Koneksi",
Filter: "Saring",
// server info modal
"Aria2 server info": "Info peladen Aria2",
"Aria2 Version": "Versi Aria2",
"Features Enabled": "Fitur yang Aktif",
// about modal
"To download the latest version of the project, add issues or to contribute back, head on to":
"Untuk mengunduh versi terkini proyek, tambahkan isu atau kontribusi balik ke",
"Or you can open the latest version in the browser through":
"Atau Anda dapat membuka versi terkini via peramban lewat",
Close: "Tutup",
// labels
"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
'The last connection attempt was unsuccessful. Trying another configuration':
'Usaha koneksi terakhir gagal. Coba konfigurasi lain',
'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':
'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':
'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 …':
'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)':
'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':
'Mencoba koneksi ke aria2 menggunakan konfigurasi koneksi baru',
'Remove {{name}} and associated meta-data?': // {{name}} refers to the download name, do not modify.
'Hapus {{name}} dan meta-data yang berhubungan?'
//alerts
"The last connection attempt was unsuccessful. Trying another configuration":
"Usaha koneksi terakhir gagal. Coba konfigurasi lain",
"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":
"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":
"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 …":
"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)":
"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":
"Mencoba koneksi ke aria2 menggunakan konfigurasi koneksi baru",
// {{name}} refers to the download name, do not modify.
"Remove {{name}} and associated meta-data?": "Hapus {{name}} dan meta-data yang berhubungan?"
};

View File

@ -1,140 +1,156 @@
if(typeof translations == 'undefined'){
translations = {};
if (typeof translations == "undefined") {
translations = {};
}
translations.it_IT = {
// header
'Search': 'Cerca',
// Nav menu
'Add': 'Aggiungi',
'By URIs': 'Da URIs',
'By Torrents': 'Da Torrent',
'By Metalinks': 'Da Metalink',
'Manage': 'Gestione',
'Pause All': 'Ferma tutto',
'Resume Paused': 'Riprendi fermati',
'Purge Completed': 'Togli i completi',
'Settings': 'Impostazioni',
'Connection Settings': 'Impostazioni di connessione',
'Global Settings': 'Impostazioni globali',
'Server info': 'Informazioni sul server',
'About and contribute': 'Crediti e informazioni',
'Toggle navigation': 'Cambia navigazione',
// body
// nav side bar
'Miscellaneous': 'Varie',
'Global Statistics': 'Statistiche globali',
'About': 'Info',
'Displaying': 'Mostra',
'of': 'di',
'downloads': 'downloads',
'Language': 'Lingua',
// download filters
'Download Filters': 'Filtri download',
'Running': 'In corso',
'Active': 'Attivi',
'Waiting': 'In attesa',
'Complete': 'Completi',
'Error': 'Errore',
'Paused': 'In pausa',
'Removed': 'Rimossi',
'Hide linked meta-data': 'Nascondi i meta-data collegati',
'Toggle': 'Cambia',
'Reset filters': 'Reimposta filtri',
// starred properties
'Quick Access Settings': 'Accesso rapido',
'Save settings': 'Salva impostazioni',
'Currently no download in line to display, use the': 'Attualmente non c\'è nessun download da mostrare, usa il pulsante ',
'download button to start downloading files!': 'dowload per cominciare a scaricare!',
'Peers': 'Peers',
'More Info': 'Altre informazioni',
'Remove': 'Rimuovi',
'# of': '# di',
'Length': 'Lunghezza',
// modals
'Add Downloads By URIs': 'Aggiungi Downloads da URIs',
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.':
'- Puoi aggungere più download(files) allo stesso tempo mettendo un\'URI per riga.',
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.':
'- Puoi anche aggiungere più URI di download(mirror) per uno *stesso* file separando i vari mirror da uno spazio.',
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '- Un URI può essere un indirizzo HTTP(S)/FTP o un BitTorrent Magnet link.',
'Download settings': 'Impostazioni download',
'Advanced settings': 'Impostazioni avanzate',
'Cancel': 'Cancella',
'Start': 'Aggiungi',
'Choose': 'Scegli',
'Quick Access (shown on the main page)': 'Accesso rapido (mostrato nella pagina principale)',
// add torrent modal
'Add Downloads By Torrents': 'Aggiungi Torrent',
'- Select the torrent from the local filesystem to start the download.': '- Seleziona il file torrent dal tuo computer per iniziare a scaricare.',
'- You can select multiple torrents to start multiple downloads.': '- Puoi aggiungere anche più file contemporaneamente per iniziare più dowload insieme.',
'- 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 Torrents': 'Seleziona Torrents',
'Select a Torrent': 'Seleziona un Torrent',
// add metalink modal
'Add Downloads By Metalinks': 'Aggiungi Torrent da Metalink',
'Select Metalinks': 'Seleziona Metalink',
'- Select the Metalink from the local filesystem to start the download.': '- Seleziona un Metalink dal tuo computer per iniziare il download.',
'- You can select multiple Metalinks to start multiple downloads.': '- Puoi iniziare anche più download selezionando più Metalink.',
'Select a Metalink': 'Seleziona un Metalink',
// select file modal
'Choose files to start download for': 'Scegli i file da scaricare',
'Select to download': 'Seleziona per scaricare',
// settings modal
'Aria2 RPC host and port': 'Host e porta del server RPC di Aria2',
'Enter the host': 'Inserisci l\'host',
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)':
'Inserisci l\'IP o il nome DNS del server dov\'è in esecuzione l\'RPC per Aria2 (default: localhost)',
'Enter the port': 'Inserisci la porta',
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)':
'Inserisci la porta del server dov\'è in esecuzione l\'RPC per Aria2 (default: 6800)',
'Enter the RPC path': 'Inserisci la path RPC',
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'Inserisci la path per l\'endpoint RPC di Aria2 (default: /jsonrpc)',
'SSL/TLS encryption': 'Cifratura SSL/TLS',
'Enable SSL/TLS encryption': 'Abilita la cifratura SSL/TLS',
'Enter the secret token (optional)': 'Inserisci il token segreto (opzionale)',
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)':
'Inserisci il token segreto per Aria2 (lascia vuoto se non è abilitato)',
'Enter the username (optional)': 'Inserisci l\'username (opzionale)',
'Enter the Aria2 RPC username (empty if authentication not enabled)':
'Inserisci l\'username per l\'RPC di Aria2 (lascia vuoto se non è abilitato)',
'Enter the password (optional)': 'Inserisci la password (opzionale)',
'Enter the Aria2 RPC password (empty if authentication not enabled)': 'Inserisci la password per l\'RPC di Aria2 (vuota se l\'autenticazione non è abilitata)',
'Enter base URL (optional)': 'Inserisci l\'URL di base(opzionale)',
'Direct Download': 'Downaload diretto',
'If supplied, links will be created to enable direct download from the Aria2 server.':
'Se inserito, verrano creati dei link per scaricare direttamente i file dal server Aria2.',
'(Requires appropriate webserver to be configured.)': '(Richiede un webserver correttamente configurato)',
'Save Connection configuration': 'Salva la configurazione di connessione',
'Filter': 'Filtro',
// server info modal
'Aria2 server info': 'Informazioni sul server Aria2',
'Aria2 Version': 'Versione di Aria2',
'Features Enabled': 'Funzionalità abilitate',
// about modal
'To download the latest version of the project, add issues or to contribute back, head on to':
'Per scaricare l\'ultima versione del progetto, aggiungere problemi o contribuire, visita ',
'Or you can open the latest version in the browser through': 'Oppure puoi aprire l\'ultima versione direttamente nel browser',
'Close': 'Chiudi',
// lables
'Download status':'Stato download',
'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',
// header
Search: "Cerca",
// Nav menu
Add: "Aggiungi",
"By URIs": "Da URIs",
"By Torrents": "Da Torrent",
"By Metalinks": "Da Metalink",
Manage: "Gestione",
"Pause All": "Ferma tutto",
"Resume Paused": "Riprendi fermati",
"Purge Completed": "Togli i completi",
Settings: "Impostazioni",
"Connection Settings": "Impostazioni di connessione",
"Global Settings": "Impostazioni globali",
"Server info": "Informazioni sul server",
"About and contribute": "Crediti e informazioni",
"Toggle navigation": "Cambia navigazione",
// body
// nav side bar
Miscellaneous: "Varie",
"Global Statistics": "Statistiche globali",
About: "Info",
Displaying: "Mostra",
of: "di",
downloads: "downloads",
Language: "Lingua",
// download filters
"Download Filters": "Filtri download",
Running: "In corso",
Active: "Attivi",
Waiting: "In attesa",
Complete: "Completi",
Error: "Errore",
Paused: "In pausa",
Removed: "Rimossi",
"Hide linked meta-data": "Nascondi i meta-data collegati",
Toggle: "Cambia",
"Reset filters": "Reimposta filtri",
// starred properties
"Quick Access Settings": "Accesso rapido",
"Save settings": "Salva impostazioni",
"Currently no download in line to display, use the":
"Attualmente non c'è nessun download da mostrare, usa il pulsante ",
"download button to start downloading files!": "dowload per cominciare a scaricare!",
Peers: "Peers",
"More Info": "Altre informazioni",
Remove: "Rimuovi",
"# of": "# di",
Length: "Lunghezza",
// modals
"Add Downloads By URIs": "Aggiungi Downloads da URIs",
"- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
"- Puoi aggungere più download(files) allo stesso tempo mettendo un'URI per riga.",
"- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
"- Puoi anche aggiungere più URI di download(mirror) per uno *stesso* file separando i vari mirror da uno spazio.",
"- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.":
"- Un URI può essere un indirizzo HTTP(S)/FTP o un BitTorrent Magnet link.",
"Download settings": "Impostazioni download",
"Advanced settings": "Impostazioni avanzate",
Cancel: "Cancella",
Start: "Aggiungi",
Choose: "Scegli",
"Quick Access (shown on the main page)": "Accesso rapido (mostrato nella pagina principale)",
// add torrent modal
"Add Downloads By Torrents": "Aggiungi Torrent",
"- Select the torrent from the local filesystem to start the download.":
"- Seleziona il file torrent dal tuo computer per iniziare a scaricare.",
"- You can select multiple torrents to start multiple downloads.":
"- Puoi aggiungere anche più file contemporaneamente per iniziare più dowload insieme.",
"- 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 Torrents": "Seleziona Torrents",
"Select a Torrent": "Seleziona un Torrent",
// add metalink modal
"Add Downloads By Metalinks": "Aggiungi Torrent da Metalink",
"Select Metalinks": "Seleziona Metalink",
"- Select the Metalink from the local filesystem to start the download.":
"- Seleziona un Metalink dal tuo computer per iniziare il download.",
"- You can select multiple Metalinks to start multiple downloads.":
"- Puoi iniziare anche più download selezionando più Metalink.",
"Select a Metalink": "Seleziona un Metalink",
// select file modal
"Choose files to start download for": "Scegli i file da scaricare",
"Select to download": "Seleziona per scaricare",
// settings modal
"Aria2 RPC host and port": "Host e porta del server RPC di Aria2",
"Enter the host": "Inserisci l'host",
"Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
"Inserisci l'IP o il nome DNS del server dov'è in esecuzione l'RPC per Aria2 (default: localhost)",
"Enter the port": "Inserisci la porta",
"Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
"Inserisci la porta del server dov'è in esecuzione l'RPC per Aria2 (default: 6800)",
"Enter the RPC path": "Inserisci la path RPC",
"Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
"Inserisci la path per l'endpoint RPC di Aria2 (default: /jsonrpc)",
"SSL/TLS encryption": "Cifratura SSL/TLS",
"Enable SSL/TLS encryption": "Abilita la cifratura SSL/TLS",
"Enter the secret token (optional)": "Inserisci il token segreto (opzionale)",
"Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
"Inserisci il token segreto per Aria2 (lascia vuoto se non è abilitato)",
"Enter the username (optional)": "Inserisci l'username (opzionale)",
"Enter the Aria2 RPC username (empty if authentication not enabled)":
"Inserisci l'username per l'RPC di Aria2 (lascia vuoto se non è abilitato)",
"Enter the password (optional)": "Inserisci la password (opzionale)",
"Enter the Aria2 RPC password (empty if authentication not enabled)":
"Inserisci la password per l'RPC di Aria2 (vuota se l'autenticazione non è abilitata)",
"Enter base URL (optional)": "Inserisci l'URL di base(opzionale)",
"Direct Download": "Downaload diretto",
"If supplied, links will be created to enable direct download from the Aria2 server.":
"Se inserito, verrano creati dei link per scaricare direttamente i file dal server Aria2.",
"(Requires appropriate webserver to be configured.)":
"(Richiede un webserver correttamente configurato)",
"Save Connection configuration": "Salva la configurazione di connessione",
Filter: "Filtro",
// server info modal
"Aria2 server info": "Informazioni sul server Aria2",
"Aria2 Version": "Versione di Aria2",
"Features Enabled": "Funzionalità abilitate",
// about modal
"To download the latest version of the project, add issues or to contribute back, head on to":
"Per scaricare l'ultima versione del progetto, aggiungere problemi o contribuire, visita ",
"Or you can open the latest version in the browser through":
"Oppure puoi aprire l'ultima versione direttamente nel browser",
Close: "Chiudi",
// lables
"Download status": "Stato download",
"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',
'Oh Snap!': 'Mannaggia!',
'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',
'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',
"The last connection attempt was unsuccessful. Trying another configuration":
"L'ultimo tentativo di connessione non è riuscito. Provo un'altra connessione",
"Oh Snap!": "Mannaggia!",
"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",
"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'){
translations = {};
if (typeof translations == "undefined") {
translations = {};
}
translations.nl_NL = {
// header
'Search': 'Zoeken',
// Nav menu
'Add': 'Toevoegen',
'By URIs': 'met URI',
'By Torrents': 'met Torrents',
'By Metalinks': 'met Metalinks',
'Manage': 'Beheren',
'Pause All': 'Alles pauzeren',
'Resume Paused': 'Hervatten',
'Purge Completed': 'Verwijder de voleindigden',
'Settings': 'Instellingen',
'Connection Settings': 'Verbindingsinstellingen',
'Global Settings': 'Globale instellingen',
'Server info': 'Informatie over de server',
'About and contribute': 'Over het project en bijdragen',
'Toggle navigation': 'Navigatie omschakelen',
'Language': 'Taal',
// body
// nav side bar
'Miscellaneous': 'Overig',
'Global Statistics': 'Globale statistieken',
'About': 'Over het project',
'Displaying': ' ', // empty because of grammar in the following 2 elements
'of': 'van',
'downloads': 'downloads weergegeven',
// download filters
'Download Filters': 'Download filters',
'Running': 'Bezig',
'Active': 'Actief',
'Waiting': 'Wachtend',
'Complete': 'Voleindigd',
'Error': 'Foutief',
'Paused': 'Gepauzeerd',
'Removed': 'Verwijderd',
'Hide linked meta-data': 'Gekoppelde metadata verbergen',
'Toggle': 'Omschakelen',
'Reset filters': 'Filters terugzetten',
// starred properties
'Quick Access Settings': 'Snelle-toegang instellingen',
'Save settings': 'Instellingen opslaan',
'Currently no download in line to display, use the': 'Momenteel geen downloads weer te geven, gebruik de ',
'download button to start downloading files!': 'knop om bestanden te gaan downloaden!',
'Peers': 'Peers',
'More Info': 'Meer informatie',
'Remove': 'Verwijderen',
'# of': 'Aantal',
'Length': 'Lengte',
// modals
'Add Downloads By URIs': 'Downloads toevoegen met URI',
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.':
'- Je kunt meerdere downloads (bestanden) tezelfdertijd toevoegen door de URIs voor elk bestand op een aparte regel te zetten.',
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.':
'- Je kunt ook meerdere URIs (mirrors) voor *hetzelfde* bestand toevoegen. Scheidt hiervoor de URIs met een spatie.',
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '- Een URI kan HTTP(S)/FTP/BitTorrent-Magnet zijn.',
'Download settings': 'Download instellingen',
'Advanced settings': 'Geavanceerde instellingen',
'Cancel': 'Annuleren',
'Start': 'Starten',
'Choose': 'Kiezen',
'Quick Access (shown on the main page)': 'Snelle toegang (op de hoofdpagina)',
// add torrent modal
'Add Downloads By Torrents': 'Downloads toevoegen met torrents',
'- Select the torrent from the local filesystem to start the download.': '- Selecteer de torrent van het locale bestandssysteem om de download te starten.',
'- You can select multiple torrents to start multiple downloads.': '- Je kunt meerdere torrents selecteren voor meerdere downloads.',
'- 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 Torrents': 'Selecteer torrents',
'Select a Torrent': 'Selecteer een torrent',
// add metalink modal
'Add Downloads By Metalinks': 'Download toevoegen met Metalinks',
'Select Metalinks': 'Selecteer Metalinks',
'- Select the Metalink from the local filesystem to start the download.': '- Selecteer de Metalink van het locale bestandssysteem om de download te starten.',
'- You can select multiple Metalinks to start multiple downloads.': '- Selecter meerdere Metalinks om meerdere downloads te starten.',
'Select a Metalink': 'Selecteer een Metalink',
// select file modal
'Choose files to start download for': 'Bestanden kiezen waarvoor het downloaden beginnen moet',
'Select to download': 'Selecteer om te downloaden',
// settings modal
'Aria2 RPC host and port': 'Aria2 RPC server en poort',
'Enter the host': 'Server invoeren',
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)':
'Voer de IP of DNS naam van de server waarop de RPC van Aria2 loopt (standaard: localhost)',
'Enter the port': 'Poort invoeren',
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)':
'Invoeren van de serverpoort waarop de RPC van Aria2 loopt (standaard: 6800)',
'Enter the RPC path': 'Invoeren van het RPC pad',
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'Invoeren van het eindpunt van het Aria2 RPC pad (standaard: /jsonrpc)',
'SSL/TLS encryption': 'SSL/TLS versleuteling',
'Enable SSL/TLS encryption': 'SSL/TLS versleuteling inschakelen',
'Enter the secret token (optional)': 'Invoeren van het wachtwoord (facultatief)',
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)':
'Invoeren van het Aria2 RPC wachtwoord (niet invullen als authenticatie niet is ingeschakeld)',
'Enter the username (optional)': 'Invoeren van de gebruikersnaam (facultatief)',
'Enter the Aria2 RPC username (empty if authentication not enabled)':
'Invoeren van de Aria2 RPC gebruikersnaam (niet invullen als authenticatie niet is ingeschakeld)',
'Enter the password (optional)': 'Invoeren van het wachtwoord (facultatief)',
'Enter the Aria2 RPC password (empty if authentication not enabled)': 'Invoeren van het Aria2 RPC wachtwoord (niet invullen als authenticatie niet is ingeschakeld)',
'Enter base URL (optional)': 'Invoeren van de basis URL (facultatief)',
'Direct Download': 'Direct downloaden',
'If supplied, links will be created to enable direct download from the Aria2 server.':
'Als ingevoerd dan worden links aangemaakt die het direct downloaden van de Aria2 server toestaan.',
'(Requires appropriate webserver to be configurured.)': 'Hiervoor moet een geschikte webserver worden ingericht.)',
'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',
// header
Search: "Zoeken",
// Nav menu
Add: "Toevoegen",
"By URIs": "met URI",
"By Torrents": "met Torrents",
"By Metalinks": "met Metalinks",
Manage: "Beheren",
"Pause All": "Alles pauzeren",
"Resume Paused": "Hervatten",
"Purge Completed": "Verwijder de voleindigden",
Settings: "Instellingen",
"Connection Settings": "Verbindingsinstellingen",
"Global Settings": "Globale instellingen",
"Server info": "Informatie over de server",
"About and contribute": "Over het project en bijdragen",
"Toggle navigation": "Navigatie omschakelen",
Language: "Taal",
// body
// nav side bar
Miscellaneous: "Overig",
"Global Statistics": "Globale statistieken",
About: "Over het project",
Displaying: " ", // empty because of grammar in the following 2 elements
of: "van",
downloads: "downloads weergegeven",
// download filters
"Download Filters": "Download filters",
Running: "Bezig",
Active: "Actief",
Waiting: "Wachtend",
Complete: "Voleindigd",
Error: "Foutief",
Paused: "Gepauzeerd",
Removed: "Verwijderd",
"Hide linked meta-data": "Gekoppelde metadata verbergen",
Toggle: "Omschakelen",
"Reset filters": "Filters terugzetten",
// starred properties
"Quick Access Settings": "Snelle-toegang instellingen",
"Save settings": "Instellingen opslaan",
"Currently no download in line to display, use the":
"Momenteel geen downloads weer te geven, gebruik de ",
"download button to start downloading files!": "knop om bestanden te gaan downloaden!",
Peers: "Peers",
"More Info": "Meer informatie",
Remove: "Verwijderen",
"# of": "Aantal",
Length: "Lengte",
// modals
"Add Downloads By URIs": "Downloads toevoegen met URI",
"- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
"- Je kunt meerdere downloads (bestanden) tezelfdertijd toevoegen door de URIs voor elk bestand op een aparte regel te zetten.",
"- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
"- Je kunt ook meerdere URIs (mirrors) voor *hetzelfde* bestand toevoegen. Scheidt hiervoor de URIs met een spatie.",
"- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.":
"- Een URI kan HTTP(S)/FTP/BitTorrent-Magnet zijn.",
"Download settings": "Download instellingen",
"Advanced settings": "Geavanceerde instellingen",
Cancel: "Annuleren",
Start: "Starten",
Choose: "Kiezen",
"Quick Access (shown on the main page)": "Snelle toegang (op de hoofdpagina)",
// add torrent modal
"Add Downloads By Torrents": "Downloads toevoegen met torrents",
"- Select the torrent from the local filesystem to start the download.":
"- Selecteer de torrent van het locale bestandssysteem om de download te starten.",
"- You can select multiple torrents to start multiple downloads.":
"- Je kunt meerdere torrents selecteren voor meerdere downloads.",
"- 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 Torrents": "Selecteer torrents",
"Select a Torrent": "Selecteer een torrent",
// add metalink modal
"Add Downloads By Metalinks": "Download toevoegen met Metalinks",
"Select Metalinks": "Selecteer Metalinks",
"- Select the Metalink from the local filesystem to start the download.":
"- Selecteer de Metalink van het locale bestandssysteem om de download te starten.",
"- You can select multiple Metalinks to start multiple downloads.":
"- Selecter meerdere Metalinks om meerdere downloads te starten.",
"Select a Metalink": "Selecteer een Metalink",
// select file modal
"Choose files to start download for": "Bestanden kiezen waarvoor het downloaden beginnen moet",
"Select to download": "Selecteer om te downloaden",
// settings modal
"Aria2 RPC host and port": "Aria2 RPC server en poort",
"Enter the host": "Server invoeren",
"Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
"Voer de IP of DNS naam van de server waarop de RPC van Aria2 loopt (standaard: localhost)",
"Enter the port": "Poort invoeren",
"Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
"Invoeren van de serverpoort waarop de RPC van Aria2 loopt (standaard: 6800)",
"Enter the RPC path": "Invoeren van het RPC pad",
"Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
"Invoeren van het eindpunt van het Aria2 RPC pad (standaard: /jsonrpc)",
"SSL/TLS encryption": "SSL/TLS versleuteling",
"Enable SSL/TLS encryption": "SSL/TLS versleuteling inschakelen",
"Enter the secret token (optional)": "Invoeren van het wachtwoord (facultatief)",
"Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
"Invoeren van het Aria2 RPC wachtwoord (niet invullen als authenticatie niet is ingeschakeld)",
"Enter the username (optional)": "Invoeren van de gebruikersnaam (facultatief)",
"Enter the Aria2 RPC username (empty if authentication not enabled)":
"Invoeren van de Aria2 RPC gebruikersnaam (niet invullen als authenticatie niet is ingeschakeld)",
"Enter the password (optional)": "Invoeren van het wachtwoord (facultatief)",
"Enter the Aria2 RPC password (empty if authentication not enabled)":
"Invoeren van het Aria2 RPC wachtwoord (niet invullen als authenticatie niet is ingeschakeld)",
"Enter base URL (optional)": "Invoeren van de basis URL (facultatief)",
"Direct Download": "Direct downloaden",
"If supplied, links will be created to enable direct download from the Aria2 server.":
"Als ingevoerd dan worden links aangemaakt die het direct downloaden van de Aria2 server toestaan.",
"(Requires appropriate webserver to be configurured.)":
"Hiervoor moet een geschikte webserver worden ingericht.)",
"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'){
translations = {};
if (typeof translations == "undefined") {
translations = {};
}
translations.pl_PL = {
// header
'Search': 'Szukaj',
// Nav menu
'Add': 'Dodaj',
'By URIs': 'Przez URL',
'By Torrents': 'Przez Torrenty',
'By Metalinks': 'Przez Metalinki',
'Manage': 'Zarządzaj',
'Pause All': 'Zatrzymaj wszystkie',
'Resume Paused': 'Wznów zatrzymane',
'Purge Completed': 'Czyść zakończone',
'Settings': 'Ustawienia',
'Connection Settings': 'Ustawienia połączenia',
'Global Settings': 'Ustawienia globalne',
'Server info': 'Informacje o serwerze',
'About and contribute': 'O projekcie',
'Toggle navigation': 'Przełącz nawigację',
// body
// nav side bar
'Miscellaneous': 'Różne',
'Global Statistics': 'Statystyki globalne',
'About': 'O',
'Displaying': 'Wyświetlanie',
'of': 'z',
'downloads': 'pobranych plików',
'Language': 'Język',
// download filters
'Download Filters': 'Filtry ściągania',
'Running': 'Uruchomione',
'Active': 'Aktywne',
'Waiting': 'Oczekujące',
'Complete': 'Zakończone',
'Error': 'Błąd',
'Paused': 'Zatrzymane',
'Removed': 'Usunięte',
'Hide linked meta-data': 'Ukryj zalinkowane meta-dane',
'Toggle': 'Przełącz',
'Reset filters': 'Reset filtrów',
// starred properties
'Quick Access Settings': 'Ustawienia szybkiego dostępu',
'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',
'download button to start downloading files!': 'aby rozpocząć ściąganie plików!',
'Peers': 'Peerów',
'More Info': 'Więcej info',
'Remove': 'Usuń',
'# of': '# z',
'Length': 'Długość',
// modals
'Add Downloads By URIs': 'Dodaj pobieranie przez URI',
'- 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.',
'- 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ą.',
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '- URI może być HTTP(S)/FTP/BitTorrent-Magnet.',
'Download settings': 'Ustawienia pobierania',
'Advanced settings': 'Zaawansowane ustawienia',
'Cancel': 'Anuluj',
'Start': 'Rozpocznij',
'Choose': 'Wybierz',
'Quick Access (shown on the main page)': 'Szybki dostęp (pokazywane na głównej stronie)',
// add torrent modal
'Add Downloads By Torrents': 'Dodaj pobierania przez Torrenty',
'- Select the torrent from the local filesystem to start the download.': '- Wybierz torrent z lokalnego systemu plików, aby rozpocząć pobieranie.',
'- You can select multiple torrents to start multiple downloads.': '- Możesz wybrać wiele torrentów do rozpoczęcia wiele pobrań.',
'- 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.',
'Select Torrents': 'Wybierz Torrenty',
'Select a Torrent': 'Wybierz Torrent',
// add metalink modal
'Add Downloads By Metalinks': 'Dodaj pobierania przez Metalinki',
'Select Metalinks': 'Wybierz Metalinki',
'- Select the Metalink from the local filesystem to start the download.': '- Wybierz Metalinki z lokalnego systemu plików, aby rozpocząć pobieranie.',
'- You can select multiple Metalinks to start multiple downloads.': '- Możesz wybrać wiele Metalinków, aby rozpocząć wiele pobrań.',
'Select a Metalink': 'Wybierz Metalink',
// select file modal
'Choose files to start download for': 'Wybierz pliki, aby rozpocząć pobieranie dla',
'Select to download': 'Wybierz do pobierania',
// settings modal
'Aria2 RPC host and port': 'Aria2 RPC host i port',
'Enter the host': 'Wprowadź host',
'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)',
'Enter the port': 'Wprowadź port',
'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)',
'Enter the RPC path': 'Wprowadź ścieżkę RPC',
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'Wprowadź ścieżkę dla punktu końcowego Aria2 RPC (domyślnie: /jsonrpc)',
'SSL/TLS encryption': 'szyfrowanie SSL/TLS',
'Enable SSL/TLS encryption': 'Włącz szyfrowanie SSL/TLS',
'Enter the secret token (optional)': 'Wprowadź sekretny token (opcja dodatkowa)',
'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 username (optional)': 'Wprowadź nazwę użytkownika (opcja dodatkowa)',
'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 password (optional)': 'Wprowadź hasło (opcja dodatkowa)',
'Enter the Aria2 RPC password (empty if authentication not enabled)': 'Wprowadź hasło Aria2 RPC (pozostaw puste, jeżeli uwierzytelnienie nie jest włączone)',
'Enter base URL (optional)': 'Wprowadź podstawowy URL (opcja dodatkowa)',
'Direct Download': 'Bezpośrednie pobieranie',
'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',
'(Requires appropriate webserver to be configured.)': '(Wymaga właściwej konfiguracji serwera WWW)',
'Save Connection configuration': 'Zapisz konfigurację połączenia',
'Filter': 'Filtr',
// server info modal
'Aria2 server info': 'Info o serwerze Aria2',
'Aria2 Version': 'Wersja Aria2',
'Features Enabled': 'Włączone funkcje',
// about modal
'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',
'Or you can open the latest version in the browser through': 'Lub otwórz najnowszą wersję przez przeglądarkę',
'Close': 'Zamknij',
// lables
'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'
// header
Search: "Szukaj",
// Nav menu
Add: "Dodaj",
"By URIs": "Przez URL",
"By Torrents": "Przez Torrenty",
"By Metalinks": "Przez Metalinki",
Manage: "Zarządzaj",
"Pause All": "Zatrzymaj wszystkie",
"Resume Paused": "Wznów zatrzymane",
"Purge Completed": "Czyść zakończone",
Settings: "Ustawienia",
"Connection Settings": "Ustawienia połączenia",
"Global Settings": "Ustawienia globalne",
"Server info": "Informacje o serwerze",
"About and contribute": "O projekcie",
"Toggle navigation": "Przełącz nawigację",
// body
// nav side bar
Miscellaneous: "Różne",
"Global Statistics": "Statystyki globalne",
About: "O",
Displaying: "Wyświetlanie",
of: "z",
downloads: "pobranych plików",
Language: "Język",
// download filters
"Download Filters": "Filtry ściągania",
Running: "Uruchomione",
Active: "Aktywne",
Waiting: "Oczekujące",
Complete: "Zakończone",
Error: "Błąd",
Paused: "Zatrzymane",
Removed: "Usunięte",
"Hide linked meta-data": "Ukryj zalinkowane meta-dane",
Toggle: "Przełącz",
"Reset filters": "Reset filtrów",
// starred properties
"Quick Access Settings": "Ustawienia szybkiego dostępu",
"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",
"download button to start downloading files!": "aby rozpocząć ściąganie plików!",
Peers: "Peerów",
"More Info": "Więcej info",
Remove: "Usuń",
"# of": "# z",
Length: "Długość",
// modals
"Add Downloads By URIs": "Dodaj pobieranie przez URI",
"- 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.",
"- 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ą.",
"- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.": "- URI może być HTTP(S)/FTP/BitTorrent-Magnet.",
"Download settings": "Ustawienia pobierania",
"Advanced settings": "Zaawansowane ustawienia",
Cancel: "Anuluj",
Start: "Rozpocznij",
Choose: "Wybierz",
"Quick Access (shown on the main page)": "Szybki dostęp (pokazywane na głównej stronie)",
// add torrent modal
"Add Downloads By Torrents": "Dodaj pobierania przez Torrenty",
"- Select the torrent from the local filesystem to start the download.":
"- Wybierz torrent z lokalnego systemu plików, aby rozpocząć pobieranie.",
"- You can select multiple torrents to start multiple downloads.":
"- Możesz wybrać wiele torrentów do rozpoczęcia wiele pobrań.",
"- 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.",
"Select Torrents": "Wybierz Torrenty",
"Select a Torrent": "Wybierz Torrent",
// add metalink modal
"Add Downloads By Metalinks": "Dodaj pobierania przez Metalinki",
"Select Metalinks": "Wybierz Metalinki",
"- Select the Metalink from the local filesystem to start the download.":
"- Wybierz Metalinki z lokalnego systemu plików, aby rozpocząć pobieranie.",
"- You can select multiple Metalinks to start multiple downloads.":
"- Możesz wybrać wiele Metalinków, aby rozpocząć wiele pobrań.",
"Select a Metalink": "Wybierz Metalink",
// select file modal
"Choose files to start download for": "Wybierz pliki, aby rozpocząć pobieranie dla",
"Select to download": "Wybierz do pobierania",
// settings modal
"Aria2 RPC host and port": "Aria2 RPC host i port",
"Enter the host": "Wprowadź host",
"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)",
"Enter the port": "Wprowadź port",
"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)",
"Enter the RPC path": "Wprowadź ścieżkę RPC",
"Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
"Wprowadź ścieżkę dla punktu końcowego Aria2 RPC (domyślnie: /jsonrpc)",
"SSL/TLS encryption": "szyfrowanie SSL/TLS",
"Enable SSL/TLS encryption": "Włącz szyfrowanie SSL/TLS",
"Enter the secret token (optional)": "Wprowadź sekretny token (opcja dodatkowa)",
"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 username (optional)": "Wprowadź nazwę użytkownika (opcja dodatkowa)",
"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 password (optional)": "Wprowadź hasło (opcja dodatkowa)",
"Enter the Aria2 RPC password (empty if authentication not enabled)":
"Wprowadź hasło Aria2 RPC (pozostaw puste, jeżeli uwierzytelnienie nie jest włączone)",
"Enter base URL (optional)": "Wprowadź podstawowy URL (opcja dodatkowa)",
"Direct Download": "Bezpośrednie pobieranie",
"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",
"(Requires appropriate webserver to be configured.)":
"(Wymaga właściwej konfiguracji serwera WWW)",
"Save Connection configuration": "Zapisz konfigurację połączenia",
Filter: "Filtr",
// server info modal
"Aria2 server info": "Info o serwerze Aria2",
"Aria2 Version": "Wersja Aria2",
"Features Enabled": "Włączone funkcje",
// about modal
"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",
"Or you can open the latest version in the browser through":
"Lub otwórz najnowszą wersję przez przeglądarkę",
Close: "Zamknij",
// lables
"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'){
translations = {};
if (typeof translations == "undefined") {
translations = {};
}
translations.pt_BR = { // replace en_US to ll_CC, examples: zh_CN, de_AT.
// header
'Search': 'Buscar',
// Nav menu
'Add': 'Adicionar',
'By URIs': 'Por URIs',
'By Torrents': 'Por Torrents',
'By Metalinks': 'Por Metalinks',
'Manage': 'Gerenciar',
'Pause All': 'Pausar Todos',
'Resume Paused': 'Retomar Pausados',
'Purge Completed': 'Remover Completados',
'Shutdown Server': 'Desligar Servidor',
'Settings': 'Configurações',
'Connection Settings': 'Configurações de Conexão',
'Global Settings': 'Configurações Globais',
'Server info': 'Informações do Servidor',
'About and contribute': 'Sobre e contribuições',
'Toggle navigation': 'Alternar navegação',
// body
// nav side bar
'Miscellaneous': 'Miscelânia',
'Global Statistics': 'Estatísticas Globais',
'About': 'Sobre',
'Displaying': 'Mostrando',
'of': 'de',
'downloads': 'downloads',
'Language': 'Linguagem',
// download filters
'Download Filters': 'Filtros de Download',
'Running': 'Rodando',
'Active': 'Ativo',
'Waiting': 'Esperando',
'Complete': 'Completo',
'Error': 'Erro',
'Paused': 'Pausado',
'Removed': 'Removido',
'Hide linked meta-data': 'Esconder metadados ligados',
'Toggle': 'Alternar',
'Reset filters': 'Limpar filtros',
// download status
'Verifing': 'Verificando',
'Verify Pending': 'Verificação Pendente',
// starred properties
'Quick Access Settings': 'Acesso Rápido às Configurações',
'Save': 'Salvar',
'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',
'download button to start downloading files!': 'pra iniciar a transferência de arquivos!',
'Peers': 'Peers',
'More Info': 'Mais informações',
'Remove': 'Remover',
'# of': ' de',
'Length': 'Tamanho',
// modals
'Add Downloads By URIs': 'Adicionar Downloads por URIs',
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.':
'- Você pode adicionar múltiplos downloads (arquivos) ao mesmo tempo inserindo a URI de cada arquivo em uma linha separada.',
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.':
'- Você também pode adicionar múltiplas URIs (mirrors) para o *mesmo* arquivo. Para fazer isto, separe as URIs por um espaço.',
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '- Uma URI pode ser HTTP(S)/FTP/BitTorrent-Magnet.',
'Download settings': 'Configurações de download',
'Advanced settings': 'Configurações avançadas',
'Cancel': 'Cancelar',
'Start': 'Iniciar',
'Choose': 'Escolher',
'Quick Access (shown on the main page)': 'Acesso Rápido (exibido na página principal)',
// add torrent modal
'Add Downloads By Torrents': 'Adicionar Downloads por Torrents',
'- Select the torrent from the local filesystem to start the download.': '- Selecione o torrent de seu sistema de arquivos local para iniciar o download.',
'- You can select multiple torrents to start multiple downloads.': '- Você pode selecionar múltiplos torrents para iniciar múltiplos downloads.',
'- 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 Torrents': 'Selecione Torrents',
'Select a Torrent': 'Selecione um Torrent',
// add metalink modal
'Add Downloads By Metalinks': 'Adicionar Downloads por Metalinks',
'Select Metalinks': 'Selecione Metalinks',
'- Select the Metalink from the local filesystem to start the download.': '- Selecione o Metalink do seu sistema de arquivos local para iniciar o download.',
'- You can select multiple Metalinks to start multiple downloads.': '- Você pode selecionar múltiplos Metalinks para iniciar múltiplos downloads.',
'Select a Metalink': 'Selecione um Metalink',
// select file modal
'Choose files to start download for': 'Selecione os arquvos para serem baixados',
'Select to download': 'Selecione para baixar',
// settings modal
'Aria2 RPC host and port': 'Host e porta do RPC Aria2',
'Enter the host': 'Informe o host',
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)':
'Informe o IP ou nome DNS do servidor no qual o RPC do Aria2 está rodando (default: localhost)',
'Enter the port': 'Informe a porta',
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)':
'Informe a porta do servidor no qual o RPC do Aria2 está rodando (default: 6800)',
'Enter the RPC path': 'Informe o caminho RPC',
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'Informe o caminho para o endpoint RPC do Aria2 (default: /jasonrpc)',
'SSL/TLS encryption': 'Criptografia SSL/TLS',
'Enable SSL/TLS encryption': 'Habilita criptografia SSL/TLS',
'Enter the secret token (optional)': 'Informe o token secreto (opcional)',
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)':
'Informe o token secreto do RPC Aria2 (deixe vazio se a autenticação não estiver habilitada)',
'Enter the username (optional)': 'Informe o usuário (opcional)',
'Enter the Aria2 RPC username (empty if authentication not enabled)':
'Informe o usuário RPC do Aria2 (vazio se a autenticação não estiver habilitada)',
'Enter the password (optional)': 'Informe a senha (opcional)',
'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)',
'Enter base URL (optional)': 'Informe a URL base (opcional)',
'Direct Download': 'Download Direto',
'If supplied, links will be created to enable direct download from the Aria2 server.':
'Se fornecido, links serão criados para permitir download direto do servidor Aria2.',
'(Requires appropriate webserver to be configured.)': '(Requer servidor web apropriado a ser configurado.)',
'Save Connection configuration': 'Salvar Configuração de conexão',
'Filter': 'Filtrar',
// server info modal
'Aria2 server info': 'Informações do servidor Aria2',
'Aria2 Version': 'Verão do Aria2',
'Features Enabled': 'Opções Habilitadas',
// about modal
'To download the latest version of the project, add issues or to contribute back, head on to':
'Para baixar a última versão do projeto, reportar problemas ou contribuir, acesse',
'Or you can open the latest version in the browser through': 'Ou você pode acessar a última versão pelo navegador através',
'Close': 'Fechar',
// labels
'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',
translations.pt_BR = {
// replace en_US to ll_CC, examples: zh_CN, de_AT.
// header
Search: "Buscar",
// Nav menu
Add: "Adicionar",
"By URIs": "Por URIs",
"By Torrents": "Por Torrents",
"By Metalinks": "Por Metalinks",
Manage: "Gerenciar",
"Pause All": "Pausar Todos",
"Resume Paused": "Retomar Pausados",
"Purge Completed": "Remover Completados",
"Shutdown Server": "Desligar Servidor",
Settings: "Configurações",
"Connection Settings": "Configurações de Conexão",
"Global Settings": "Configurações Globais",
"Server info": "Informações do Servidor",
"About and contribute": "Sobre e contribuições",
"Toggle navigation": "Alternar navegação",
// body
// nav side bar
Miscellaneous: "Miscelânia",
"Global Statistics": "Estatísticas Globais",
About: "Sobre",
Displaying: "Mostrando",
of: "de",
downloads: "downloads",
Language: "Linguagem",
// download filters
"Download Filters": "Filtros de Download",
Running: "Rodando",
Active: "Ativo",
Waiting: "Esperando",
Complete: "Completo",
Error: "Erro",
Paused: "Pausado",
Removed: "Removido",
"Hide linked meta-data": "Esconder metadados ligados",
Toggle: "Alternar",
"Reset filters": "Limpar filtros",
// download status
Verifing: "Verificando",
"Verify Pending": "Verificação Pendente",
// starred properties
"Quick Access Settings": "Acesso Rápido às Configurações",
Save: "Salvar",
"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",
"download button to start downloading files!": "pra iniciar a transferência de arquivos!",
Peers: "Peers",
"More Info": "Mais informações",
Remove: "Remover",
"# of": " de",
Length: "Tamanho",
// modals
"Add Downloads By URIs": "Adicionar Downloads por URIs",
"- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
"- Você pode adicionar múltiplos downloads (arquivos) ao mesmo tempo inserindo a URI de cada arquivo em uma linha separada.",
"- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
"- Você também pode adicionar múltiplas URIs (mirrors) para o *mesmo* arquivo. Para fazer isto, separe as URIs por um espaço.",
"- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.":
"- Uma URI pode ser HTTP(S)/FTP/BitTorrent-Magnet.",
"Download settings": "Configurações de download",
"Advanced settings": "Configurações avançadas",
Cancel: "Cancelar",
Start: "Iniciar",
Choose: "Escolher",
"Quick Access (shown on the main page)": "Acesso Rápido (exibido na página principal)",
// add torrent modal
"Add Downloads By Torrents": "Adicionar Downloads por Torrents",
"- Select the torrent from the local filesystem to start the download.":
"- Selecione o torrent de seu sistema de arquivos local para iniciar o download.",
"- You can select multiple torrents to start multiple downloads.":
"- Você pode selecionar múltiplos torrents para iniciar múltiplos downloads.",
"- 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 Torrents": "Selecione Torrents",
"Select a Torrent": "Selecione um Torrent",
// add metalink modal
"Add Downloads By Metalinks": "Adicionar Downloads por Metalinks",
"Select Metalinks": "Selecione Metalinks",
"- Select the Metalink from the local filesystem to start the download.":
"- Selecione o Metalink do seu sistema de arquivos local para iniciar o download.",
"- You can select multiple Metalinks to start multiple downloads.":
"- Você pode selecionar múltiplos Metalinks para iniciar múltiplos downloads.",
"Select a Metalink": "Selecione um Metalink",
// select file modal
"Choose files to start download for": "Selecione os arquvos para serem baixados",
"Select to download": "Selecione para baixar",
// settings modal
"Aria2 RPC host and port": "Host e porta do RPC Aria2",
"Enter the host": "Informe o host",
"Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
"Informe o IP ou nome DNS do servidor no qual o RPC do Aria2 está rodando (default: localhost)",
"Enter the port": "Informe a porta",
"Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
"Informe a porta do servidor no qual o RPC do Aria2 está rodando (default: 6800)",
"Enter the RPC path": "Informe o caminho RPC",
"Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
"Informe o caminho para o endpoint RPC do Aria2 (default: /jasonrpc)",
"SSL/TLS encryption": "Criptografia SSL/TLS",
"Enable SSL/TLS encryption": "Habilita criptografia SSL/TLS",
"Enter the secret token (optional)": "Informe o token secreto (opcional)",
"Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
"Informe o token secreto do RPC Aria2 (deixe vazio se a autenticação não estiver habilitada)",
"Enter the username (optional)": "Informe o usuário (opcional)",
"Enter the Aria2 RPC username (empty if authentication not enabled)":
"Informe o usuário RPC do Aria2 (vazio se a autenticação não estiver habilitada)",
"Enter the password (optional)": "Informe a senha (opcional)",
"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)",
"Enter base URL (optional)": "Informe a URL base (opcional)",
"Direct Download": "Download Direto",
"If supplied, links will be created to enable direct download from the Aria2 server.":
"Se fornecido, links serão criados para permitir download direto do servidor Aria2.",
"(Requires appropriate webserver to be configured.)":
"(Requer servidor web apropriado a ser configurado.)",
"Save Connection configuration": "Salvar Configuração de conexão",
Filter: "Filtrar",
// server info modal
"Aria2 server info": "Informações do servidor Aria2",
"Aria2 Version": "Verão do Aria2",
"Features Enabled": "Opções Habilitadas",
// about modal
"To download the latest version of the project, add issues or to contribute back, head on to":
"Para baixar a última versão do projeto, reportar problemas ou contribuir, acesse",
"Or you can open the latest version in the browser through":
"Ou você pode acessar a última versão pelo navegador através",
Close: "Fechar",
// labels
"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
'The last connection attempt was unsuccessful. Trying another configuration':
'A última tentativa de conexão não teve sucesso. Tentando outra configuração',
'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':
'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':
'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 …':
'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)':
'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':
'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.
'Remover {{name}} e os metadados associados?'
//alerts
"The last connection attempt was unsuccessful. Trying another configuration":
"A última tentativa de conexão não teve sucesso. Tentando outra configuração",
"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":
"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":
"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 …":
"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)":
"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":
"Tentando conectar-se ao aria2 utilizando a nova configuração de conexão",
// {{name}} refers to the download name, do not modify.
"Remove {{name}} and associated meta-data?": "Remover {{name}} e os metadados associados?"
};

View File

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

View File

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

View File

@ -1,140 +1,156 @@
if(typeof translations == 'undefined'){
translations = {};
if (typeof translations == "undefined") {
translations = {};
}
translations.tr_TR = {
// header
'Search': 'Arama',
// Nav menu
'Add': 'Ekle',
'By URIs': 'URI ile',
'By Torrents': 'Torrent ile',
'By Metalinks': 'Metalink ile',
'Manage': 'Yönet',
'Pause All': 'Hepsini Duraklat',
'Resume Paused': 'Devam Et',
'Purge Completed': 'Temizleme Tamamlandı',
'Settings': 'Ayarlar',
'Connection Settings': 'Bağlantı Ayarları',
'Global Settings': 'Genel Ayarlar',
'Server info': 'Sunucu bilgisi',
'About and contribute': 'Hakkında ve katkıda bulunanlar',
'Toggle navigation': 'Gezinmeyi aç / kapat',
// body
// nav side bar
'Miscellaneous': 'Çeşitli',
'Global Statistics': 'Genel İstatistikler',
'About': 'Hakkında',
'Displaying': 'Gösteriliyor',
'of': ' / ',
'downloads': 'Indirme',
'Language': 'Dil',
// download filters
'Download Filters': 'İndirme Filtreleri',
'Running': 'Çalışıyor',
'Active': 'Aktif',
'Waiting': 'Bekliyor',
'Complete': 'Tamamlandı',
'Error': 'Hata',
'Paused': 'Duraklatıldı',
'Removed': 'Silindi',
'Hide linked meta-data': 'Bağlı meta verileri gizle',
'Toggle': 'aç/kapat',
'Reset filters': 'Filtreleri sıfırla',
// starred properties
'Quick Access Settings': 'Hızlı Erişim Ayarları',
'Save settings': 'Ayarları kaydet',
'Currently no download in line to display, use the': 'Şu anda görüntülenebilecek bir indirme yok,',
'download button to start downloading files!': 'butonu aracılığı ile dosya indirebilirsiniz!',
'Peers': 'Peers',
'More Info': 'Daha fazla bilgi',
'Remove': 'Kaldır',
'# of': '# dan',
'Length': 'Uzunluk',
// modals
'Add Downloads By URIs': 'URI kullanarak indirmelere ekle',
'- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.':
'- Ayrı bir satıra her dosya için URI koyarak aynı anda birden fazla dosya indirebilirsiniz.',
'- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.':
'- Aynı dosyalar için birden fazla URI (ayna) da ekleyebilirsiniz. Bunu yapmak için URIları bir boşlukla ayırın.',
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '- Bir URI, HTTP(S)/FTP/BitTorrent-Magnet olabilir.',
'Download settings': 'İndirme ayarları',
'Advanced settings': 'Gelişmiş Ayarlar',
'Cancel': 'İptal et',
'Start': 'Başlat',
'Choose': 'Seçiniz',
'Quick Access (shown on the main page)': 'Hızlı Erişim (ana sayfada gösterilir)',
// add torrent modal
'Add Downloads By Torrents': 'Torrent kullanarak indirmelere ekle',
'- Select the torrent from the local filesystem to start the download.': '- İndirmeyi başlatmak için yerel dosya sisteminden torrenti seçin.',
'- You can select multiple torrents to start multiple downloads.': '- Birden çok indirmeyi başlatmak için birden çok torrent seçebilirsiniz.',
'- 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 Torrents': 'Torrentleri seçin',
'Select a Torrent': 'Bir Torrent seçin',
// add metalink modal
'Add Downloads By Metalinks': 'Metalink kullanarak indirmelere ekle',
'Select Metalinks': 'Metalinkleri seçin',
'- Select the Metalink from the local filesystem to start the download.': '- İndirmeyi başlatmak için yerel dosya sisteminden Metalinki 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 Metalink': 'Bir Metalink Seç',
// select file modal
'Choose files to start download for': 'Için indirmeye başlamak için dosyaları seçin',
'Select to download': 'Indirmek için seçin',
// settings modal
'Aria2 RPC host and port': 'Aria2 RPC ana bilgisayar ve bağlantı noktası',
'Enter the host': 'Ana bilgisayar(host) girin',
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)':
'Aria2 için RPC\'nin çalıştığı sunucunun IP veya DNS adını girin (varsayılan: localhost)',
'Enter the port': 'Bağlantı noktasını gir',
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)':
'Aria2 için RPC\'nin çalıştığı sunucunun bağlantı noktasını girin (varsayılan: 6800)',
'Enter the RPC path': 'RPC yolunu girin',
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': 'Aria2 RPC bitiş noktası için yolu girin (varsayılan: / jsonrpc)',
'SSL/TLS encryption': 'SSL / TLS şifreleme',
'Enable SSL/TLS encryption': 'SSL / TLS şifrelemeyi etkinleştir',
'Enter the secret token (optional)': 'Gizli simge girin (isteğe bağlı)',
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)':
'Aria2 RPC gizli simgesini girin (kimlik doğrulama etkin değilse boş bırakın)',
'Enter the username (optional)': 'Kullanıcı adını girin (isteğe bağlı)',
'Enter the Aria2 RPC username (empty if authentication not enabled)':
'Aria2 RPC kullanıcı adını girin (kimlik doğrulama etkin değilse boş bırakın)',
'Enter the password (optional)': 'Parolayı girin (isteğe bağlı)',
'Enter the Aria2 RPC password (empty if authentication not enabled)': 'Aria2 RPC şifresini girin (kimlik doğrulama etkin değilse boş bırakın)',
'Enter base URL (optional)': 'Temel URL\'yi girin (isteğe bağlı)',
'Direct Download': 'Direkt indirme',
'If supplied, links will be created to enable direct download from the Aria2 server.':
'Verilen, bağlantıları aria2 sunucudan doğrudan indirmeyi etkinleştirmek için oluşturulur.',
'(Requires appropriate webserver to be configured.)': '(Uygun web sunucusunun yapılandırılmasını gerektirir.)',
'Save Connection configuration': 'Bağlantı yapılandırmasını kaydedin',
'Filter':'Filtre',
// server info modal
'Aria2 server info': 'Aria2 sunucu bilgisi',
'Aria2 Version': 'Aria2 Sürümü',
'Features Enabled': 'Aşağıdaki Özellikler Etkin',
// about modal
'To download the latest version of the project, add issues or to contribute back, head on to':
'Projenin en son sürümünü indirmek için sorun ekleyin veya katkıda bulunun;',
'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.',
'Close': 'Kapat',
// lables
'Download status':'İndirme durumu',
'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',
// header
Search: "Arama",
// Nav menu
Add: "Ekle",
"By URIs": "URI ile",
"By Torrents": "Torrent ile",
"By Metalinks": "Metalink ile",
Manage: "Yönet",
"Pause All": "Hepsini Duraklat",
"Resume Paused": "Devam Et",
"Purge Completed": "Temizleme Tamamlandı",
Settings: "Ayarlar",
"Connection Settings": "Bağlantı Ayarları",
"Global Settings": "Genel Ayarlar",
"Server info": "Sunucu bilgisi",
"About and contribute": "Hakkında ve katkıda bulunanlar",
"Toggle navigation": "Gezinmeyi aç / kapat",
// body
// nav side bar
Miscellaneous: "Çeşitli",
"Global Statistics": "Genel İstatistikler",
About: "Hakkında",
Displaying: "Gösteriliyor",
of: " / ",
downloads: "Indirme",
Language: "Dil",
// download filters
"Download Filters": "İndirme Filtreleri",
Running: "Çalışıyor",
Active: "Aktif",
Waiting: "Bekliyor",
Complete: "Tamamlandı",
Error: "Hata",
Paused: "Duraklatıldı",
Removed: "Silindi",
"Hide linked meta-data": "Bağlı meta verileri gizle",
Toggle: "aç/kapat",
"Reset filters": "Filtreleri sıfırla",
// starred properties
"Quick Access Settings": "Hızlı Erişim Ayarları",
"Save settings": "Ayarları kaydet",
"Currently no download in line to display, use the":
"Şu anda görüntülenebilecek bir indirme yok,",
"download button to start downloading files!": "butonu aracılığı ile dosya indirebilirsiniz!",
Peers: "Peers",
"More Info": "Daha fazla bilgi",
Remove: "Kaldır",
"# of": "# dan",
Length: "Uzunluk",
// modals
"Add Downloads By URIs": "URI kullanarak indirmelere ekle",
"- You can add multiple downloads (files) at the same time by putting URIs for each file on a separate line.":
"- Ayrı bir satıra her dosya için URI koyarak aynı anda birden fazla dosya indirebilirsiniz.",
"- You can also add multiple URIs (mirrors) for the *same* file. To do this, separate the URIs by a space.":
"- Aynı dosyalar için birden fazla URI (ayna) da ekleyebilirsiniz. Bunu yapmak için URIları bir boşlukla ayırın.",
"- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.":
"- Bir URI, HTTP(S)/FTP/BitTorrent-Magnet olabilir.",
"Download settings": "İndirme ayarları",
"Advanced settings": "Gelişmiş Ayarlar",
Cancel: "İptal et",
Start: "Başlat",
Choose: "Seçiniz",
"Quick Access (shown on the main page)": "Hızlı Erişim (ana sayfada gösterilir)",
// add torrent modal
"Add Downloads By Torrents": "Torrent kullanarak indirmelere ekle",
"- Select the torrent from the local filesystem to start the download.":
"- İndirmeyi başlatmak için yerel dosya sisteminden torrenti seçin.",
"- You can select multiple torrents to start multiple downloads.":
"- Birden çok indirmeyi başlatmak için birden çok torrent seçebilirsiniz.",
"- 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 Torrents": "Torrentleri seçin",
"Select a Torrent": "Bir Torrent seçin",
// add metalink modal
"Add Downloads By Metalinks": "Metalink kullanarak indirmelere ekle",
"Select Metalinks": "Metalinkleri seçin",
"- Select the Metalink from the local filesystem to start the download.":
"- İndirmeyi başlatmak için yerel dosya sisteminden Metalinki 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 Metalink": "Bir Metalink Seç",
// select file modal
"Choose files to start download for": "Için indirmeye başlamak için dosyaları seçin",
"Select to download": "Indirmek için seçin",
// settings modal
"Aria2 RPC host and port": "Aria2 RPC ana bilgisayar ve bağlantı noktası",
"Enter the host": "Ana bilgisayar(host) girin",
"Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
"Aria2 için RPC'nin çalıştığı sunucunun IP veya DNS adını girin (varsayılan: localhost)",
"Enter the port": "Bağlantı noktasını gir",
"Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
"Aria2 için RPC'nin çalıştığı sunucunun bağlantı noktasını girin (varsayılan: 6800)",
"Enter the RPC path": "RPC yolunu girin",
"Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
"Aria2 RPC bitiş noktası için yolu girin (varsayılan: / jsonrpc)",
"SSL/TLS encryption": "SSL / TLS şifreleme",
"Enable SSL/TLS encryption": "SSL / TLS şifrelemeyi etkinleştir",
"Enter the secret token (optional)": "Gizli simge girin (isteğe bağlı)",
"Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
"Aria2 RPC gizli simgesini girin (kimlik doğrulama etkin değilse boş bırakın)",
"Enter the username (optional)": "Kullanıcı adını girin (isteğe bağlı)",
"Enter the Aria2 RPC username (empty if authentication not enabled)":
"Aria2 RPC kullanıcı adını girin (kimlik doğrulama etkin değilse boş bırakın)",
"Enter the password (optional)": "Parolayı girin (isteğe bağlı)",
"Enter the Aria2 RPC password (empty if authentication not enabled)":
"Aria2 RPC şifresini girin (kimlik doğrulama etkin değilse boş bırakın)",
"Enter base URL (optional)": "Temel URL'yi girin (isteğe bağlı)",
"Direct Download": "Direkt indirme",
"If supplied, links will be created to enable direct download from the Aria2 server.":
"Verilen, bağlantıları aria2 sunucudan doğrudan indirmeyi etkinleştirmek için oluşturulur.",
"(Requires appropriate webserver to be configured.)":
"(Uygun web sunucusunun yapılandırılmasını gerektirir.)",
"Save Connection configuration": "Bağlantı yapılandırmasını kaydedin",
Filter: "Filtre",
// server info modal
"Aria2 server info": "Aria2 sunucu bilgisi",
"Aria2 Version": "Aria2 Sürümü",
"Features Enabled": "Aşağıdaki Özellikler Etkin",
// about modal
"To download the latest version of the project, add issues or to contribute back, head on to":
"Projenin en son sürümünü indirmek için sorun ekleyin veya katkıda bulunun;",
"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.",
Close: "Kapat",
// lables
"Download status": "İndirme durumu",
"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',
'Oh Snap!': 'HAydaaaaa!',
'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.',
'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',
"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",
"Oh Snap!": "HAydaaaaa!",
"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.",
"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'){
translations = {};
if (typeof translations == "undefined") {
translations = {};
}
translations.zh_CN = {
// header
'Search': '搜索',
// Nav menu
'Add': '添加',
'By URIs': '使用链接',
'By Torrents': '使用种子',
'By Metalinks': '使用 Metalink',
'Manage': '管理',
'Pause All': '暂停所有',
'Resume Paused': '恢复下载',
'Purge Completed': '清除已完成',
'Shutdown Server': '关闭服务器',
'Settings': '设置',
'Connection Settings': '连接设置',
'Global Settings': '全局设置',
'Server info': '服务器信息',
'About and contribute': '关于和捐助',
'Toggle navigation': '切换导航',
// body
// nav side bar
'Miscellaneous': '杂项',
'Global Statistics': '全局统计',
'About': '关于',
'Displaying': '正在显示',
'of': '/',
'downloads': '下载',
'Language': '语言',
// download filters
'Download Filters': '下载过滤器',
'Running': '运行中',
'Active': '活动的',
'Waiting': '等待中',
'Complete': '已完成',
'Error': '出错的',
'Paused': '已暂停',
'Removed': '已删除',
'Hide linked meta-data': '隐藏连接的元数据',
'Toggle': '反向选择',
'Reset filters': '重置过滤器',
// download status
'Verifing': '正在验证',
'Verify Pending': '等待验证',
// starred properties
'Quick Access Settings': '快速访问设置',
'Save': '保存',
'Save settings': '保存设置',
'Currently no download in line to display, use the': '当前没有可显示的下载项,使用',
'download button to start downloading files!': '按钮来开始下载!',
'Peers': 'Peers',
'More Info': '更多信息',
'Remove': '删除',
'# of': '块数',
'Length': '块大小',
// modals
'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.':
'- 你也可以给同一个下载任务添加多个镜像链接,写在一行并用空格分隔每条链接;',
'- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.': '- 链接可以是 HTTP(S)、FTP 和磁力链接。',
'Download settings': '下载设置',
'Advanced settings': '高级设置',
'Cancel': '取消',
'Start': '开始',
'Choose': '选择',
'Quick Access (shown on the main page)': '快速访问(在主页上显示)',
// add torrent modal
'Add Downloads By Torrents': '使用种子下载',
'- 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.': '- 如果要添加磁力链接,请使用添加链接的方式。',
'Select Torrents': '选择种子文件',
'Select a Torrent': '选择种子文件',
// add metalink modal
'Add Downloads By Metalinks': '使用 Metalink 下载',
'Select Metalinks': '选择 Metalink 文件',
'- Select the Metalink from the local filesystem to start the download.': '* 从本地文件系统选择 Metalink 文件开始下载;',
'- You can select multiple Metalinks to start multiple downloads.': '* 你可以同时选择多个 Metalink 文件来启动多个下载。',
'Select a Metalink': '选择 Metalink 文件',
// select file modal
'Choose files to start download for': '请选择要下载的文件',
'Select to download': '选择以下载',
// settings modal
'Aria2 RPC host and port': 'Aria2 RPC 主机和端口',
'Enter the host': '主机',
'Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)':
'输入 Aria2 RPC 所在服务器的 IP 或域名默认localhost',
'Enter the port': '端口',
'Enter the port of the server on which the RPC for Aria2 is running (default: 6800)':
'输入 Aria2 RPC 端口号默认6800',
'Enter the RPC path': 'RPC 路径',
'Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)': '输入 Aria2 RPC 路径(默认:/jsonrpc',
'SSL/TLS encryption': 'SSL/TLS 加密',
'Enable SSL/TLS encryption': '启用 SSL/TLS 加密',
'Enter the secret token (optional)': '密码令牌(可选)',
'Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)':
'输入 Aria2 RPC 密码令牌(如果未启用则留空)',
'Enter the username (optional)': '用户名(可选)',
'Enter the Aria2 RPC username (empty if authentication not enabled)':
'输入 Aria2 RPC 用户名(如果未启用身份验证则留空)',
'Enter the password (optional)': '密码(可选)',
'Enter the Aria2 RPC password (empty if authentication not enabled)': '输入 Aria2 RPC 密码(如果未启用身份验证则留空)',
'Enter base URL (optional)': '基本链接地址(可选)',
'Direct Download': '直接下载',
'If supplied, links will be created to enable direct download from the Aria2 server.':
'如果指定该选项,将会创建可以直接从 Aria2 服务器上下载文件的链接。',
'(Requires appropriate webserver to be configured.)': '(需要 WEB 服务器配置正确)',
'Save Connection configuration': '保存连接配置',
'Filter':'过滤',
// server info modal
'Aria2 server info': 'Aria2 服务器信息',
'Aria2 Version': 'Aria2 版本',
'Features Enabled': '已启用功能',
// about modal
'To download the latest version of the project, add issues or to contribute back, head on to':
'下载最新版本、提交问题或捐助,请访问',
'Or you can open the latest version in the browser through': '直接在浏览器中使用最新版本,请访问',
'Close': '关闭',
// labels
'Download status':'当前下载状态',
'Download Speed':'当前下载速度',
'Upload Speed':'当前上传速度',
'Estimated time':'预计剩余时间',
'Download Size':'下载总大小',
'Downloaded':'已下载大小',
'Progress':'当前下载进度',
'Download Path':'文件下载路径',
'Uploaded':'已上传大小',
'Download GID':'下载的 GID',
'Number of Pieces':'文件块数量',
'Piece Length':'每块大小',
// header
Search: "搜索",
// Nav menu
Add: "添加",
"By URIs": "使用链接",
"By Torrents": "使用种子",
"By Metalinks": "使用 Metalink",
Manage: "管理",
"Pause All": "暂停所有",
"Resume Paused": "恢复下载",
"Purge Completed": "清除已完成",
"Shutdown Server": "关闭服务器",
Settings: "设置",
"Connection Settings": "连接设置",
"Global Settings": "全局设置",
"Server info": "服务器信息",
"About and contribute": "关于和捐助",
"Toggle navigation": "切换导航",
// body
// nav side bar
Miscellaneous: "杂项",
"Global Statistics": "全局统计",
About: "关于",
Displaying: "正在显示",
of: "/",
downloads: "下载",
Language: "语言",
// download filters
"Download Filters": "下载过滤器",
Running: "运行中",
Active: "活动的",
Waiting: "等待中",
Complete: "已完成",
Error: "出错的",
Paused: "已暂停",
Removed: "已删除",
"Hide linked meta-data": "隐藏连接的元数据",
Toggle: "反向选择",
"Reset filters": "重置过滤器",
// download status
Verifing: "正在验证",
"Verify Pending": "等待验证",
// starred properties
"Quick Access Settings": "快速访问设置",
Save: "保存",
"Save settings": "保存设置",
"Currently no download in line to display, use the": "当前没有可显示的下载项,使用",
"download button to start downloading files!": "按钮来开始下载!",
Peers: "Peers",
"More Info": "更多信息",
Remove: "删除",
"# of": "块数",
Length: "块大小",
// modals
"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.":
"- 你也可以给同一个下载任务添加多个镜像链接,写在一行并用空格分隔每条链接;",
"- A URI can be HTTP(S)/FTP/BitTorrent-Magnet.": "- 链接可以是 HTTP(S)、FTP 和磁力链接。",
"Download settings": "下载设置",
"Advanced settings": "高级设置",
Cancel: "取消",
Start: "开始",
Choose: "选择",
"Quick Access (shown on the main page)": "快速访问(在主页上显示)",
// add torrent modal
"Add Downloads By Torrents": "使用种子下载",
"- 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.":
"- 如果要添加磁力链接,请使用添加链接的方式。",
"Select Torrents": "选择种子文件",
"Select a Torrent": "选择种子文件",
// add metalink modal
"Add Downloads By Metalinks": "使用 Metalink 下载",
"Select Metalinks": "选择 Metalink 文件",
"- Select the Metalink from the local filesystem to start the download.":
"* 从本地文件系统选择 Metalink 文件开始下载;",
"- You can select multiple Metalinks to start multiple downloads.":
"* 你可以同时选择多个 Metalink 文件来启动多个下载。",
"Select a Metalink": "选择 Metalink 文件",
// select file modal
"Choose files to start download for": "请选择要下载的文件",
"Select to download": "选择以下载",
// settings modal
"Aria2 RPC host and port": "Aria2 RPC 主机和端口",
"Enter the host": "主机",
"Enter the IP or DNS name of the server on which the RPC for Aria2 is running (default: localhost)":
"输入 Aria2 RPC 所在服务器的 IP 或域名默认localhost",
"Enter the port": "端口",
"Enter the port of the server on which the RPC for Aria2 is running (default: 6800)":
"输入 Aria2 RPC 端口号默认6800",
"Enter the RPC path": "RPC 路径",
"Enter the path for the Aria2 RPC endpoint (default: /jsonrpc)":
"输入 Aria2 RPC 路径(默认:/jsonrpc",
"SSL/TLS encryption": "SSL/TLS 加密",
"Enable SSL/TLS encryption": "启用 SSL/TLS 加密",
"Enter the secret token (optional)": "密码令牌(可选)",
"Enter the Aria2 RPC secret token (leave empty if authentication is not enabled)":
"输入 Aria2 RPC 密码令牌(如果未启用则留空)",
"Enter the username (optional)": "用户名(可选)",
"Enter the Aria2 RPC username (empty if authentication not enabled)":
"输入 Aria2 RPC 用户名(如果未启用身份验证则留空)",
"Enter the password (optional)": "密码(可选)",
"Enter the Aria2 RPC password (empty if authentication not enabled)":
"输入 Aria2 RPC 密码(如果未启用身份验证则留空)",
"Enter base URL (optional)": "基本链接地址(可选)",
"Direct Download": "直接下载",
"If supplied, links will be created to enable direct download from the Aria2 server.":
"如果指定该选项,将会创建可以直接从 Aria2 服务器上下载文件的链接。",
"(Requires appropriate webserver to be configured.)": "(需要 WEB 服务器配置正确)",
"Save Connection configuration": "保存连接配置",
Filter: "过滤",
// server info modal
"Aria2 server info": "Aria2 服务器信息",
"Aria2 Version": "Aria2 版本",
"Features Enabled": "已启用功能",
// about modal
"To download the latest version of the project, add issues or to contribute back, head on to":
"下载最新版本、提交问题或捐助,请访问",
"Or you can open the latest version in the browser through": "直接在浏览器中使用最新版本,请访问",
Close: "关闭",
// labels
"Download status": "当前下载状态",
"Download Speed": "当前下载速度",
"Upload Speed": "当前上传速度",
"Estimated time": "预计剩余时间",
"Download Size": "下载总大小",
Downloaded: "已下载大小",
Progress: "当前下载进度",
"Download Path": "文件下载路径",
Uploaded: "已上传大小",
"Download GID": "下载的 GID",
"Number of Pieces": "文件块数量",
"Piece Length": "每块大小",
//alerts
'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':
'无法连接到 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':
'连接到 Aria2 RPC 服务器时认证失败将在10秒后重试。您可能需要确认您的身份验证信息请前往 设置 > 连接设置',
'Successfully connected to Aria2 through its remote RPC …':
'通过 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)':
'通过 RPC 连接到 Aria2 成功,但是连接并不安全。要想使用安全连接,尝试在启动 Aria2 时添加一个授权密码令牌(通过 --rpc-secret 参数)',
'Trying to connect to aria2 using the new connection configuration':
'正在尝试使用新的连接配置来连接到 Aria2 ……',
'Remove {{name}} and associated meta-data?':
'是否删除 {{name}} 和关联的元数据?'
//alerts
"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":
"无法连接到 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":
"连接到 Aria2 RPC 服务器时认证失败将在10秒后重试。您可能需要确认您的身份验证信息请前往 设置 > 连接设置",
"Successfully connected to Aria2 through its remote RPC …": "通过 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)":
"通过 RPC 连接到 Aria2 成功,但是连接并不安全。要想使用安全连接,尝试在启动 Aria2 时添加一个授权密码令牌(通过 --rpc-secret 参数)",
"Trying to connect to aria2 using the new connection configuration":
"正在尝试使用新的连接配置来连接到 Aria2 ……",
"Remove {{name}} and associated meta-data?": "是否删除 {{name}} 和关联的元数据?"
};

View File

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

View File

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