Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language "Use the system default" is no longer working, falls back to English (Fedora, KDE) #1570

Closed
3 tasks done
magicgoose opened this issue Oct 1, 2024 · 13 comments
Closed
3 tasks done

Comments

@magicgoose
Copy link

magicgoose commented Oct 1, 2024

  • I have checked the FAQ for answers.
  • I have checked the Changelog that the issue is not already fixed.
  • I believe this issue is a bug, and not a general technical issue, question or feature requests that can be discussed on the forum.

Describe the bug
Language "Use the system default" is no longer working as expected - instead, Strawberry uses English ignoring the system-wide language.

To Reproduce
Use Fedora KDE Spin.
Set language to non-English, for example Dutch (= Nederlands).
Install Strawberry Fedora package.
Make sure Strawberry Language = "Use the system default", restart if needed.

Expected behavior
Strawberry to use system language. (this worked before the latest few weeks)

Screenshots:
afbeelding

System Information:

  • Operating system: Fedora Linux 40
  • Strawberry Version: 1.1.3

Additional context

  • Graphics Platform: Wayland
  • Qt Version: 6.7.2
  • KDE Plasma Version: 6.1.5
  • KDE Frameworks Version: 6.6.0
  • Kernel Version: 6.10.11-200.fc40.x86_64 (64-bit)

Most other applications (which are translated to begin with) are still translated on this system, everything indicates that something specific to Strawberry has recently happened.

@magicgoose
Copy link
Author

I have checked the Changelog that the issue is not already fixed

from ChangeLog/Unreleased:

  • Require Qt 6.4 or higher and drop support for Qt 5.
  • Use Qt stringliterals.

could any of this possibly constitute a fix? I'm not sure

@jonaski
Copy link
Member

jonaski commented Oct 1, 2024

I renamed all the .po files when I merged translations to Crowdin, that probably has something to do with it.

@jonaski
Copy link
Member

jonaski commented Oct 5, 2024

What is LC_MESSAGES set to?
Check with locale | grep LC_MESSAGES

@jonaski
Copy link
Member

jonaski commented Oct 5, 2024

Is suspect this is a Qt bug (https://bugreports.qt.io/browse/QTBUG-129434), I see on Windows that it returns "en_US" before the language set as the display language, I think the order of the languages are wrong, since strawberry only uses the first.
I don't know if it's a good idea parse and try all.

@magicgoose
Copy link
Author

What is LC_MESSAGES set to? Check with locale | grep LC_MESSAGES

~> locale | grep LC_MESSAGES
LC_MESSAGES="nl_NL.UTF-8"

@fvalenduc
Copy link

I have gentoo and I have the same problem since strawberry-1.1.2. LC_MESSAGES is set to fr_BE.utf8

@jonaski
Copy link
Member

jonaski commented Oct 22, 2024

Please test with Qt 6.8.0 and check if the issue is gone.

@fvalenduc
Copy link

I have tested strawberry 1.2.0 and qt 6.8.0 in Archlinux and the problem still occurs.

@jonaski
Copy link
Member

jonaski commented Dec 4, 2024

According to the changelog for 6.8.1 there are still fixes for wrong language issues in that release too: https://code.qt.io/cgit/qt/qtreleasenotes.git/about/qt/6.8.1/release-note.md
So please try 6.8.1 once available in your distro, I still suspect this is a Qt bug.

@fvalenduc
Copy link

Still the same with QT 6.8.1 in archlinux.

@jonaski
Copy link
Member

jonaski commented Jan 22, 2025

I think the issue with fr_BE.utf8, is that strawberry does not have that language, ie.: starting strawberry with LC_MESSAGES="fr_BE.utf8" strawberry doesn't work here either. The reason it worked before was that we had a language called just "fr", but now the language code is fr_FR and that's not resolved to fr_BE. There is no easy fix for that as long as we use 4 letter language codes, other than that language being added in crowdin and someone translating fr_BE too. So the easiest thing is just to select the language in the settings.
Alternatively starting strawberry with: LC_MESSAGES="fr_FR.utf8" strawberry should also work.

nl_NL.UTF-8 should still work though, which was the original problem which @magicgoose reported. LC_MESSAGES="nl_NL.UTF-8" strawberry works here. Does this work for you now @magicgoose ?

@magicgoose
Copy link
Author

@jonaski yes it's working now, thanks for fixing!

@jonaski
Copy link
Member

jonaski commented Jan 24, 2025

I've added fr_BE, just copied the fr_FR translations.

@jonaski jonaski closed this as completed Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants