add global variable flags (#451)

* add global variable flags

* Update flags and translates
Move flags left position.
Add button in more config for ipinfo
Translate es language.

* the missing comma es added

* open link in new window
This commit is contained in:
Rodolfo Salas 2020-09-13 15:30:02 +02:00 committed by GitHub
parent 8fd468e1eb
commit ecf02f2d8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 278 additions and 34 deletions

View File

@ -136,6 +136,7 @@
"dialog": { "dialog": {
"torrent-add": { "torrent-add": {
"download-dir": "Carpeta descarga:", "download-dir": "Carpeta descarga:",
"used-download-dir": "Carpeta de descarga usada:",
"torrent-url": "URL(s):", "torrent-url": "URL(s):",
"tip-torrent-url": "ConsejoPuedes introducir más de un archivo usando varias líneas", "tip-torrent-url": "ConsejoPuedes introducir más de un archivo usando varias líneas",
"autostart": "Iniciar descarga:", "autostart": "Iniciar descarga:",
@ -152,8 +153,8 @@
"limit": "Límites", "limit": "Límites",
"alt-speed": "Vel. alternativa", "alt-speed": "Vel. alternativa",
"dictionary-folders": "Diccionario de carpetas", "dictionary-folders": "Diccionario de carpetas",
"more": "More", "more": "Más",
"labels": "Labels" "labels": "Etiquetas"
}, },
"config-dir": "Carpeta de configuración de Transmission:", "config-dir": "Carpeta de configuración de Transmission:",
"download-dir": "Carpeta de descarga por defecto:", "download-dir": "Carpeta de descarga por defecto:",
@ -206,20 +207,25 @@
"minutes": "Minutos", "minutes": "Minutos",
"nochange": "Sin cambio", "nochange": "Sin cambio",
"saving": "Guardando...", "saving": "Guardando...",
"show-bt-servers": "Show 'BT servers' on Trackers:", "show-bt-servers": "Mostrar 'servidores BT' en Trackers:",
"restore-default-settings": "Restore UI Default Settings", "restore-default-settings": "Restaurar configuración UI",
"language": "Language:", "language": "Idioma:",
"loading": "Loading...", "loading": "Cargando...",
"hide-subfolders": "When clicking on the data directory, hide subfolders content in the list:", "hide-subfolders": "Al hace click en el directorio de datos, ocultará la subcarpetas de la lista:",
"simple-check-mode": "Checked only one torrent when you right-click on the torrent list:", "simple-check-mode": "Se marca un solo torrent cuando se hace click derecho en la lista:",
"nav-contents": "Navigation bar Display content:", "nav-contents": "Mostrar barra de navegación de contenido:",
"labels-manage": { "labels-manage": {
"name": "Label Name", "name": "Nombre de etiqueta",
"description": "Description", "description": "Descripción",
"color": "Color", "color": "Color",
"actions": "Actions", "actions": "Acciones",
"import-confirm": "Do you want to import labels? This overrides the current configuration." "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": { "public": {
"button-ok": "Aceptar", "button-ok": "Aceptar",
@ -229,11 +235,11 @@
"button-close": "Cerrar", "button-close": "Cerrar",
"button-update": "Actualizar", "button-update": "Actualizar",
"button-config": "Configurar", "button-config": "Configurar",
"button-addnew": "Add", "button-addnew": "Añadir",
"button-edit": "Edit", "button-edit": "Editar",
"button-delete": "Delete", "button-delete": "Borrar",
"button-export": "Export", "button-export": "Exportar",
"button-import": "Import" "button-import": "Importar"
}, },
"about": { "about": {
"infos": "Autorculturist<br/>DeclaraciónMost of the icons used in this program from the network, if any violation of your rights, please contact me delete.", "infos": "Autorculturist<br/>DeclaraciónMost 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" "newname": "Nueva"
}, },
"torrent-attribute-add-tracker": { "torrent-attribute-add-tracker": {
"title": "Add Trackers", "title": "Añadir Trackers",
"tip": "One Line, One Tracker" "tip": "Una lina, Un Tracker"
}, },
"torrent-setLabels": { "torrent-setLabels": {
"title": "Set User Labels", "title": "Etiquetas de Usuario",
"available": "Available:", "available": "Disponible:",
"selected": "Selected:" "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": { "torrent": {
"fields": { "fields": {
@ -315,9 +333,10 @@
"uploadedEver": "Subido", "uploadedEver": "Subido",
"uploadRatio": "Proporción", "uploadRatio": "Proporción",
"queuePosition": "Cola", "queuePosition": "Cola",
"activityDate": "Activity Date", "activityDate": "Fecha de Actividad",
"trackers": "Trackers", "trackers": "Trackers",
"labels": "User Labels" "labels": "User Labels",
"doneDate": "Completed Date"
}, },
"status-text": { "status-text": {
"0": "Pausado", "0": "Pausado",
@ -352,10 +371,20 @@
"lastAnnounceTime": "Hora", "lastAnnounceTime": "Hora",
"lastAnnounceTimedOut": "T. agotado", "lastAnnounceTimedOut": "T. agotado",
"downloadCount": "Descargas", "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": { "peers-fields": {
"address": "Dirección IP", "address": "Dirección IP",
"port": "Puerto",
"isUTP": "UTP activado",
"clientName": "Cliente", "clientName": "Cliente",
"flagStr": "Bandera", "flagStr": "Bandera",
"progress": "Progreso", "progress": "Progreso",
@ -371,6 +400,11 @@
"1": "Alta", "1": "Alta",
"-1": "Baja" "-1": "Baja"
}, },
"filter-template-text": {
"1": "Todo",
"2": "fichero de relleno BitComet",
"3": "Archivo innecesario"
},
"label": { "label": {
"name": "Nombre:", "name": "Nombre:",
"addedDate": "Añadido:", "addedDate": "Añadido:",
@ -402,9 +436,10 @@
"button-allow": "Descargar archivos(s) marcados", "button-allow": "Descargar archivos(s) marcados",
"button-deny": "Omitir archivo(s) marcados", "button-deny": "Omitir archivo(s) marcados",
"button-priority": "Establecer prioridad", "button-priority": "Establecer prioridad",
"button-tracker-add": "Add New Tracker", "button-filter": "Buscar archivos con una expresion regular",
"button-tracker-edit": "Edit Tracker", "button-tracker-add": "Añadir nuevo Tracker",
"button-tracker-remove": "Remove Tracker" "button-tracker-edit": "Editar Tracker",
"button-tracker-remove": "Eliminar Tracker"
}, },
"other": { "other": {
"tracker-remove-confim": "¿Está seguro de que desea eliminar este tracker?" "tracker-remove-confim": "¿Está seguro de que desea eliminar este tracker?"
@ -429,6 +464,7 @@
"text-on": "ON", "text-on": "ON",
"text-off": "OFF", "text-off": "OFF",
"text-how-to-update": "How to update?", "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!"
} }
} }

File diff suppressed because one or more lines are too long

View File

@ -68,6 +68,7 @@ var system = {
B64: new Base64(), B64: new Base64(),
// The currently selected torrent number // The currently selected torrent number
currentTorrentId: 0, currentTorrentId: 0,
flags: [],
control: { control: {
tree: null, tree: null,
torrentlist: null torrentlist: null
@ -2878,7 +2879,7 @@ var system = {
flag = this.flags[ip]; flag = this.flags[ip];
} }
rowdata['address'] += ' <img src="' + this.rootPath + '/style/flags/' + flag + '.png" alt="' + flag + '" title="' + flag + '">'; rowdata['address'] = '<img src="' + this.rootPath + '/style/flags/' + flag + '.png" alt="' + flag + '" title="' + flag + '"> ' + ip;
} }
// 使用同类已有的翻译文本 // 使用同类已有的翻译文本

View File

@ -406,6 +406,9 @@
<tr> <tr>
<td colspan="2"> <td colspan="2">
<label system-lang="dialog['system-config']['ipinfo']"></label> <label system-lang="dialog['system-config']['ipinfo']"></label>
<a id="system-config-test-port" href="http://ipinfo.io" target="_blank"
class="easyui-linkbutton"
data-options="plain:true,iconCls:'icon-about'"></a>
</td> </td>
</tr> </tr>
<tr> <tr>