Bug 484749 - Metadata Exif Panel don't follow the language configured for digikam (it follows the OS language)
Summary: Metadata Exif Panel don't follow the language configured for digikam (it foll...
Status: CONFIRMED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Exif (show other bugs)
Version: 8.4.0
Platform: Manjaro Linux
: NOR minor
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-30 11:50 UTC by mahikeulbody
Modified: 2024-03-31 06:57 UTC (History)
2 users (show)

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


Attachments
screen copy of metadata exif panel (79.57 KB, image/png)
2024-03-30 11:50 UTC, mahikeulbody
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mahikeulbody 2024-03-30 11:50:43 UTC
Created attachment 167938 [details]
screen copy of metadata exif panel

My digikam instance is configured in en_US language. However Metadata Exif (right) Panel is displayed in French (the OS language setting). Please see attached screen copy.
Comment 1 caulier.gilles 2024-03-30 12:04:05 UTC
I don't know if Exiv2 shared libraries as an API to switch language following application settings.

In opposite, ExifTool as this option from the command line. I don't remember if we pass this settings with the C++ wrapper from digiKam core.

Gilles Caulier
Comment 2 mahikeulbody 2024-03-30 12:36:17 UTC
As shown in the screen copy attached, I am not talking about the exiftool panel but about the exif panel.
Comment 3 mahikeulbody 2024-03-30 12:47:36 UTC
OS language in french & Digikam in en-US : exif panel in french
OS language in en-US & Digikam in en-US : exif panel in english

but
OS language in en-US & Digikam in french : exif panel in french !!!     (with glitches : all characters such as "é" become "?")
Comment 4 caulier.gilles 2024-03-30 15:41:00 UTC
yes i speak about exiftool too, because the problem can be exactly the same in this view.
Comment 5 caulier.gilles 2024-03-30 15:45:31 UTC
This is how Exiv2 handle Native Language Support (NLS) in the CLI tool :

https://github.com/Exiv2/exiv2/blob/main/app/exiv2.cpp#L125

We need probably something similar in digiKam code to switch to right i18n accordingly with with application language.

Gilles
Comment 6 mahikeulbody 2024-03-30 15:53:49 UTC
OS language in french & Digikam in en-US : exif panel in french
OS language in en-US & Digikam in en-US : exif panel in english

let think that exiv2 uses OS language instead application language BUT in this case, how to explain that :

OS language in en-US & Digikam in french : exif panel in french ???   (ok, with glitches but anyway in french)
Comment 7 caulier.gilles 2024-03-30 15:59:11 UTC
Probably because nothing is initialized in digiKam to force the NLS support properly.

Gilles
Comment 8 Maik Qualmann 2024-03-31 06:57:58 UTC
A test here with the "-lang" parameter in ExifTool shows that the content of a Json output that we use is not translated. The behavior can also be reproduced on the command line. Presumably because these formats are also intended for later apply of metadata to files.

Maik