Bug 478084

Summary: Digikam 8.x language issue on macOS
Product: [Applications] digikam Reporter: M-Rick <m.rick.mac>
Component: Bundle-MacOSAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: bugs.kde.org, caulier.gilles
Priority: NOR    
Version: 8.1.0   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In: 8.3.0
Sentry Crash Report:
Attachments: Digikam remains unlocalized after a fresh installation
Brand new install on a new macOS fresh install on an intel Mac

Description M-Rick 2023-12-04 21:32:53 UTC
Created attachment 163875 [details]
Digikam remains unlocalized after a fresh installation

SUMMARY
***
In Digikam 8.1 / 8.2 the language settings are unworking on macOS. The interface remains in English by default despite the settings.
***


STEPS TO REPRODUCE
1. Download Digikam 8.1 or 8.2 and install
2. Launch Digikam in a non English language.

OBSERVED RESULT
Digikam sets up automatically everything, even select the default OS localisation, but remains in English even after restart.

EXPECTED RESULT
Digikam should launch with the system default localisation

SOFTWARE/OS VERSIONS
macOS: macOS Ventura 13.6.1 Apple Silicon (Rosetta 2)
Digikam: 8.2.0
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.11
cocoa windowing system

ADDITIONAL INFORMATION
Default pkg from Digikam website.
Comment 1 caulier.gilles 2023-12-05 05:04:10 UTC
With the 8.2.0 just released and current pre-release version, the problem is not reproducible on my macbook pro:

https://imgur.com/F3b4pO9

Best regards

Gilles Caulier
Comment 2 M-Rick 2023-12-05 17:52:19 UTC
(In reply to caulier.gilles from comment #1)
> With the 8.2.0 just released and current pre-release version, the problem is
> not reproducible on my macbook pro:
> 
> https://imgur.com/F3b4pO9
> 
> Best regards
> 
> Gilles Caulier

Do you run it on an ARM Mac as well?
Comment 3 caulier.gilles 2023-12-05 18:14:10 UTC
For the previous screenshot, no, it's Intel mac.

But i have another MacBook air where is will take a look.

Gilles Caulier
Comment 4 M-Rick 2023-12-05 18:16:04 UTC
OK, I am running it on an M2 MacBook Pro. It was a fresh install.
Comment 5 caulier.gilles 2023-12-09 13:03:03 UTC
It work perfectly on my MacBook air M1 and Ventura, as on my ol MacBookPro Intel.

Gilles Caulier
Comment 6 M-Rick 2023-12-10 15:01:37 UTC
I just installed it on a completely fresh brand new install on an Intel macOS Ventura.
I just installed macOS now, it doesn't even have other softwares than the macOS default ones.
Digikam has been the first software to be installed after the initial system set up.
I got exactly the same result with everything in English, unlocalized as it should be. In the localisation settings, French has been selected by default, but everything is displayed in English!

Since you are the developer, how did you install it?
Your installation can include libraries available on your computer, that haven't been well packaged in the regular package installer.
I tried several packages available in the download section on the website. And whatever the package I downloaded, I got the same result.

You should try on another session or into a VM to isolate everything from your development environment.
Comment 7 M-Rick 2023-12-10 15:02:21 UTC
Created attachment 164069 [details]
Brand new install on a new macOS fresh install on an intel Mac
Comment 8 M-Rick 2023-12-10 15:49:27 UTC
I made some tricking and I found the reason.
It's a bug in the initialization process. It's specific to Ventura and above.
In the settings, I reverted language to English and relaunched Digikam.
Then I changed the language again to French and it worked.
Comment 9 Germo 2023-12-16 00:25:00 UTC
I have the same or a similar issue with 8.3.0 on Windows
https://bugs.kde.org/show_bug.cgi?id=478550
Comment 10 Maik Qualmann 2023-12-16 07:33:59 UTC
Git commit 6a8923a38ab1e91997f4fc35b8be45ebdf988676 by Maik Qualmann.
Committed on 16/12/2023 at 08:33.
Pushed by mqualmann into branch 'master'.

add debug to output the set locale
Related: bug 478550

M  +4    -0    core/app/utils/digikam_globals_bundles.cpp

https://invent.kde.org/graphics/digikam/-/commit/6a8923a38ab1e91997f4fc35b8be45ebdf988676
Comment 11 Maik Qualmann 2023-12-16 21:47:10 UTC
Git commit 450573361ed3b377eec06d11aef72e61d8ebc561 by Maik Qualmann.
Committed on 16/12/2023 at 22:44.
Pushed by mqualmann into branch 'master'.

try to fix the loading of the set language
Related: bug 478550

M  +12   -4    core/app/utils/digikam_globals_bundles.cpp

https://invent.kde.org/graphics/digikam/-/commit/450573361ed3b377eec06d11aef72e61d8ebc561