Commit Graph

3386 Commits

Author SHA1 Message Date
Martin Kleusberg 07351b36b0 Fix some problems reported by Coverity
This fixes some problems which were reported by Coverity. None of these
is critical and some are only theoretical issues which will never be
triggered. But better prepare the code for future changes and fix these
warnings properly instead of just silencing them.
2020-02-25 22:10:25 +01:00
Martin Kleusberg f74bf2a35c Try fixing the loading of the translations of the Qt strings
It seems like the translations of the strings from the Qt framework are
not loaded correctly. This is my attempt to fix this problem.

See issue #2124.
2020-02-25 22:10:24 +01:00
Justin Clift 20373dd714 Merge pull request #2146 from SafaAlfulaij/master
Update Arabic translation
2020-02-24 16:22:35 +11:00
Safa Alfulaij eeac07b580 Update Arabic translation 2020-02-23 20:17:44 +03:00
Iulian Onofrei 77023540ff Fix dotenv not working for databases encrypted using SQLCipher 3
Related to 6827cde5.
2020-02-23 15:17:36 +02:00
GortiZ 6f3dc9cb16 Update italian translation 3.12 (#2141)
Updated italina translation to the latest upstream.
2020-02-21 00:08:31 +11:00
Martin Kleusberg 13742c4602 Fix recordset number in Browse Data tab showing -1
This fixes an issue earlier introduced in commit
cee3523f37 which made the number of the
last visible record in an empty table -1 instead of 0.
2020-02-20 12:38:35 +01:00
Martin Kleusberg 29db270e80 Fix string in What's This text in Browse Data tab
Fix a string which contained some escpaed HTML tags which made them
visible to the user.

See comment in #2124.
2020-02-20 11:58:00 +01:00
Martin Kleusberg 0db3c1e04a dbhub: Fix translations in remote dock
Fix the translations of the table headers in the remote dock. Probably
because they were static they were not translated.

See comments in issue #2124.
2020-02-20 11:49:35 +01:00
Martin Kleusberg ca4f1c9317 Disable editing of generated columns in Browse Data tab
This disables all cells in generated columns for editing in the Browse
Data tab. Since the values of these columns are generated by SQLite
there is no way to edit them directly and each attempt will result in an
error. So it is best to not allow editing them in the UI.

See issue #2107.
2020-02-20 11:37:49 +01:00
Martin Kleusberg 1bab387b7a Store pointer to table object in SqliteTableModel
Store a pointer to the table object of the currently browsed table in
the SqliteTableModel objects. This avoids fetching the table object from
the DBBrowserDB object repeatedly which in turn should speed up some
functions of the model a bit.
2020-02-20 11:37:49 +01:00
FriedrichFroebel c890d13fc0 update German translation 2020-02-19 20:50:42 +01:00
FriedrichFroebel 1886e79870 update German translation 2020-02-19 20:50:42 +01:00
GortiZ ac836d3db5 Update translation for 3.12.x (#2136)
Updated Italian translation to the latest 'master' branch.
2020-02-19 08:17:45 +11:00
Martin Kleusberg 2ae45c33f5 Fix inserting into tables with generated columns
This fixes inserting new rows into tables with generated columns by not
trying to insert NULL values into these columns. With this change these
columns are effectively treated as if they had a default value which
means that the Add Record dialog does not need to show by default
anymore.

See issue #2107.
2020-02-17 23:03:37 +01:00
Firat Eski 66987f7efa Update Turkish translation (#2133)
* Update Turkish translation: Part 1

* Update Turkish translation: Part 2

* Update Turkish translation: Part 3

* Update Turkish translation: Part 4

* Update Turkish translation: Part 5

* Update Turkish translation: Part 6

* Update Turkish translation: Part 7

* Update Turkish translation: Part 7 (new sources translated)
2020-02-17 13:17:53 +11:00
mgrojo 0113d15e0e Fix crash when opening a second database
This is continuation of 60f3f4404a

The crash happened now in DBBrowserDB::getObjectByName when called from
TableBrowser::updateRecordsetLabel.

This fixes the crash in my system.
2020-02-16 19:14:51 +01:00
Justin Clift 6bf09f748d Qt5 Japanese translation files seem to be named "ja" instead of "jp" 2020-02-17 03:03:21 +11:00
Martin Kleusberg 60f3f4404a Try to fix possible crash in cee3523f37
This was spotted and mentioned by @mgrojo here:
https://github.com/sqlitebrowser/sqlitebrowser/commit/cee3523f37bf89780e42fc65fd327c2e1ea3a752#commitcomment-37302574

It does not reproduce on my system, so this is my best attempt at fixing
this issue.
2020-02-16 15:04:13 +01:00
mgrojo 498efd7a5c Fixed untranslatable string and strings without placeholders.
Spanish translation updated.

See issue #2124
2020-02-16 00:27:02 +01:00
mgrojo 721ace4982 Spanish translation for the 3.12 release
Squashed commit of the following:

commit f81fc8fa651c9d0aca704ab3dfa2a164b65740b6
Author: mgrojo <mgrojo@gmail.com>
Date:   Sat Feb 15 23:36:56 2020 +0100

    Some improvements to the Spanish translation

    - Do not use Title Case in Spanish as recommended by:
      https://es.l10n.kde.org/normas_generales.php
    - Consistency in references to GUI elements
    - Do not translate Shift since it has to match the official Qt translation
    and they seem to keep changing it in different versions. Leaving it
    untranslated, it is automatically translated when reference in GUI elements

commit 39b847010adad0c11c7319509c665272eaf28fbe
Merge: d19a1b2a d393dd37
Author: mgrojo <mgrojo@gmail.com>
Date:   Sat Feb 15 21:39:50 2020 +0100

    Merge branch 'master' of https://github.com/lulol/sqlitebrowser into lulol-master

    Fixed some undefined entities.

    # Conflicts:
    #	src/translations/sqlb_es_ES.ts

commit d393dd3763
Author: lulol <melus0@wanadoo.es>
Date:   Sat Feb 15 15:00:39 2020 +0100

    Updated Spanish translation

    It didn't like the 'iquest' entity for '¿' in the html block. Will try the UTF-8 version directly and try again.
    Used the new source 6683a9f

commit d6486b1b12
Author: lulol <melus0@wanadoo.es>
Date:   Sat Feb 15 14:42:53 2020 +0100

    Updated Spanish Translation.

    Trying again uploading the right file. :(

commit ec6883c212
Author: lulol <melus0@wanadoo.es>
Date:   Sat Feb 15 14:36:48 2020 +0100

    Updated Spanish translation

    Fixed a formatting typo and consistency.

commit 851e3e2f7d
Author: lulol <melus0@wanadoo.es>
Date:   Sat Feb 15 13:25:10 2020 +0100

    Updated Spanish translation
2020-02-15 23:42:10 +01:00
Justin Clift d19a1b2ae9 Merge pull request #2130 from hrwatahiki/master
Japanese Localization for v3.12
2020-02-16 04:14:47 +11:00
WATAHIKI Hiroyuki 4c29c534b6 Japanese Localization for v3.12 2020-02-16 00:04:52 +09:00
Justin Clift 39047109a6 Fix typos spotted by lulol :) 2020-02-16 01:08:34 +11:00
Łukasz Wojniłowicz 22a8cc051f Update Polish translation 2020-02-16 00:23:20 +11:00
Justin Clift a1296bc6e5 Tweak the Portuguese translation .ts file after the earlier spelling fixes 2020-02-15 23:55:32 +11:00
Justin Clift d8b25e0b8e Translation tweak by Michel VERET for 3.12 release 2020-02-15 23:54:03 +11:00
Justin Clift daedace373 Updated translation by Michel VERET for 3.12 release 2020-02-15 17:11:47 +11:00
Justin Clift 485a1b514b Merge pull request #2126 from bernardosulzbach/pt-br-translation-for-3.12
Brazilian Portuguese translation updates for 3.12
2020-02-15 16:49:48 +11:00
Bernardo Sulzbach 0c6f513091 Finishes all pending translations to Portuguese 2020-02-14 23:30:08 -03:00
Bernardo Sulzbach 353672c868 More Portuguese translations for the 3.12 release 2020-02-14 23:29:10 -03:00
Bernardo Sulzbach cbedf321ce Adds more Portuguese translations 2020-02-14 23:25:50 -03:00
Bernardo Sulzbach 445ba754d6 Updated some more Portuguese translations 2020-02-14 23:23:51 -03:00
Bernardo Sulzbach 8a9d055525 Started updating Portuguese translations 2020-02-14 23:23:51 -03:00
Justin Clift fe88463cba Fix spelling mistake noticed by Bernardo Sulzbach 2020-02-15 12:48:35 +11:00
Justin Clift 29cc46c7d3 Merge pull request #2125 from bernardosulzbach/bad-sentence-fix
Adds a missing space between sentences
2020-02-15 12:36:35 +11:00
Bernardo Sulzbach 1d1afaad21 Adds a missing space between sentences
Also rewords the second sentence to be more grammatically correct.
2020-02-14 21:00:52 -03:00
Iulian Onofrei 281cfe78dc Fix dotenv not working when not specifying the plaintext header size 2020-02-15 01:34:07 +02:00
mgrojo 763a4a0b92 Update Japanese translation file with post v3.11.2 strings 2020-02-14 21:02:27 +01:00
mgrojo cfb712dbfd Japanese Localization. #2122
Merge branch 'hrwatahiki-master'
2020-02-14 20:52:13 +01:00
WATAHIKI Hiroyuki 9a1cc66503 Japanese Localization. 2020-02-15 02:34:58 +09:00
Martin Kleusberg 5f016f5814 Update translation files 2020-02-14 10:31:51 +01:00
Martin Kleusberg cee3523f37 Fix the recordset numbers in the Browse Data tab
This improves the accuracy of the number of the last row in the
recordset number label at the bottom of the Browse Data tab by using the
seemingly more accurate visualIndexAt approach instead of the rowAt
approach from before and by taking the horizontal scrollbar into
account.

It also updates the label when resizing the row heights or column
widths.

See issue #232.
2020-02-13 13:27:02 +01:00
mgr b0065300e4 Never mark the DB dirty if it is read-only. Issue #1514
Setting save points does not make sense for read-only databases, so
do never set a save-point while executing a user query if the database has
been opened in read-only mode.

If setSavePoint is ever called in read-only mode, a warning is printed and
the save-point is not set.

If ever a read-write query is executed, it would be rejected by SQLite so
there is no risk of immediately committing any change to the DB.
2020-02-13 12:12:24 +01:00
Martin Kleusberg 4070c5505d libs: Update JSON library to version 3.7.3 2020-02-13 11:11:27 +01:00
Scott Furry 6c309cb2c5 Bump revision of internal QCustomPlot from 2.0.0(2017Sep04) to latest available, 2.0.1(2018Jun25). 2020-02-13 10:26:00 +01:00
Martin Kleusberg d522de70db parser: Add support for parsing GENERATED ALWAYS AS columns
This adds support for parsing, storing, and generating GENERATED ALWAYS
AS columns as added in SQLite 3.31.0.

See issue #2107.
2020-02-09 14:13:45 +01:00
Justin Clift cbced65931 Restore FileIO Extension, as SQLite 3.31.x has been released 2020-02-03 13:52:29 +11:00
Justin Clift 784bdc759d Merge pull request #2109 from deepsidhu1313/master
Fix for #2102
2020-02-02 17:17:58 +11:00
Navdeep Singh Sidhu b69e31f0a8 Code Cleanup 2020-02-01 15:49:01 -06:00