Closed Anagastes closed 2 years ago
Locale (interface): de
I can see you have set it to German.
What is set there is you run ./QOwnNotes-x86_64.AppImage --session test --clear-settings
?
Locale (interface): de
I can see you have set it to German.
What is set there is you run
./QOwnNotes-x86_64.AppImage --session test --clear-settings
?
This is the output then, there is talk of missing languages.
./QOwnNotes-x86_64.AppImage --session test --clear-settings
qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 523, resource id: 14728230, major code: 40 (TranslateCoords), minor code: 0
Warning: Your settings are now cleared! (:0, )
Info: "Note path '/home/andre/Notes' doesn't exist yet and will be created." (:0, )
Info: "Note path '/home/andre/Notes' was now created." (:0, )
Warning: fetchAll : QSqlError("", "Der Datensatz konnte nicht abgeholt werden", "Kein Abfrage") ((null):0, (null))
Info: "QOwnNotes server listening on port 22222" ((null):0, (null))
Warning: QXcbConnection: XCB error: 3 (BadWindow), sequence: 700, resource id: 14728273, major code: 40 (TranslateCoords), minor code: 0 ((null):0, (null))
Warning: Missing trigrams for languages: QSet("de_CH", "de_BE", "de_LU", "de_LI") ((null):0, (null))
Warning: QXcbConnection: XCB error: 3 (BadWindow), sequence: 865, resource id: 14728351, major code: 40 (TranslateCoords), minor code: 0 ((null):0, (null))
For understanding, my system is in german. And when I compile the tool manually it is also started correctly in German.
Locale (interface)
Can you please post the output from the debug settings that you can copy when you get into the settings dialog in QOwnNotes and head over to the Debug section of it.
@pbek
Sure :)
./QOwnNotes-x86_64.AppImage --session test
Can you please post the output from the debug settings that you can copy when you get into the settings dialog in QOwnNotes and head over to the Debug section of it.
No, I meant the settings dump 😅
[Feb 08 21:58:38] [Debug]: main - 'locale': "de"
[Feb 08 21:58:38] [Debug]: Translation "/usr/share/qt5/translations/QOwnNotes_de" in "" isLoaded: false , isInstalled: false
[Feb 08 21:58:38] [Debug]: Translation "qt_de" in "/tmp/.mount_QOwnNoe3f2hw/usr/translations" isLoaded: true , isInstalled: true
[Feb 08 21:58:38] [Debug]: Translation "qt_de" in "/tmp/.mount_QOwnNoe3f2hw/usr/bin/translations" isLoaded: false , isInstalled: false
[Feb 08 21:58:38] [Debug]: Translation "/tmp/.mount_QOwnNoe3f2hw/usr/bin/../src/languages/QOwnNotes_de" in "" isLoaded: false , isInstalled: false
[Feb 08 21:58:38] [Debug]: Translation "/tmp/.mount_QOwnNoe3f2hw/usr/bin/../languages/QOwnNotes_de" in "" isLoaded: false , isInstalled: false
[Feb 08 21:58:38] [Debug]: Translation "/tmp/.mount_QOwnNoe3f2hw/usr/bin/languages/QOwnNotes_de" in "" isLoaded: false , isInstalled: false
[Feb 08 21:58:38] [Debug]: Translation "/tmp/.mount_QOwnNoe3f2hw/usr/bin/QOwnNotes_de" in "" isLoaded: false , isInstalled: false
[Feb 08 21:58:38] [Debug]: Translation "../src/languages/QOwnNotes_de" in "" isLoaded: false , isInstalled: false
[Feb 08 21:58:38] [Debug]: Translation "../share/qt5/translations/QOwnNotes_de" in "" isLoaded: false , isInstalled: false
[Feb 08 21:58:38] [Debug]: Translation "/tmp/.mount_QOwnNoe3f2hw/usr/bin/../share/qt5/translations/QOwnNotes_de" in "" isLoaded: false , isInstalled: false
[Feb 08 21:58:38] [Debug]: Translation "QOwnNotes_de" in "" isLoaded: false , isInstalled: false
But this part is interesting too...
Says [Feb 08 21:58:38] [Debug]: Translation "qt_de" in "/tmp/.mount_QOwnNoe3f2hw/usr/translations" isLoaded: true , isInstalled: true
... at least the Qt translation is found.
But I don't understand why no German QOwnNotes translation is loaded... if the local is detected correctly.
Can you please post the output from the debug settings that you can copy when you get into the settings dialog in QOwnNotes and head over to the Debug section of it.
No, I meant the settings dump sweat_smile
Oh, sorry. xD
Here it is!
Yes, that is really very very strange.
I came across it when I wanted to deploy your AUR repo as a ready bin, since it takes forever to compile it on my little machine every time I update ;)
Your AUR package is correctly in German after compiling.
Locale (interface):
de
did you set that manually in the test session?
Locale (interface):
de
did you set that manually in the test session?
yes, sorry. here we go again with empty settings
[Feb 08 21:58:38] [Debug]: Translation "/usr/share/qt5/translations/QOwnNotes_de" in "" isLoaded: false , isInstalled: false
[Feb 08 21:58:38] [Debug]: Translation "qt_de" in "/tmp/.mount_QOwnNoe3f2hw/usr/translations" isLoaded: true , isInstalled: true
[Feb 08 21:58:38] [Debug]: Translation "qt_de" in "/tmp/.mount_QOwnNoe3f2hw/usr/bin/translations" isLoaded: false , isInstalled: false
[Feb 08 21:58:38] [Debug]: Translation "/tmp/.mount_QOwnNoe3f2hw/usr/bin/../src/languages/QOwnNotes_de" in "" isLoaded: false , isInstalled: false
[Feb 08 21:58:38] [Debug]: Translation "/tmp/.mount_QOwnNoe3f2hw/usr/bin/../languages/QOwnNotes_de" in "" isLoaded: false , isInstalled: false
[Feb 08 21:58:38] [Debug]: Translation "/tmp/.mount_QOwnNoe3f2hw/usr/bin/languages/QOwnNotes_de" in "" isLoaded: false , isInstalled: false
[Feb 08 21:58:38] [Debug]: Translation "/tmp/.mount_QOwnNoe3f2hw/usr/bin/QOwnNotes_de" in "" isLoaded: false , isInstalled: false
[Feb 08 21:58:38] [Debug]: Translation "../src/languages/QOwnNotes_de" in "" isLoaded: false , isInstalled: false
[Feb 08 21:58:38] [Debug]: Translation "../share/qt5/translations/QOwnNotes_de" in "" isLoaded: false , isInstalled: false
[Feb 08 21:58:38] [Debug]: Translation "/tmp/.mount_QOwnNoe3f2hw/usr/bin/../share/qt5/translations/QOwnNotes_de" in "" isLoaded: false , isInstalled: false
I wonder... Are there any of these language files on your system when you open QOwnNotes (paths may be different then)?
[Feb 08 21:58:38] [Debug]: Translation "/usr/share/qt5/translations/QOwnNotes_de" in "" isLoaded: false , isInstalled: false [Feb 08 21:58:38] [Debug]: Translation "qt_de" in "/tmp/.mount_QOwnNoe3f2hw/usr/translations" isLoaded: true , isInstalled: true [Feb 08 21:58:38] [Debug]: Translation "qt_de" in "/tmp/.mount_QOwnNoe3f2hw/usr/bin/translations" isLoaded: false , isInstalled: false [Feb 08 21:58:38] [Debug]: Translation "/tmp/.mount_QOwnNoe3f2hw/usr/bin/../src/languages/QOwnNotes_de" in "" isLoaded: false , isInstalled: false [Feb 08 21:58:38] [Debug]: Translation "/tmp/.mount_QOwnNoe3f2hw/usr/bin/../languages/QOwnNotes_de" in "" isLoaded: false , isInstalled: false [Feb 08 21:58:38] [Debug]: Translation "/tmp/.mount_QOwnNoe3f2hw/usr/bin/languages/QOwnNotes_de" in "" isLoaded: false , isInstalled: false [Feb 08 21:58:38] [Debug]: Translation "/tmp/.mount_QOwnNoe3f2hw/usr/bin/QOwnNotes_de" in "" isLoaded: false , isInstalled: false [Feb 08 21:58:38] [Debug]: Translation "../src/languages/QOwnNotes_de" in "" isLoaded: false , isInstalled: false [Feb 08 21:58:38] [Debug]: Translation "../share/qt5/translations/QOwnNotes_de" in "" isLoaded: false , isInstalled: false [Feb 08 21:58:38] [Debug]: Translation "/tmp/.mount_QOwnNoe3f2hw/usr/bin/../share/qt5/translations/QOwnNotes_de" in "" isLoaded: false , isInstalled: false
I wonder... Are there any of these language files on your system when you open QOwnNotes (paths may be different then)?
The languages are not available for me.
I had searched globally.
find / -name "*QOwnNotes_en*"
But as soon as I install your AUR package, they are also in the path /usr/share/qt5/translations/.
Then the AppImage also has the correct German language. But that's not quite the point of the AppImage, is it?
When I extract the appimage, the languages are present in this form. Is that correct?
They should be in /tmp/.mount_QOwnNoe3f2hw
or similar...
When I extract the appimage, the languages are present in this form. Is that correct?
those are the Qt translations...
there need to be some QOwnNotes_*
too
They should be in
/tmp/.mount_QOwnNoe3f2hw
or similar...When I extract the appimage, the languages are present in this form. Is that correct?
those are the Qt translations... there need to be some
QOwnNotes_*
too
Unfortunately not, there is no such data in the unpacked AppImage.
I can't find them neither... They should be created by https://github.com/pbek/QOwnNotes/blob/3714f5707d7e624c0f134e7bf9d6761effc52a6e/.github/workflows/build-release.yml#L149
I'll add some debug code in the build process.
The language files are all there in the build process: https://github.com/pbek/QOwnNotes/runs/5144512994?check_suite_focus=true#step:10:2081 🤔
I guess I need to move them manually to the appimage
There now is a new release, could you please test it and report if it works for you?
I can now see files like:
/tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_ar.qm
/tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_bg.qm
/tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_bn.qm
/tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_bs.qm
/tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_ca.qm
/tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_ceb.qm
/tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_cs.qm
/tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_da.qm
/tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_de.qm
/tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_el.qm
/tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_en.qm
/tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_es.qm
/tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_et.qm
/tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_eu.qm
/tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_fa.qm
There now is a new release, could you please test it and report if it works for you?
I can now see files like:
/tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_ar.qm /tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_bg.qm /tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_bn.qm /tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_bs.qm /tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_ca.qm /tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_ceb.qm /tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_cs.qm /tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_da.qm /tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_de.qm /tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_el.qm /tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_en.qm /tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_es.qm /tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_et.qm /tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_eu.qm /tmp/.mount_QOwnNoitAZa0/usr/languages/QOwnNotes_fa.qm
I can confirm it. The appimage start now with correct language :)
Awesome, thank you for testing!
Awesome, thank you for testing!
FYI
Based on your AppImage I have now created a static bin in the AUR. With an update from you, I need some time to push it.
But for small and slower PCs this is really better. Since does not have to be compiled. Your AUR package takes me 15min where normal BIN updates are through in a few seconds.
Maybe this is an alternative to provide static bins? I would give the AUR package to you as well ;)
Ah, nice. I just let QOwnNotes update the AppImage. 😁
Expected behaviour
AppImage load korrekt language
Actual behaviour
AppImage didn load language of system.
Steps to reproduce
Set KDE to German and do not have a self-compiled package installed. Start the AppImage.
Operating System: Manjaro Linux KDE Plasma Version: 5.23.5 KDE Frameworks Version: 5.90.0 Qt Version: 5.15.2 Kernel Version: 5.16.7-1-MANJARO (64-bit) Graphics Platform: X11 Processors: 4 × Intel® Core™ i5-4670 CPU @ 3.40GHz Memory: 23.4 GiB of RAM Graphics Processor: AMD Radeon RX 570 Series
Relevant log output in the Log panel
Expand
``` no debug output in appimage ```Information about the application, settings and environment
Expand
QOwnNotes Debug Information =========================== ## General Info **Current Date**: `Di. Feb. 8 21:33:07 2022` **Version**: `22.2.2` **Build date**: `Feb 8 2022` **Build number**: `946` **Platform**: `linux` **Operating System**: `Manjaro Linux` **Build architecture**: `x86_64` **Current architecture**: `x86_64` **Release**: `AppImage` **Qt Version (build)**: `5.15.2` **Qt Version (runtime)**: `5.15.2` **Portable mode**: `no` **Qt Debug**: `0` **Locale (system)**: `de_DE` **Locale (interface)**: `de` **Primary screen resolution**: `1920x1080` **Screen resolution(s)**: `1920x1080, 1920x1080` **Icon theme**: `breeze-dark-qownnotes` **Notes in current note folder**: `41` **Calendar items**: `0` **Enabled scripts**: `0` ## Server Info **serverUrl**: `https://XXXX` **appIsValid**: `yes` **notesPathExists**: `not found` **serverVersion**: `23.0.0.10` **appVersion**: *empty* ## Spellchecking **Enabled**: `false` **Selected language**: `de_DE` **Language codes**: `de_AT, de_BE, de_CH, de_DE, de_LI, de_LU, en_US, en_US-large` **Language names**: `Österreichisches Deutsch (Österreich), Deutsch (Belgien), Schweizer Hochdeutsch (Schweiz), Deutsch (Deutschland), Deutsch (Liechtenstein), Deutsch (Luxemburg), American English (United States), American English (United States) [large]` **Application dictionaries path**: `/home/andre/.local/share/PBE/QOwnNotes/dicts` ## Note folders **currentNoteFolderId**: `2` ### Note folder `Standard` **id**: `1` **isCurrent**: `no` **activeTagId**: `22` **localPath**: **remotePath**: `Notes` **cloudConnectionId**: `1` **isShowSubfolders**: `no` **isUseGit**: `no` **allowDifferentNoteFileName**: `no` **activeNoteSubFolder name**: *empty* **database file**: ### Note folder `Standard` **id**: `2` **isCurrent**: `yes` **activeTagId**: `23` **localPath**: **remotePath**: `Notes` **cloudConnectionId**: `1` **isShowSubfolders**: `no` **isUseGit**: `no` **allowDifferentNoteFileName**: `no` **activeNoteSubFolder name**: *empty* **database file**: ` ## Cloud connections ### Cloud connection `XXXX` **id**: `1` **isCurrent**: `yes` **serverUrl**: `https://XXXX` **username**: `XXXX` **accountId**: *empty* ## Enabled scripts ## Settings **AboutDialog/geometry** (QByteArray): `