From 25715bb5908527133ab8f9e7b7f4cff5ab4542b0 Mon Sep 17 00:00:00 2001 From: mgrojo Date: Thu, 28 Mar 2019 00:17:35 +0100 Subject: [PATCH] Add min & max in selection to the status bar and always show rows & columns Now number of rows and columns is always showed, independent of the number of cells threshold. Plural forms are used in translations (Spanish and British English updated for testing). Min and Max have also been added to the status bar message. --- src/MainWindow.cpp | 30 +- src/translations/sqlb_en_GB.ts | 572 +++++++++++++++++---------------- src/translations/sqlb_es_ES.ts | 570 ++++++++++++++++---------------- 3 files changed, 622 insertions(+), 550 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index d01d1800..d3b23f56 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -62,6 +62,8 @@ #include #endif +#include + const int MainWindow::MaxRecentFiles; // These are needed for reading and writing object files @@ -723,18 +725,28 @@ void MainWindow::populateTable() updateInsertDeleteRecordButton(); const QModelIndexList& sel = ui->dataTable->selectionModel()->selectedIndexes(); - if (sel.count() > 1 && sel.count() < Settings::getValue("databrowser", "complete_threshold").toInt()) { + QString statusMessage; + if (sel.count() > 1) { int rows = sel.last().row() - sel.first().row() + 1; + statusMessage = tr("%n row(s)", "", rows); int columns = sel.last().column() - sel.first().column() + 1; - double sum = 0; - for (const QModelIndex& index : sel) { - QVariant data = m_browseTableModel->data(index, Qt::EditRole); - sum += data.toDouble(); + statusMessage += tr(", %n column(s)", "", columns); + + if (sel.count() < Settings::getValue("databrowser", "complete_threshold").toInt()) { + double sum = 0; + double first = m_browseTableModel->data(sel.first(), Qt::EditRole).toDouble(); + double min = first; + double max = first; + for (const QModelIndex& index : sel) { + double data = m_browseTableModel->data(index, Qt::EditRole).toDouble(); + sum += data; + min = std::min(min, data); + max = std::max(max, data); + } + statusMessage += tr(". Sum: %1; Average: %2; Min: %3; Max: %4").arg(sum).arg(sum/sel.count()).arg(min).arg(max); } - ui->statusbar->showMessage(QString("%1 rows, %2 columns. Sum: %3. Average: %4").arg(rows).arg(columns).arg(sum). - arg(sum/sel.count())); - } else - ui->statusbar->showMessage(QString()); + }; + ui->statusbar->showMessage(statusMessage); }); } // Search stored table settings for this table diff --git a/src/translations/sqlb_en_GB.ts b/src/translations/sqlb_en_GB.ts index 48405969..f29fefe3 100644 --- a/src/translations/sqlb_en_GB.ts +++ b/src/translations/sqlb_en_GB.ts @@ -97,44 +97,44 @@ - + Auto-increment - + Unique constraint - + Check constraint: %1 - + Foreign key: %1 - + Default value: %1 - + Error adding record. Message from database engine: %1 - + Are you sure you want to restore all the entered values to their defaults? @@ -476,200 +476,200 @@ If any of the other settings were altered for this database file you need to pro DBBrowserDB - + Please specify the database name under which you want to access the attached database - + Invalid file format - + Do you really want to close this temporary database? All data will be lost. - + Do you want to save the changes made to the database file %1? - + Database didn't close correctly, probably still busy - + The database is currently busy: - + Do you want to abort that other operation? - + Exporting database to SQL file... - - + + Cancel - - + + No database file opened - + Executing SQL... - + Action cancelled. - - + + Error in statement #%1: %2. Aborting execution%3. - - + + and rolling back - + didn't receive any output from %1 - + could not execute command: %1 - + Cannot delete this object - + Cannot set data on this object - - + + A table with the name '%1' already exists in schema '%2'. - + No table with name '%1' exists in schema '%2'. - - + + Cannot find column %1. - + Creating savepoint failed. DB says: %1 - + Renaming the column failed. DB says: %1 - - + + Releasing savepoint failed. DB says: %1 - + Creating new table failed. DB says: %1 - + Copying data to new table failed. DB says: %1 - + Deleting old table failed. DB says: %1 - + Restoring some of the objects associated with this table failed. This is most likely because some column names changed. Here's the SQL statement which you might want to fix and execute manually: - + Error renaming table '%1' to '%2'.Message from database engine: %3 - + ... <string can not be logged, contains binary data> ... - + could not get list of databases: %1 - + Error loading extension: %1 - + could not get column information - + could not get list of db objects: %1, %2 - + This database has already been attached. Its schema name is '%1'. - + Error setting pragma %1 to %2: %3 - + File not found. @@ -1346,7 +1346,7 @@ All data currently stored in this field will be lost. - + Please add a field which meets the following criteria before setting the without rowid flag: - Primary key flag set - Auto increment disabled @@ -2314,7 +2314,7 @@ x~y Range: values between x and y - + Delete Record @@ -2486,7 +2486,7 @@ x~y Range: values between x and y - + Set encoding @@ -2908,7 +2908,7 @@ You can drag SQL statements from the Schema column and drop them into the SQL ed - + Delete Table @@ -3433,7 +3433,7 @@ You can drag SQL statements from the Schema column and drop them into the SQL ed - + Ctrl+E @@ -3501,7 +3501,7 @@ You can drag SQL statements from the Schema column and drop them into the SQL ed - + Ctrl+L @@ -3513,517 +3513,538 @@ You can drag SQL statements from the Schema column and drop them into the SQL ed - + Ctrl+D - + Ctrl+I - + Encrypted - + Read only - + Database file is read only. Editing the database is disabled. - + Database encoding - + Database is encrypted using SQLCipher - - + + Choose a database file - - - + + + Choose a filename to save under - + Error deleting record: %1 - + Please select a record first - + %1 - %2 of %3 - - + + There is no database opened. Please open or create a new database file. - + Error checking foreign keys after table modification. The changes will be reverted. - + This table did not pass a foreign-key check.<br/>You should run 'Tools | Foreign-Key Check' and fix the reported issues. - - + + At line %1: - - + + Result: %2 - + Setting PRAGMA values or vacuuming will commit your current transaction. Are you sure? - + Text files(*.csv *.txt);;All files(*) - + Error while saving the database file. This means that not all changes to the database were saved. You need to resolve the following error first. %1 - + Are you sure you want to undo all changes made to the database file '%1' since the last save? - + Choose a file to import - - - + + + Text files(*.sql *.txt);;All files(*) - + Do you want to create a new database file to hold the imported data? If you answer no we will attempt to import the data in the SQL file to the current database. - + File %1 already exists. Please choose a different name. - + Error importing data: %1 - + Import completed. - + Delete View - + Modify View - + Delete Trigger - + Modify Trigger - + Delete Index - + Modify Index - + Modify Table - + &%1 %2 - + Do you want to save the changes made to SQL tabs in a new project file? - + Do you want to save the changes made to SQL tabs in the project file %1? - + Do you want to save the changes made to the SQL file %1? - + The statements in this tab are still executing. Closing the tab will stop the execution. This might leave the database in an inconsistent state. Are you sure you want to close the tab? - + Extensions(*.so *.dylib *.dll);;All files(*) - + Could not open find resource file: %1 - + Choose a project file to open - + This project file is using an old file format because it was created using DB Browser for SQLite version 3.10 or lower. Loading this file format is still fully supported but we advice you to convert all your project files to the new file format because support for older formats might be dropped at some point in the future. You can convert your files by simply opening and re-saving them. - + Could not open project file for writing. Reason: %1 - + Duplicate records - + Duplicate record - + Ctrl+" - + Please enter a pseudo-primary key in order to enable editing on this view. This should be the name of a unique column in the view. - + Busy (%1) - + Setting PRAGMA values will commit your current transaction. Are you sure? - + Reset Window Layout - + Alt+0 - + The database is currenctly busy. - + Click here to interrupt the currently running query. - + Could not open database file. Reason: %1 - + In-Memory database + + + %n row(s) + + %n row + %n rows + + + + + , %n column(s) + + , %n column + , %n columns + + - + + . Sum: %1; Average: %2; Min: %3; Max: %4 + + + + You are still executing SQL statements. When closing the database now the execution will be stopped. maybe leaving the database in an incosistent state. Are you sure you want to close the database? - + determining row count... - + %1 - %2 of >= %3 - + Are you sure you want to delete the table '%1'? All data associated with the table will be lost. - + Are you sure you want to delete the view '%1'? - + Are you sure you want to delete the trigger '%1'? - + Are you sure you want to delete the index '%1'? - + Error: could not delete the table. - + Error: could not delete the view. - + Error: could not delete the trigger. - + Error: could not delete the index. - + Message from database engine: %1 - + Editing the table requires to save all pending changes now. Are you sure you want to save the database? - + You are already executing SQL statements. Do you want to stop them in order to execute the current statements instead? Note that this might leave the database in an inconsistent state. - + -- EXECUTING SELECTION IN '%1' -- - + -- EXECUTING LINE IN '%1' -- - + -- EXECUTING ALL IN '%1' -- - + %1 rows returned in %2ms - + Choose text files - + Import completed. Some foreign key constraints are violated. Please fix them before saving. - + Select SQL file to open - + Couldn't read file: %1. - + Couldn't save file: %1. - + Select file name - + Select extension file - + Extension successfully loaded. - + Error loading extension: %1 - - + + Don't show again - + New version available. - + A new DB Browser for SQLite version is available (%1.%2.%3).<br/><br/>Please download at <a href='%4'>%4</a>. - + Collation needed! Proceed? - + A table in this database requires a special collation function '%1' that this application can't provide without further knowledge. If you choose to proceed, be aware bad things can happen to your database. Create a backup! - + creating collation - + Set a new name for the SQL tab. Use the '&&' character to allow using the following character as a keyboard shortcut. - + Please specify the view name - + There is already an object with that name. Please choose a different name. - + View successfully created. - + Error creating view: %1 - + There is no filter set for this table. View will not be created. - + Delete Records - + This action will open a new SQL tab for running: - + Press Help for opening the corresponding SQLite reference page. @@ -4032,39 +4053,39 @@ Create a backup! Choose an axis colour - - + + DB Browser for SQLite project file (*.sqbpro) - + Please choose a new encoding for this table. - + Please choose a new encoding for all tables. - + Execution finished with errors. - + Execution finished without errors. - + %1 Leave the field empty for using the database encoding. - + This encoding is either not valid or not supported. @@ -4370,8 +4391,8 @@ Warning: not all data has been fetched from the table yet due to the partial fet - - + + ... @@ -4395,10 +4416,10 @@ Warning: not all data has been fetched from the table yet due to the partial fet - - - - + + + + enabled @@ -4478,147 +4499,152 @@ Warning: not all data has been fetched from the table yet due to the partial fet - + NULL - + Regular - + Binary - + Background - + Filters - + + Threshold for completion and calculation on selection + + + + Escape character - + Delay time (&ms) - + Set the waiting time before a new filter value is applied. Can be set to 0 for disabling waiting. - + &SQL - + Settings name - + Context - + Colour - + Bold - + Italic - + Underline - + Keyword - + Function - + Table - + Comment - + Identifier - + String - + Current line - + SQL &editor font size - + Tab size - + SQL editor &font - + Error indicators - + Hori&zontal tiling - + If enabled the SQL code editor and the result table view are shown side by side instead of one over the other. - + Code co&mpletion @@ -4739,242 +4765,244 @@ Warning: not all data has been fetched from the table yet due to the partial fet - + This is the maximum number of items allowed for some computationally expensive functionalities to be enabled: +Maximum number of rows in a table for enabling the value completion based on current values in the column. +Maximum number of indexes in a selection for calculating sum and average. +Can be set to 0 for disabling the functionalities. + + + + This is the maximum number of rows in a table for enabling the value completion based on current values in the column. Can be set to 0 for disabling completion. - - Row count threshold for completion - - - - + Field display - + Displayed &text - - - - - - + + + + + + Click to set this color - + Text color Text colour - + Background color Background colour - + Preview only (N/A) - + Foreground - + SQL &results font size - + &Wrap lines - + Never - + At word boundaries - + At character boundaries - + At whitespace boundaries - + &Quotes for identifiers - + Choose the quoting mechanism used by the application for identifiers in SQL code. - + "Double quotes" - Standard SQL (recommended) - + `Grave accents` - Traditional MySQL quotes - + [Square brackets] - Traditional MS SQL Server quotes - + Keywords in &UPPER CASE - + When set, the SQL keywords are completed in UPPER CASE letters. - + When set, the SQL code lines that caused errors during the last execution are highlighted and the results frame indicates the error in the background - + &Extensions - + Select extensions to load for every database: - + Add extension - + Remove extension - + <html><head/><body><p>While supporting the REGEXP operator SQLite doesn't implement any regular expression<br/>algorithm but calls back the running application. DB Browser for SQLite implements this<br/>algorithm for you to let you use REGEXP out of the box. However, as there are multiple possible<br/>implementations of this and you might want to use another one, you're free to disable the<br/>application's implementation and load your own by using an extension. Requires restart of the application.</p></body></html> - + Disable Regular Expression extension - + <html><head/><body><p>SQLite provides an SQL function for loading extensions from a shared library file. Activate this if you want to use the <span style=" font-style:italic;">load_extension()</span> function from SQL code.</p><p>For security reasons, extension loading is turned off by default and must be enabled through this setting. You can always load extensions through the GUI, even though this option is disabled.</p></body></html> - + Allow loading extensions from SQL code - + Remote - + CA certificates - - + + Subject CN - + Common Name - + Subject O - + Organization - - + + Valid from - - + + Valid to - - + + Serial number - + Your certificates - + File - + Subject Common Name - + Issuer CN - + Issuer Common Name - + Clone databases into @@ -5726,34 +5754,34 @@ Use of this function must be authorized from Preferences. - + loading... - + References %1(%2) Hold %3Shift and click to jump there - + Error changing data: %1 - + retrieving list of columns - + Fetching data... - + Cancel diff --git a/src/translations/sqlb_es_ES.ts b/src/translations/sqlb_es_ES.ts index dee03d54..6d888962 100644 --- a/src/translations/sqlb_es_ES.ts +++ b/src/translations/sqlb_es_ES.ts @@ -108,42 +108,42 @@ <html><head/><body><p><span style=" font-weight:600;">Guardar</span> enviará a la base de datos la sentencia SQL mostrada para insertar el nuevo registro.</p><p><span style=" font-weight:600;">Restituir valores por Defecto</span> restituirá los valores iniciales en la columna <span style=" font-weight:600;">Valor</span></p><p><span style=" font-weight:600;">Cancelar</span> cierra este diálogo sin ejecutar la consulta.</p></body></html> - + Auto-increment Auto-incremento - + Unique constraint Restricción UNIQUE - + Check constraint: %1 Restricción CHECK: %1 - + Foreign key: %1 Clave foránea: %1 - + Default value: %1 Valor por defecto: %1 - + Error adding record. Message from database engine: %1 @@ -152,7 +152,7 @@ %1 - + Are you sure you want to restore all the entered values to their defaults? ¿Está seguro de que quiere restaurar todos los valores introducidos a sus valores por defecto? @@ -527,38 +527,38 @@ Si se modificaron cualquiera de los otros ajustes para este archivo de base de d Sin errores - + Please specify the database name under which you want to access the attached database Por favor, especifique el nombre con el que acceder a la base de datos anexada - + Invalid file format Formato de archivo inválido - + Do you want to save the changes made to the database file %1? ¿Guardar los cambios hechos al archivo de base de datos «%1»? - + Exporting database to SQL file... Exportando base de datos a un archivo SQL... - - + + Cancel Cancelar - + Executing SQL... Ejecutando SQL... - + Action cancelled. Acción cancelada. @@ -573,117 +573,117 @@ Abortando ejecución. renameColumn: no se puede encontrar la tabla %1. - + This database has already been attached. Its schema name is '%1'. Esta base de datos ya ha sido anexada. Su nombre de esquema es «%1». - + Do you really want to close this temporary database? All data will be lost. ¿Está seguro de que quiere cerrar esta base de datos temporal? Todos los datos se perderán. - + Database didn't close correctly, probably still busy - + The database is currently busy: La base de datos está actualmente ocupada: - + Do you want to abort that other operation? ¿Desea abortar la otra operación? - - + + No database file opened No hay una base de datos abierta - - + + Error in statement #%1: %2. Aborting execution%3. Error en la sentencia #%1: %2. Abortando ejecución%3. - - + + and rolling back y deshaciendo cambios - + didn't receive any output from %1 no se recibió ninguna salida de «%1» - + could not execute command: %1 no se pudo ejecutar el comando: «%1» - + Cannot delete this object No se puede borrar este objeto - + Cannot set data on this object No se pueden poner datos en este objeto - - + + A table with the name '%1' already exists in schema '%2'. Una tabla con el nombre «%1» ya existe en el esquema «%2». - + No table with name '%1' exists in schema '%2'. - - + + Cannot find column %1. - + Creating savepoint failed. DB says: %1 - + Renaming the column failed. DB says: %1 - - + + Releasing savepoint failed. DB says: %1 - + Creating new table failed. DB says: %1 - + Copying data to new table failed. DB says: %1 - + Deleting old table failed. DB says: %1 @@ -710,7 +710,7 @@ Abortando ejecución%3. renameColumn: borrado de tabla fallido. La base de datos dice: %1 - + Restoring some of the objects associated with this table failed. This is most likely because some column names changed. Here's the SQL statement which you might want to fix and execute manually: @@ -723,29 +723,29 @@ Abortando ejecución%3. renameColumn: liberación del savepoint fallido. La base de datos dice: %1 - + Error renaming table '%1' to '%2'.Message from database engine: %3 Error renombrando la tabla «%1» a «%2». Mensaje de la base de datos: «%3» - + ... <string can not be logged, contains binary data> ... ... <la cadena no se puede registrar; contiene datos binarios> ... - + could not get list of databases: %1 no se pudo obtener lista de bases de datos: %1 - + Error loading extension: %1 Error cargando la extensión: %1 - + could not get column information No se pudo obtener información de la columna @@ -754,7 +754,7 @@ Abortando ejecución%3. tipo de objeto desconocido %1 - + could not get list of db objects: %1, %2 No se pudo obtener la lista de objetos de la base de datos: %1, %2 @@ -771,12 +771,12 @@ Abortando ejecución%3. No se pudo ejecutar el comando pragma: %1, %2 - + Error setting pragma %1 to %2: %3 Error definiendo pragma %1 como %2: %3 - + File not found. Archivo no encontrado. @@ -1627,7 +1627,7 @@ All data currently stored in this field will be lost. Todos los datos actualmente almacenados en este campo se perderán. - + Please add a field which meets the following criteria before setting the without rowid flag: - Primary key flag set - Auto increment disabled @@ -3279,7 +3279,7 @@ Usted puede arrastrar sentencias SQL desde una fila de objeto y soltarlas en otr - + Delete Record Borrar registro @@ -3730,7 +3730,7 @@ Puede arrastrar sentencias SQL desde la columna Esquema y soltarlas en el editor - + Set encoding Definir codificación @@ -3750,7 +3750,7 @@ Puede arrastrar sentencias SQL desde la columna Esquema y soltarlas en el editor Cambia la codificación por defecto para todas las tablas en la base de datos - + Duplicate record Duplicar registro @@ -4095,7 +4095,7 @@ Puede arrastrar sentencias SQL desde la columna Esquema y soltarlas en el editor - + Delete Table Borrar tabla @@ -4301,7 +4301,7 @@ Puede arrastrar sentencias SQL desde la columna Esquema y soltarlas en el editor Cargar extensión - + Ctrl+E Ctrl+E @@ -4382,7 +4382,7 @@ Puede arrastrar sentencias SQL desde la columna Esquema y soltarlas en el editor Ctrl+Return - + Ctrl+L Ctrl+L @@ -4394,43 +4394,43 @@ Puede arrastrar sentencias SQL desde la columna Esquema y soltarlas en el editor Ctrl+P - + Ctrl+D Ctrl+D - + Ctrl+I Ctrl+I - + Encrypted Cifrado - + Read only Solo lectura - + Database file is read only. Editing the database is disabled. El archivo de la base de datos es de solo lectura. La edición de la base de datos está desactivada. - + Database encoding Codificación de la base de datos - + Database is encrypted using SQLCipher La base de datos está cifrada usando SQLCipher - - + + Choose a database file Seleccione un archivo de base de datos @@ -4443,9 +4443,9 @@ Puede arrastrar sentencias SQL desde la columna Esquema y soltarlas en el editor Formato de archivo inválido. - - - + + + Choose a filename to save under Seleccione un nombre de archivo en el que guardar @@ -4456,25 +4456,25 @@ Puede arrastrar sentencias SQL desde la columna Esquema y soltarlas en el editor - + Error deleting record: %1 Error borrando registro: %1 - + Please select a record first Por favor, antes seleccione un registro - + %1 - %2 of %3 %1 - %2 de %3 - - + + There is no database opened. Please open or create a new database file. No hay una base de datos abierta. Por favor, abra o cree un nuevo archivo de base de datos. @@ -4525,7 +4525,7 @@ Se perderán todos los datos asociados con «%2». Seleccione un archivo de texto - + Text files(*.csv *.txt);;All files(*) Archivos de texto(*.csv *.txt);;Todos los archivos(*) @@ -4534,7 +4534,7 @@ Se perderán todos los datos asociados con «%2». Importación completada - + Error while saving the database file. This means that not all changes to the database were saved. You need to resolve the following error first. %1 @@ -4542,152 +4542,152 @@ Se perderán todos los datos asociados con «%2». %1 - + Are you sure you want to undo all changes made to the database file '%1' since the last save? ¿Está seguro de que quiere deshacer todos los cambios hechos al archivo de la base de datos «%1» desde la última vez que se guardó? - + Choose a file to import Seleccione el archivo a importar - - - + + + Text files(*.sql *.txt);;All files(*) Archivos de texto(*.sql *.txt);;Todos los archivos(*) - + Do you want to create a new database file to hold the imported data? If you answer no we will attempt to import the data in the SQL file to the current database. ¿Quiere crear un nuevo archivo de base de datos donde poner los datos importados? Si responde no se intentarán importar los datos del archivo SQL en la base de datos actual. - + File %1 already exists. Please choose a different name. El archivo %1 ya existe. Por favor elija un nombre diferente. - + Error importing data: %1 Error importando datos: %1 - + Import completed. Importación completada. - + Delete View Borrar vista - + Modify View Modificar vista - + Delete Trigger Borrar disparador - + Modify Trigger Modificar disparador - + Delete Index Borrar índice - + Modify Index Modificar índice - + Modify Table Modificar tabla - + &%1 %2 &%1 %2 - + Do you want to save the changes made to SQL tabs in a new project file? - + Do you want to save the changes made to SQL tabs in the project file %1? - + Do you want to save the changes made to the SQL file %1? - + The statements in this tab are still executing. Closing the tab will stop the execution. This might leave the database in an inconsistent state. Are you sure you want to close the tab? - + Extensions(*.so *.dylib *.dll);;All files(*) Extensiones (*.so *.dylib *.dll);;Todos los archivos (*) - + Could not open find resource file: %1 - + Choose a project file to open Seleccione un archivo de proyecto para abrir - + This project file is using an old file format because it was created using DB Browser for SQLite version 3.10 or lower. Loading this file format is still fully supported but we advice you to convert all your project files to the new file format because support for older formats might be dropped at some point in the future. You can convert your files by simply opening and re-saving them. Este archivo de proyecto está usando un formato antiguo porque fue creado usando una versión 3.10 o inferior de «DB Browser for SQLite». La carga de este archivo aún está completamente soportada pero le recomendamos convertir todos sus archivos de proyecto al nuevo formato porque el soporte de formatos antiguos podría ser descartado en algún momento futuro. Usted puede convertir sus archivos simplemente abriéndolos y guardándolos de nuevo. - + Could not open project file for writing. Reason: %1 - + Duplicate records Duplicar registros - + Ctrl+" Ctrl+" - + Please enter a pseudo-primary key in order to enable editing on this view. This should be the name of a unique column in the view. Introduzca una clave pseudo-primaria para activar la edición en esta vista. Esta debería ser el nombre de una columna única en la vista. - + Collation needed! Proceed? ¡Es necesaria una función de comparación! ¿Proceder? - + A table in this database requires a special collation function '%1' that this application can't provide without further knowledge. If you choose to proceed, be aware bad things can happen to your database. Create a backup! @@ -4697,136 +4697,157 @@ Si decide continuar, está avisado de que la base de datos se puede dañar. - + Setting PRAGMA values will commit your current transaction. Are you sure? Al definir los valores de PRAGMA se consolidará la transacción actual. ¿Está seguro? - + Reset Window Layout - + Alt+0 - + The database is currenctly busy. - + Click here to interrupt the currently running query. - + Could not open database file. Reason: %1 No se pudo abrir el archivo de base de datos. Razón: %1 - + In-Memory database Base de datos en memoria + + + %n row(s) + + %n fila + %n filas + + + + + , %n column(s) + + , %n columna + , %n columnas + + - + + . Sum: %1; Average: %2; Min: %3; Max: %4 + . Suma: %1; Media: %2; Mín: %3; Máx: %4 + + + You are still executing SQL statements. When closing the database now the execution will be stopped. maybe leaving the database in an incosistent state. Are you sure you want to close the database? - + determining row count... determinando nº de filas... - + %1 - %2 of >= %3 %1 - %2 de >= %3 - + Are you sure you want to delete the table '%1'? All data associated with the table will be lost. ¿Está seguro de que quiere borrar la tabla «%1»? Se perderán todos los datos asociados con la tabla. - + Are you sure you want to delete the view '%1'? ¿Está seguro de que quiere borrar la vista «%1»? - + Are you sure you want to delete the trigger '%1'? ¿Está seguro de que quiere borrar el disparador «%1»? - + Are you sure you want to delete the index '%1'? ¿Está seguro de que quiere borrar el índice «%1»? - + Error: could not delete the table. Error: no se pudo borrar la tabla. - + Error: could not delete the view. Error: no se pudo borrar la vista. - + Error: could not delete the trigger. Error: no se pudo borrar el disparador. - + Error: could not delete the index. Error: no se pudo borrar el índice. - + Message from database engine: %1 Mensaje de la base de datos: %1 - + Editing the table requires to save all pending changes now. Are you sure you want to save the database? Para editar la tabla es necesario guardar antes todos los cambios pendientes. ¿Está seguro de que quiere guardar la base de datos? - + You are already executing SQL statements. Do you want to stop them in order to execute the current statements instead? Note that this might leave the database in an inconsistent state. - + -- EXECUTING SELECTION IN '%1' -- -- EJECUTANDO SELECCIÓN DE «%1» -- - + -- EXECUTING LINE IN '%1' -- -- EJECUTANDO LÍNEA DE «%1» -- - + -- EXECUTING ALL IN '%1' -- -- EJECUTANDO TODO «%1» @@ -4842,14 +4863,14 @@ Are you sure you want to save the database? ?} - + Setting PRAGMA values or vacuuming will commit your current transaction. Are you sure? Establecer valores PRAGMA o realizar una limpieza consolidará la transacción actual. ¿Está seguro? - + Busy (%1) @@ -4862,7 +4883,7 @@ Are you sure? ejecutando consulta - + %1 rows returned in %2ms %1 filas devueltas en %2ms @@ -4879,37 +4900,37 @@ Are you sure? -- Resultado: %3 - + Choose text files Elija archivos de texto - + Import completed. Some foreign key constraints are violated. Please fix them before saving. Importación completada. Algunas restricciones de las claves foráneas se han infringido. Por favor arréglelas antes de guardar. - + Select SQL file to open Seleccione el archivo SQL a abrir - + Couldn't read file: %1. No se pudo leer el archivo: %1. - + Couldn't save file: %1. No se pudo guardar el archivo: %1. - + Select file name Seleccione el nombre del archivo - + Select extension file Seleccione el archivo de extensión @@ -4918,78 +4939,78 @@ Are you sure? Extensiones(*.so *.dll);;Todos los archivos(*) - + Extension successfully loaded. Extensiones cargadas con éxito. - + Error loading extension: %1 Error cargando la extensión: %1 - - + + Don't show again No volver a mostrar - + New version available. Hay una nueva versión disponible. - + A new DB Browser for SQLite version is available (%1.%2.%3).<br/><br/>Please download at <a href='%4'>%4</a>. Hay disponible una nueva versión de «DB Browser for SQLite» (%1.%2.%3).<br/><br/>Por favor, descárguela de <a href='%4'>%4</a>. - + creating collation creando comparación - + Set a new name for the SQL tab. Use the '&&' character to allow using the following character as a keyboard shortcut. Establezca el nuevo nombre para la pestaña SQL. Use el carácter «&&» para permitir usar el carácter siguiente como un atajo de teclado. - + Please specify the view name Por favor, especifique el nombre de la vista - + There is already an object with that name. Please choose a different name. Ya hay un objeto con ese nombre. Por favor, elija un nombre diferente. - + View successfully created. Vista creada con éxito. - + Error creating view: %1 Error creando la vista: %1 - + There is no filter set for this table. View will not be created. No existe un filtro para esta tabla. La vista no será creada. - + Delete Records Borrar registros - + This action will open a new SQL tab for running: Esta acción abrirá una nueva pestaña SQL para ejecutar: - + Press Help for opening the corresponding SQLite reference page. Pulse Ayuda para abrir la página correspondiente de la referencia de SQLite. @@ -5018,62 +5039,62 @@ Are you sure? Seleccione un archivo para abrir - - + + DB Browser for SQLite project file (*.sqbpro) Archivo de proyecto de «DB Browser for SQLite» (*.sqbpro) - + Please choose a new encoding for this table. Por favor, elija una nueva codificación para esta tabla. - + Please choose a new encoding for all tables. Por favor, elija una nueva codificación para todas las tablas. - + Error checking foreign keys after table modification. The changes will be reverted. Error comprobando las claves foráneas tras la modificación de la tabla. Los cambios se desharán. - + This table did not pass a foreign-key check.<br/>You should run 'Tools | Foreign-Key Check' and fix the reported issues. Esta tabla no ha pasado la comprobación de claves foráneas.<br/>Debería ejecutar 'Herramientas | Comprobar Claves foráneas' y arreglar los problemas mostrados. - - + + At line %1: - - + + Result: %2 - + Execution finished with errors. - + Execution finished without errors. - + %1 Leave the field empty for using the database encoding. %1 Deje este campo vacío para usar la codificación de la base de datos. - + This encoding is either not valid or not supported. Esta codificación no es válida o no está soportada. @@ -5411,8 +5432,8 @@ Aviso: aún no se han cargado todos los datos desde la tabla debido al mecanismo - - + + ... ... @@ -5436,10 +5457,10 @@ Aviso: aún no se han cargado todos los datos desde la tabla debido al mecanismo - - - - + + + + enabled activado @@ -5555,12 +5576,12 @@ Aviso: aún no se han cargado todos los datos desde la tabla debido al mecanismo Color de los campos - + NULL NULL - + Regular Normal @@ -5569,17 +5590,17 @@ Aviso: aún no se han cargado todos los datos desde la tabla debido al mecanismo Texto - + Binary Binario - + Background Fondo - + Filters Filtros @@ -5700,104 +5721,110 @@ Aviso: aún no se han cargado todos los datos desde la tabla debido al mecanismo - + This is the maximum number of items allowed for some computationally expensive functionalities to be enabled: +Maximum number of rows in a table for enabling the value completion based on current values in the column. +Maximum number of indexes in a selection for calculating sum and average. +Can be set to 0 for disabling the functionalities. + + + + This is the maximum number of rows in a table for enabling the value completion based on current values in the column. Can be set to 0 for disabling completion. Este el el número máximo de filas en una tabla para activar el autocompletado basado en los valores actuales en la columna. Se puede poner a 0 para desactivar el autocompletado. - Row count threshold for completion - Umbral del conteo de filas para autocompletar + Umbral del conteo de filas para autocompletar - + Field display Estilo de las celdas - + Displayed &text &Texto presentado - - - - - - + + + + + + Click to set this color - + Text color Color del texto - + Background color Color del fondo - + Preview only (N/A) Solo vista previa (N/A) - + Escape character Carácter de escape - + Delay time (&ms) Tiempo de retardo (&ms) - + Set the waiting time before a new filter value is applied. Can be set to 0 for disabling waiting. Define el tiempo de espera antes de que se aplique un nuevo valor de filtro. Se puede poner a 0 para desactivar la espera. - + &SQL &SQL - + Settings name Nombre de los ajustes - + Context Contexto - + Colour Color - + Bold Negrita - + Italic Cursiva - + Underline Subrayado - + Keyword Palabra clave @@ -5806,27 +5833,27 @@ Se puede poner a 0 para desactivar el autocompletado. función - + Function Función - + Table Tabla - + Comment Comentario - + Identifier Identificador - + String Cadena @@ -5835,12 +5862,12 @@ Se puede poner a 0 para desactivar el autocompletado. currentline - + Current line Línea actual - + SQL &editor font size Tamaño de letra del &editor SQL @@ -5849,161 +5876,161 @@ Se puede poner a 0 para desactivar el autocompletado. Tamaño de letra del &historial SQL - + Tab size Tamaño del tabulador - + &Wrap lines Ajuste de líneas - + Never Nunca - + At word boundaries En los límites de palabra - + At character boundaries En los límites de caracteres - + At whitespace boundaries En los límites de espacios en blanco - + &Quotes for identifiers &Comillas para identificadores - + Choose the quoting mechanism used by the application for identifiers in SQL code. Elija el mecanismo de entrecomillado usado por la aplicación para los identificadores en el código SQL. - + "Double quotes" - Standard SQL (recommended) "Dobles comillas" - SQL estándar (recomendado) - + `Grave accents` - Traditional MySQL quotes `Acentos graves` - Entrecomillado tradicional de MySQL - + [Square brackets] - Traditional MS SQL Server quotes [Corchetes] - Entrecomillado tradicional de MS SQL Server - + Keywords in &UPPER CASE Palabras claves en &MAYÚSCULAS - + When set, the SQL keywords are completed in UPPER CASE letters. Si se activa, las palabras claves de SQL se completan en letras MAYÚSCULAS. - + When set, the SQL code lines that caused errors during the last execution are highlighted and the results frame indicates the error in the background Si se activa, las líneas de código SQL que causaron errores durante la última ejecución se destacan y el marco de resultados indica el error mediante el color del fondo - + <html><head/><body><p>SQLite provides an SQL function for loading extensions from a shared library file. Activate this if you want to use the <span style=" font-style:italic;">load_extension()</span> function from SQL code.</p><p>For security reasons, extension loading is turned off by default and must be enabled through this setting. You can always load extensions through the GUI, even though this option is disabled.</p></body></html> <html><head/><body><p>SQLite proporciona una función SQL para cargar extensiones desde un archivo de biblioteca compartida. Active esta opción si desea usar la función <span style=" font-style:italic;">load_extension()</span> desde código SQL.</p><p>Por razónes de seguridad, la carga de extensiones está desactivada por defecto y debe ser habilitada usando esta configuración. Siempre puede cargar extensiones a través de la interfaz de usuario, incluso aunque esta opción esté deshabilitada.</p></body></html> - + Allow loading extensions from SQL code Permitir cargar extensiones desde código SQL - + Remote Remoto - + CA certificates Certificados CA - - + + Subject CN Sujeto CN - + Common Name Nombre Común - + Subject O Sujeto O - + Organization Organización - - + + Valid from Válido desde - - + + Valid to Válido hasta - - + + Serial number Número de serie - + Your certificates Sus certificados - + File Archivo - + Subject Common Name Nombre Común del Sujeto - + Issuer CN Emisor CN - + Issuer Common Name Nombre Común del Emisor - + Clone databases into Clonar las bases de datos en @@ -6012,12 +6039,12 @@ Se puede poner a 0 para desactivar el autocompletado. Tamaño del tabulador: - + SQL editor &font &Tipo de letra del editor SQL - + Error indicators Indicadores de error @@ -6026,52 +6053,57 @@ Se puede poner a 0 para desactivar el autocompletado. Activando los indicadores de error se resaltan las líneas del código SQL que han causado errores durante la última ejecución - + Hori&zontal tiling Mosaico hori&zontal - + If enabled the SQL code editor and the result table view are shown side by side instead of one over the other. Si se activa, el editor de código SQL y la vista de la tabla de resultados se muestran de lado a lado en lugar de una sobre la otra. - + Code co&mpletion Co&mpletar código - + + Threshold for completion and calculation on selection + + + + Foreground Texto - + SQL &results font size Tamaño de letra de resultados - + &Extensions E&xtensiones - + Select extensions to load for every database: Seleccione extensiones a cargar para cada base de datos: - + Add extension Añadir extensión - + Remove extension Eliminar extensión - + <html><head/><body><p>While supporting the REGEXP operator SQLite doesn't implement any regular expression<br/>algorithm but calls back the running application. DB Browser for SQLite implements this<br/>algorithm for you to let you use REGEXP out of the box. However, as there are multiple possible<br/>implementations of this and you might want to use another one, you're free to disable the<br/>application's implementation and load your own by using an extension. Requires restart of the application.</p></body></html> <html><head/><body><p> @@ -6083,7 +6115,7 @@ usando una extensión. Necesitará reiniciar la aplicación.</p> </body></html> - + Disable Regular Expression extension Desactivar extensión de Expresiones Regulares @@ -6932,7 +6964,7 @@ El uso de esta función tiene que ser autorizado desde las Preferencias.leyendo filas - + loading... cargando... @@ -6943,31 +6975,31 @@ Hold Ctrl+Shift and click to jump there Mantenga pulsado Ctrl+May y haga clic para ir ahí - + References %1(%2) Hold %3Shift and click to jump there Referencia %1(%2) Mantenga pulsado %3May y haga clic para ir ahí - + Error changing data: %1 Error modificando datos: %1 - + retrieving list of columns obteniendo lista de columnas - + Fetching data... Obteniendo datos... - + Cancel Cancelar