GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Initial Dutch (nl) translation for v3.12.1 · Pull Request #2424 · sqlitebrowser/sqlitebrowser

Conversation

@ghost

@ghost ghost commented Oct 8, 2020 •
edited by ghost
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Hello all,

Please review my first iteration of the Dutch (nl) translation for version v3.12.1.

Here's a few notes to go along with it as well as a few issues I encountered in the process:

  • General:

    • I took the liberty of adding a few extra accelerators here and there, but have not applied this consistently. In the next iteration I could either remove them, if you want, or add them more consistently.
    • Perhaps you are already aware of the following and it's something that is still under development:
      • Some buttons in dialogs, such as Cancel, OK and Restore Defaults, and in some context menu's items, such as Copy, Paste, etc., were not translatable and/or don't appear as translated. Perhaps some are provided by the system and cannot be overwritten? 1
      • Some translations for filtering file types in import and export dialogs do not appear, even though I did translate them. 1
      • Links in tooltips, such as <a href="https://en.wikibooks.org/wiki/Regular_Expressions">Regular Expression in Wikibooks</a>, don't appear to work (I've tested this in English as well, to make sure it wasn't caused by my translations). 1
  • SqlUiLexer:

    • I took the liberty of adding newlines in the tooltips for function documentation, because they were too long to be completely visible otherwise.
    • Tooltips with function documentation don't show Unicode (accented) characters, they appear as the infamous replacement character �. 1

I can provide more details about these issues, if desired.

Should I file some of these as issues to your issue tracker, perhaps?

Cheers!


  1. Tested on Ubuntu 18.04.5 (Linux kernel 4.15.0)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@codifier
Initial Dutch (nl) translation for v3.12.1
1775bf7
@ghost ghost mentioned this pull request Oct 8, 2020
'DB Browser for SQLite' v3.12.1 is ready for translation #2405
Closed
@lucydodo lucydodo added the translation label Oct 8, 2020
@codifier
Added missing translation phrase for AddRecordDialog and fixed a typo
165de0b
@lucydodo

lucydodo commented Oct 8, 2020

Copy link
Copy Markdown
Member

Thanks for contributing! 😄 First of all, you need to inform DB4S that there is a Dutch translation.
Please refer to the existing lines and add them to the following files:

  • ./CMakeLists.txt:303
  • ./src/src.pro:19:200
  • ./src/translations/flags/flags.qrc:21
  • ./src/translations/translations.qrc:19

I'm on mobile right now, so I simply made a review, but if you need more information, let me know. 🤔

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ghost

ghost commented Oct 8, 2020 •
edited by ghost
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Author

@lucydodo You are most welcome! My pleasure to contribute to such a great project.

Thanks for the pointers. I had already changed the files you mentioned, for testing purposes, but I just wasn't sure about including those changes in the commits for the pull request. I figured perhaps you, the maintainers, would want to keep control over such final configurations. But, I'll gladly add those references myself. Shouldn't take too long.


edit:

Done!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@codifier
Added the proper references in configuration files to compile the Dut…
a5c8f23
…ch translation into the build.
lucydodo
lucydodo requested changes Oct 8, 2020
View reviewed changes

@lucydodo lucydodo left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked the changes. Overall, I've found a number of items that are perfect, but need simple fix. Please check them. 🤔
If you are uncomfortable because it is too much, you can only resolve the untranslated items* and I can solve the rest.
Proceed as you like. and really thank you so much for translating all of this! 😄 😄

*: Items in which the review message written No translation here, but it treated completed.*.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/translations/sqlb_nl.ts Outdated
<message>
<location filename="../CondFormatManager.ui" line="35"/>
<source>&amp;Add</source>
<translation></translation>

@lucydodo lucydodo Oct 8, 2020

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No translation here, but it treated completed.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/translations/sqlb_nl.ts Outdated
<message>
<location filename="../EditDialog.ui" line="83"/>
<source>JSON</source>
<translation></translation>

@lucydodo lucydodo Oct 8, 2020

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's a proper noun that doesn't need translation, so I think you've left the translation blank.
I also did like this in the past, but there was an comments that it is safer to copy the original text for proper nouns
that do not require translation. Please refer to here for details.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/translations/sqlb_nl.ts Outdated
<message>
<location filename="../EditDialog.ui" line="88"/>
<source>XML</source>
<translation></translation>

@lucydodo lucydodo Oct 8, 2020

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's a proper noun that doesn't need translation, so I think you've left the translation blank.
I also did like this in the past, but there was an comments that it is safer to copy the original text for proper nouns
that do not require translation. Please refer to here for details.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/translations/sqlb_nl.ts Outdated
<message>
<location filename="../ExportDataDialog.ui" line="102"/>
<source>,</source>
<translation></translation>

@lucydodo lucydodo Oct 8, 2020

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's a symbol that doesn't need translation, so I think you've left the translation blank.
I also have a similar case in the past, but there was an comments that it is safer to copy the original text for symbol
that do not require translation. Please refer to here for details.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/translations/sqlb_nl.ts Outdated
<message>
<location filename="../ExportDataDialog.ui" line="107"/>
<source>;</source>
<translation></translation>

@lucydodo lucydodo Oct 8, 2020

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's a symbol that doesn't need translation, so I think you've left the translation blank.
I also have a similar case in the past, but there was an comments that it is safer to copy the original text for symbol
that do not require translation. Please refer to here for details.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/translations/sqlb_nl.ts Outdated
</message>
<message>
<location filename="../FileDialog.h" line="38"/>
<source>JSON Files (*

@lucydodo lucydodo Oct 8, 2020

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's a symbol that doesn't need translation, so I think you've left the translation blank.
I also have a similar case in the past, but there was an comments that it is safer to copy the original text for symbol
that do not require translation. Please refer to here for details.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/translations/sqlb_nl.ts Outdated
</message>
<message>
<location filename="../FileDialog.h" line="38"/>
<source>JSON Files (*

@lucydodo lucydodo Oct 8, 2020

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's a symbol that doesn't need translation, so I think you've left the translation blank.
I also have a similar case in the past, but there was an comments that it is safer to copy the original text for symbol
that do not require translation. Please refer to here for details.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/translations/sqlb_nl.ts Outdated
</message>
<message>
<location filename="../FileDialog.h" line="38"/>
<source>JSON Files (*

@lucydodo lucydodo Oct 8, 2020

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's a symbol that doesn't need translation, so I think you've left the translation blank.
I also have a similar case in the past, but there was an comments that it is safer to copy the original text for symbol
that do not require translation. Please refer to here for details.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/translations/sqlb_nl.ts Outdated
</message>
<message>
<location filename="../FileDialog.h" line="38"/>
<source>JSON Files (*

@lucydodo lucydodo Oct 8, 2020

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's a symbol that doesn't need translation, so I think you've left the translation blank.
I also have a similar case in the past, but there was an comments that it is safer to copy the original text for symbol
that do not require translation. Please refer to here for details.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/translations/sqlb_nl.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

@ghost

ghost commented Oct 8, 2020

Copy link
Copy Markdown
Author

@lucydodo I think I've amended the translations file with all your requested changes. What's the correct course of action now? Should I simply commit and push again? I assume that that will erase all your requests for changes, and I'm not sure whether that is desirable. Please advice. Cheers.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lucydodo

lucydodo commented Oct 8, 2020

Copy link
Copy Markdown
Member

Just commit and push and GitHub will be clean it up again :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

codifier and others added 3 commits October 8, 2020 17:46
@codifier
Amended translations with changes requested in review 504832399.
4eac837
SeongTae Jeong
Fix CMakeLists.txt
cfd6e18
SeongTae Jeong
Correct one untranslated item
f548bbf
@lucydodo
lucydodo merged commit 3041380 into sqlitebrowser:master Oct 8, 2020
@lucydodo

lucydodo commented Oct 8, 2020

Copy link
Copy Markdown
Member

Thanks for responding despite the many requests for modification. I modified and force push the following:

  • The tab spacing in CMakeLists.txt was previously 4, but it was set to 8, so I corrected for 4.
  • '...' item in PreferencesDialog context was not translated, so I replaced by original text.

Now squash and merged. I will cherry-pick in the v3.12.x branch soon.
Thanks to this PR, our project has taken a step further. Thank You! 😄

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lucydodo

lucydodo commented Oct 8, 2020

Copy link
Copy Markdown
Member

I took the liberty of adding newlines in the tooltips for function documentation,
because they were too long to be completely visible otherwise.

It doesn't problem you make a newline in the tooltip for readability.

I took the liberty of adding a few extra accelerators here and there, but have not applied this consistently.
In the next iteration I could either remove them, if you want, or add them more consistently.

I'm not sure if adding an accelerator not specified in the original code works.
I tried to test it, but none of the accelerators work on my Mac(even English env). I'll test it on a Windows PC.

Some buttons in dialogs, such as Cancel, OK and Restore Defaults, and in some context menu's items, such as Copy, Paste, etc., were not translatable and/or don't appear as translated.
Perhaps some are provided by the system and cannot be overwritten?

Cancel, OK and Restore Defaults, these buttons are text assigned through the QtStandardButtons provided by Qt.
So the text of this button we can NOT translate and Qt Team needs to translate it,
but I don't know why the Dutch language translation file is not in the Qt source tree, but it is confirmed that it is none.

Links in tooltips, such as Regular Expression in Wikibooks, don't appear to work

Tooltips with function documentation don't show Unicode (accented) characters,
they appear as the infamous replacement character

Could you please give me more information on the issue?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ghost

ghost commented Oct 8, 2020

Copy link
Copy Markdown
Author

@lucydodo Haha, no worries — they were all minor changes that were easily fixed. And you're welcome! Glad to see everything went pretty fast and reasonably smooth! 👍

And apologies about the indention issue in CMakeLists.txt. I don't know why my editor chose to change the tab spaces. I'll make sure to check for that next time, before I make a commit.

Anyway, looking forward to see my translations in the upcoming release. 😄

lucydodo reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ghost

ghost commented Oct 8, 2020

Copy link
Copy Markdown
Author

I'm not sure if adding an accelerator not specified in the original code works.
I tried to test it, but none of the accelerators work on my Mac(even English env). I'll test it on a Windows PC.

I've tested this on Ubuntu 18.04.5 and there it works fine. It looks like I can add any accelerator I choose, even if no accelerator is defined in the original text yet.

Could you please give me more information on the issue?

Okay, so about

Links in tooltips, such as Regular Expression in Wikibooks, don't appear to work

See this video on Imgur. When I click help on the regular expression option (in the Search and Replace dialog), a link to Wikibooks appears, but when I click on it, nothing happens (at least on Ubuntu 18.04.5). Links in the About dialog, however, do work.

...and about

Tooltips with function documentation don't show Unicode (accented) characters,
they appear as the infamous replacement character

See this image on Imgur. When I type a SQLite function name in the SQL editor, documentation about the function appears in the tooltip. However, Unicode characters (characters with accents, like é, ë, ó, ï, etc.) are not rendered correctly, but shown as the replacement character �.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mgrojo

mgrojo commented Oct 8, 2020

Copy link
Copy Markdown
Member

Links in tooltips, such as Regular Expression in Wikibooks, don't appear to work

See this video on Imgur. When I click help on the regular expression option (in the Search and Replace dialog), a link to Wikibooks appears, but when I click on it, nothing happens (at least on Ubuntu 18.04.5). Links in the About dialog, however, do work.

I added that link and later realized that it cannot be clicked. I left it, nevertheless, thinking that it might be some glitch in my environment. We can remove automatically from all the translations if we confirm that it is broken and has no possible fix.

...and about

Tooltips with function documentation don't show Unicode (accented) characters,
they appear as the infamous replacement character

See this image on Imgur. When I type a SQLite function name in the SQL editor, documentation about the function appears in the tooltip. However, Unicode characters (characters with accents, like é, ë, ó, ï, etc.) are not rendered correctly, but shown as the replacement character �.

That's strange, because it seems like a reproduction of #1206, one of the first bugs that I supposedly fixed in sqlitebrowser 😃 I don't reproduce it in Spanish, and now in Windows and v3.12.0. Which encoding are you using in your platform?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ghost

ghost commented Oct 8, 2020 •
edited by ghost
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Author

@mgrojo My system uses nl_NL.UTF-8 and I'm simply using the standard Qt Linguist software to edit the .ts file, which
I assume simply edits and saves in UTF-8, as well.

To be sure perhaps you could try to run the .ts file (or only the relevant bits with the accented chars) through some encoding detection software to verify whether it's actually UTF-8, or I could try to do this tomorrow for you, as well.

However, having quickly reviewed the commit file in your mentioned bug report, I see that it calls the method isUtf8() and then mutates the QByteArray to either Latin 1 or UTF 8. It might be saver to simply always use UTF-8 since (I believe, not entirely sure) Latin 1 is a subset of UTF-8 anyway, unless there are some other intricacies with the isUtf8() method and Scintilla, that I am unaware of. Sorry, ignore that part, only the first 128 bytes (ASCII) are a subset. If my statement was true, the � would probably not have appeared. 😉 But this point still stands:

My suspicion is that isUtf8() incorrectly assesses the CODEPAGE of the environment (or of the language, or whatever it bases its decision on) as Latin 1, when it actually should assess it as UTF-8. But I know next to nothing about DB4S' codebase, Qt or Scintilla, so I'm just guessing based on the quick glance I had in your mentioned commit.

Hope this helps.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mgrojo

mgrojo commented Oct 8, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

In your image the lag() function appears, but it is not currently defined in the translation files, so I'm a bit confused.
Edit: ok, I've found it now. Everything seems in order in the translation file.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mgrojo

mgrojo commented Oct 9, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

@codifier, I was writing that I don't reproduce the problem, that the call tip for lag(expr,offset) shows correctly the 'ë' in 'geëvalueerd' and diacritics in Spanish are also displayed correctly. But after playing a bit I've discovered that you have to select the lag() version using the arrows in order to reproduce the problem. If you access the tip writing lag(expr, then the text is displayed correctly. So it seems that there is still a problem in QScintilla. I will take a look.

justinclift reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ghost

ghost commented Oct 9, 2020 •
edited by ghost
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Author

@mgrojo O wow, you are right! I did not notice earlier that it does work correctly when it shows the direct function documentation, when typing the exact function signature.

I wish I could be of more help to you, but I'm afraid I'd probably have to take a course on Qt, Scintilla and probably C++, as well, first. 😬 But good luck — I'm sure you will find it.

And, to be fair, I don't think it's really a show stopper. It's a mild annoyance at most, in my opinion. Especially now that you've discovered it only happens when pressing the arrow.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

mgrojo added a commit that referenced this pull request Oct 9, 2020
@mgrojo
Fixed incorrect display of SQL calltips containing non-US-ASCII chara…
852faf6
…cters

There is a further problem when the calltip is displayed after clicking
one of the arrows for overloaded functions.

This was first reported in #1107 (Russian) and #1206 (Korean). The subcase
has been reported in PR #2424.

Patch reported in the QScintilla list, so there is no need to keep a new
patch. It is assumed to come in new QScintilla versions.
mgrojo added a commit that referenced this pull request Oct 9, 2020
@mgrojo
Fixed incorrect display of SQL calltips containing non-US-ASCII chara…
9f7851b
…cters

There is a further problem when the calltip is displayed after clicking
one of the arrows for overloaded functions.

This was first reported in #1107 (Russian) and #1206 (Korean). The subcase
has been reported in PR #2424.

Patch reported in the QScintilla list, so there is no need to keep a new
patch. It is assumed to come in new QScintilla versions.
@mgrojo

mgrojo commented Oct 9, 2020

Copy link
Copy Markdown
Member

Don't worry. I was easy after the first correction. Now it's fixed in the master and v3.12.x branches. Thanks for pointing it out.

lucydodo reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ghost

ghost commented Oct 9, 2020

Copy link
Copy Markdown
Author

@mgrojo Nice one! 👍 And you're welcome.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

translation

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@lucydodo @mgrojo @codifier
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.