Bug 468322 - Falkon does not use locale language
Summary: Falkon does not use locale language
Status: RESOLVED FIXED
Alias: None
Product: Falkon
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: David Rosca
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-09 11:12 UTC by Emir SARI
Modified: 2023-04-13 20:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emir SARI 2023-04-09 11:12:11 UTC
KDE neon, Falkon 22.11.70

My system language is tr_TR. However, Falkon only launches in English, just the OK, Apply, Cancel languages using the system locale.

LANG=tr_TR falkon in Konsole does not make a difference as well.
Comment 1 Juraj 2023-04-09 14:55:51 UTC
Falkon contains translations even for "tr" language variant.

I checked the KDE Neon packages and the translations are included.
I can only guess that there is some other problem. 

I have no idea if this would provide any logs, but it might help if you can provide the console logs from when you try to run falkon.
Comment 2 Emir SARI 2023-04-09 15:28:31 UTC
I am very ignorant about log collecting in KDE. How to do that properly?
Comment 3 Juraj 2023-04-09 15:59:59 UTC
> I am very ignorant about log collecting in KDE. How to do that properly?

Than we are 2.
For the start I would open a terminal emulator a simply started "falkon" and see the output it prints.

You can modify the debug levels for some KDE programs by using "kdebugsettings" utility (might need to be installed).
But I believe Falkon does not use this that much, (if at all)

Thank you.
Comment 4 Emir SARI 2023-04-09 17:00:50 UTC
Alright, here's the output:

Falkon: Creating new profile directory
Error creating database schema "Sorgu yok Satır getirilemedi"
Please register the custom scheme 'remote' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'baloosearch' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'bluetooth' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'recentlyused' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'filenamesearch' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'recentdocuments' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'man' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'zstd' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'kdeconnect' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'afc' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'info' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'ar' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'timeline' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'activities' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'bzip' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'desktop' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'help' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'lzma' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'zip' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'tags' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'trash' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'sftp' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'gzip' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'webdav' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'bookmarks' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'fish' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'ghelp' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'programs' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'smb' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'camera' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'tar' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'bup' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'sevenz' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'thumbnail' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'webdavs' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'cifs' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'nfs' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'obexftp' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'bzip2' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'applications' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'metainfo' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'fonts' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'mtp' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'xz' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Cannot initialize model with data QJsonObject(). missing: QJsonValue(string, "urls")
Falkon: 2 extensions loaded
Comment 5 Juraj 2023-04-09 17:26:21 UTC
Thank you for sending the console logs.

> Error creating database schema "Sorgu yok Satır getirilemedi"
This is clearly translated.

> Please register the custom scheme 'remote' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Can be ignored here, it is another bug. (will be fixed in 23.08.0)

> Cannot initialize model with data QJsonObject(). missing: QJsonValue(string, "urls")
Harmless notice, will be fixed (hidden) in 23.04.0

To me, it looks like Falkon is using translation in desired language but the translation are not complete, or some other system setting.
Or there is something else I am not aware of.
Comment 6 Juraj 2023-04-09 17:31:28 UTC
Also, it this installed from the repositories or from snap or flatpak?
I would also recommend to contact KDE Neon guys for distribution specific questions.
Comment 7 Emir SARI 2023-04-09 18:47:41 UTC
Hmm. Tried with both Flatpak and the regular one; still didn’t work. Translations should be okay, since I’ve completed the translation.
Comment 8 Juraj 2023-04-10 07:36:28 UTC
Hello, I looked into this and tried to switch to different languages.
It all worked fine (the ones I tried) only Turkish did not.
Than I compared the translation files between them and found this.

The Turkish language is missing this at the beginning:
> "X-Qt-Contexts: true\n"

Example working file:
https://invent.kde.org/network/falkon/-/blob/release/23.04/poqm/en_GB/falkon_autoscroll_qt.po

Turkish not working file:
https://invent.kde.org/network/falkon/-/blob/release/23.04/poqm/tr/falkon_autoscroll_qt.po


In other words, Falkon is using Qt style language translation "tr()" and not the kde ki8n something.

Please try to fix before the 23.04.0 release.
Thank you.

PS: These files are synced from the KDE translation service and are only mirrored to the repository.
PS2: there could be more broken languages.
Comment 9 Emir SARI 2023-04-10 10:09:09 UTC
Oh, hamburgers. Fixed it on both stable and trunk. Let's wait for the release now.