diff --git a/src/tr-web-control/i18n/es.json b/src/tr-web-control/i18n/es.json index da165df..5ff43ff 100644 --- a/src/tr-web-control/i18n/es.json +++ b/src/tr-web-control/i18n/es.json @@ -136,6 +136,7 @@ "dialog": { "torrent-add": { "download-dir": "Carpeta descarga:", + "used-download-dir": "Carpeta de descarga usada:", "torrent-url": "URL(s):", "tip-torrent-url": "Consejo:Puedes introducir más de un archivo usando varias líneas", "autostart": "Iniciar descarga:", @@ -152,8 +153,8 @@ "limit": "Límites", "alt-speed": "Vel. alternativa", "dictionary-folders": "Diccionario de carpetas", - "more": "More", - "labels": "Labels" + "more": "Más", + "labels": "Etiquetas" }, "config-dir": "Carpeta de configuración de Transmission:", "download-dir": "Carpeta de descarga por defecto:", @@ -206,20 +207,25 @@ "minutes": "Minutos", "nochange": "Sin cambio", "saving": "Guardando...", - "show-bt-servers": "Show 'BT servers' on Trackers:", - "restore-default-settings": "Restore UI Default Settings", - "language": "Language:", - "loading": "Loading...", - "hide-subfolders": "When clicking on the data directory, hide subfolders content in the list:", - "simple-check-mode": "Checked only one torrent when you right-click on the torrent list:", - "nav-contents": "Navigation bar Display content:", + "show-bt-servers": "Mostrar 'servidores BT' en Trackers:", + "restore-default-settings": "Restaurar configuración UI", + "language": "Idioma:", + "loading": "Cargando...", + "hide-subfolders": "Al hace click en el directorio de datos, ocultará la subcarpetas de la lista:", + "simple-check-mode": "Se marca un solo torrent cuando se hace click derecho en la lista:", + "nav-contents": "Mostrar barra de navegación de contenido:", "labels-manage": { - "name": "Label Name", - "description": "Description", + "name": "Nombre de etiqueta", + "description": "Descripción", "color": "Color", - "actions": "Actions", - "import-confirm": "Do you want to import labels? This overrides the current configuration." - } + "actions": "Acciones", + "import-confirm": "¿Quieres importar las etiquetas? Esto cambiará la configuración actual." + }, + "import-config": "Importar fichero de configuración", + "export-config": "Exportar configuración actual", + "import-config-confirm": "¿Quieres importar estas configuraciones? Esto cambiará la configuración actual.", + "script-torrent-done-enabled": "Ejecutar el siguiente script al completar una descarga:", + "ipinfo": "ipinfo.io Token" }, "public": { "button-ok": "Aceptar", @@ -229,11 +235,11 @@ "button-close": "Cerrar", "button-update": "Actualizar", "button-config": "Configurar", - "button-addnew": "Add", - "button-edit": "Edit", - "button-delete": "Delete", - "button-export": "Export", - "button-import": "Import" + "button-addnew": "Añadir", + "button-edit": "Editar", + "button-delete": "Borrar", + "button-export": "Exportar", + "button-import": "Importar" }, "about": { "infos": "Autor:culturist
Declaración:Most of the icons used in this program from the network, if any violation of your rights, please contact me delete.", @@ -287,14 +293,26 @@ "newname": "Nueva" }, "torrent-attribute-add-tracker": { - "title": "Add Trackers", - "tip": "One Line, One Tracker" + "title": "Añadir Trackers", + "tip": "Una lina, Un Tracker" }, "torrent-setLabels": { - "title": "Set User Labels", - "available": "Available:", - "selected": "Selected:" + "title": "Etiquetas de Usuario", + "available": "Disponible:", + "selected": "Seleccionada:" + }, + "export-config": { + "title": "Selecciona los datos a exportar", + "option-all": "Toda la configuración", + "option-system": "Configuración de Web Control", + "option-dictionary": "Diccionario de carpetas definidas", + "option-server": "Configuración de Transmission (Directorio de descarga, cache, limites de velocidad, etc.)" + }, + "import-config": { + "title": "Selecciona los datos a importar", + "invalid-file": "Perfil no válido" } + }, "torrent": { "fields": { @@ -315,9 +333,10 @@ "uploadedEver": "Subido", "uploadRatio": "Proporción", "queuePosition": "Cola", - "activityDate": "Activity Date", + "activityDate": "Fecha de Actividad", "trackers": "Trackers", - "labels": "User Labels" + "labels": "User Labels", + "doneDate": "Completed Date" }, "status-text": { "0": "Pausado", @@ -352,10 +371,20 @@ "lastAnnounceTime": "Hora", "lastAnnounceTimedOut": "T. agotado", "downloadCount": "Descargas", - "nextAnnounceTime": "Próximo anuncio" + "nextAnnounceTime": "Próximo anuncio", + "leecherCount": "Recuento Leecher", + "seederCount": "Recuento Seeder", + "announceStateText": { + "0": "Inactivo", + "1": "Esperando", + "2": "En cola", + "3": "Activo" + } }, "peers-fields": { "address": "Dirección IP", + "port": "Puerto", + "isUTP": "UTP activado", "clientName": "Cliente", "flagStr": "Bandera", "progress": "Progreso", @@ -371,6 +400,11 @@ "1": "Alta", "-1": "Baja" }, + "filter-template-text": { + "1": "Todo", + "2": "fichero de relleno BitComet", + "3": "Archivo innecesario" + }, "label": { "name": "Nombre:", "addedDate": "Añadido:", @@ -402,9 +436,10 @@ "button-allow": "Descargar archivos(s) marcados", "button-deny": "Omitir archivo(s) marcados", "button-priority": "Establecer prioridad", - "button-tracker-add": "Add New Tracker", - "button-tracker-edit": "Edit Tracker", - "button-tracker-remove": "Remove Tracker" + "button-filter": "Buscar archivos con una expresion regular", + "button-tracker-add": "Añadir nuevo Tracker", + "button-tracker-edit": "Editar Tracker", + "button-tracker-remove": "Eliminar Tracker" }, "other": { "tracker-remove-confim": "¿Está seguro de que desea eliminar este tracker?" @@ -429,6 +464,7 @@ "text-on": "ON", "text-off": "OFF", "text-how-to-update": "How to update?", - "text-ignore-this-version": "Ignore this version" + "text-ignore-this-version": "Ignore this version", + "text-json-file-parsing-failed": "JSON file parsing failed!" } -} \ No newline at end of file +} diff --git a/src/tr-web-control/script/min/system.min.js b/src/tr-web-control/script/min/system.min.js index 61172e1..194ecdb 100644 --- a/src/tr-web-control/script/min/system.min.js +++ b/src/tr-web-control/script/min/system.min.js @@ -1 +1,205 @@ -var system={version:"1.6.0",rootPath:"tr-web-control/",codeupdate:"20190724",configHead:"transmission-web-control",config:{autoReload:!0,reloadStep:5e3,pageSize:30,pagination:!0,pageList:[10,20,30,40,50,100,150,200,250,300,5e3],defaultSelectNode:null,autoExpandAttribute:!1,defaultLang:"",foldersShow:!1,theme:"default",showBTServers:!1,ipInfoToken:"",ui:{status:{tree:{},layout:{main:{},body:{},left:{}},panel:{},size:{nav:{},attribute:{}}}},hideSubfolders:!1,simpleCheckMode:!1,nav:{servers:!0,folders:!0,statistics:!0,labels:!1},labels:[],labelMaps:{},ignoreVersion:[]},storageKeys:{dictionary:{folders:"dictionary.folders"}},dictionary:{folders:null},checkUpdateScript:"https://api.github.com/repos/ronggang/transmission-web-control/releases/latest",contextMenus:{},panel:null,lang:null,reloading:!1,autoReloadTimer:null,downloadDir:"",islocal:!1,B64:new Base64,currentTorrentId:0,control:{tree:null,torrentlist:null},userConfig:{torrentList:{fields:[],sortName:null,sortOrder:"asc"}},serverConfig:null,serverSessionStats:null,templates:{},checkedRows:[],uiIsInitialized:!1,popoverCount:0,currentListDir:"",setlang:function(t,e){t||(t=this.config.defaultLang?this.config.defaultLang:navigator.language||navigator.browserLanguage),t||(t="zh-CN"),-1!=t.indexOf("-")&&(t=t.split("-")[0].toLocaleLowerCase()+"-"+t.split("-")[1].toLocaleUpperCase()),this.languages[t]||(t="en"),t=t.replace("-","_"),$.getJSON(system.rootPath+"i18n/"+t+".json",function(s){s&&(system.lang=$.extend(!0,system.defaultLang,s)),system.resetLangText(),$.getScript(system.rootPath+"script/easyui/locale/easyui-lang-"+t+".js").done(function(t,s){e&&e()}).fail(function(t,s,n){$.getScript(system.rootPath+"script/easyui/locale/easyui-lang-en.js",function(){e&&e()})})})},init:function(t,e,s){this.readConfig(),this.lastUIStatus=JSON.parse(JSON.stringify(this.config.ui.status)),this.islocal=1==e,this.panel={main:$("#main"),top:$("#m_top"),toolbar:$("#m_toolbar"),left_layout:$("#m_left_layout"),left:$("#m_left"),body:$("#m_body"),layout_body:$("#layout_body"),layout_left:$("#layout_left"),list:$("#m_list"),attribute:$("#m_attribute"),bottom:$("#m_bottom"),title:$("#m_title"),status:$("#m_status"),statusbar:$("#m_statusbar"),status_text:$("#status_text"),droparea:$("#dropArea")},null==this.lang?this.setlang(t,function(){system.initdata()}):this.initdata(),this.initThemes(),this.clipboard=new ClipboardJS("#toolbar_copyPath")},resetLangText:function(parent){parent||(parent=$);var items=parent.find("*[system-lang]");$.each(items,function(key,item){var name=$(item).attr("system-lang");"["==name.substr(0,1)?$(item).html(eval("system.lang"+name)):$(item).html(eval("system.lang."+name))}),items=parent.find("*[system-tip-lang]"),$.each(items,function(key,item){var name=$(item).attr("system-tip-lang");"["==name.substr(0,1)?$(item).attr("title",eval("system.lang"+name)):$(item).attr("title",eval("system.lang."+name))})},initdata:function(){$(document).attr("title",this.lang.system.title+" "+this.version),$.fn.switchbutton.defaults.onText=this.lang.public["text-on"],$.fn.switchbutton.defaults.offText=this.lang.public["text-off"];var t=new Array,e=""+this.lang.title.left+"";if(t.length>1)for(var s in e+=t.join(""),this.panel.left_layout.panel("setTitle",e),this.lang.tree.toolbar.nav)switch($("#tree-toolbar-nav-"+s).linkbutton(),s){case"folders":system.config.foldersShow?$("tree-toolbar-nav-"+s).linkbutton({iconCls:"icon-enabled"}).data("status",1):$("tree-toolbar-nav-"+s).linkbutton({iconCls:"icon-disabled"}).data("status",0)}else this.panel.left_layout.panel("setTitle",e);if(e=""+this.lang.title.list+"",t.length=0,t.length>1)for(var s in e+=t.join(""),this.panel.body.panel("setTitle",e),this.lang["torrent-head"].buttons)switch($("#torrent-head-buttons-"+s).linkbutton(),s){case"autoExpandAttribute":system.config.autoExpandAttribute?$("#torrent-head-buttons-"+s).linkbutton({iconCls:"icon-enabled"}).data("status",1):$("#torrent-head-buttons-"+s).linkbutton({iconCls:"icon-disabled"}).data("status",0)}else this.panel.body.panel("setTitle",e);this.panel.status.panel("setTitle",this.lang.title.status),this.panel.attribute.panel({title:this.lang.title.attribute,onExpand:function(){0!=system.currentTorrentId&&$(this).data("isload")?system.getTorrentInfos(system.currentTorrentId):system.clearTorrentAttribute()},onLoad:function(){$(this).data("isload")||($(this).data("isload",!0),0!=system.currentTorrentId&&setTimeout(function(){system.getTorrentInfos(system.currentTorrentId)},500))}}),$.each(this.languages,function(t,e){$("