Bug 484311 - Allow to generate non English keywords with Auto-Tags engine.
Summary: Allow to generate non English keywords with Auto-Tags engine.
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Maintenance-AutoTags (show other bugs)
Version: 8.3.0
Platform: Other Other
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-23 11:31 UTC by fch22
Modified: 2024-03-24 11:13 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 8.4.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description fch22 2024-03-23 11:31:36 UTC
today automatic tag are generated in English, can we have a configuration parameter to select another langage.

Regards
Frederic
Comment 1 caulier.gilles 2024-03-23 16:00:30 UTC
The AI model only know the English sentence. We can easily translate keywords automatically on the workflow with online translators.

It's very easy to do as the relevant code already exists and is used in other places in digiKam, as for ex in the Captions sidebar tab..

So to prevent a mess in the auto-tags hierarchy, especially when multi-languages will be used, i propose something like this :

/auto
    /fr-FR/maison
              /cuisine
              /chien
    /en-US/house
                /kitchen
                /dog
    ...

Like this multi-language can be supported in the auto-tags hierarchies without  concurrency. Note that the tags in the database do not support yet multi-language. We have a wish in Bugzilla about this topic, but we can implement this file without multi-language support in tags.

Gilles Caulier
Comment 2 Maik Qualmann 2024-03-23 18:48:35 UTC
*** Bug 484341 has been marked as a duplicate of this bug. ***
Comment 3 Maik Qualmann 2024-03-24 08:50:05 UTC
Git commit 71bce102ef3038445a4ebdfd8fae9d20eeea4e6a by Maik Qualmann.
Committed on 24/03/2024 at 08:48.
Pushed by mqualmann into branch 'master'.

translate auto tags in the BQM with the online translator
Related: bug 484341

M  +62   -6    core/dplugins/bqm/metadata/assigntags/assigntags.cpp

https://invent.kde.org/graphics/digikam/-/commit/71bce102ef3038445a4ebdfd8fae9d20eeea4e6a
Comment 4 Maik Qualmann 2024-03-24 11:13:45 UTC
Git commit b34949dfc220956293e8bc67eaaaaf7b28a4a605 by Maik Qualmann.
Committed on 24/03/2024 at 11:12.
Pushed by mqualmann into branch 'master'.

translate auto tags in the Maintenance Tool with the online translator
Related: bug 484341
FIXED-IN: 8.4.0

M  +2    -2    NEWS
M  +0    -2    core/dplugins/bqm/metadata/assigntags/assigntags.cpp
M  +4    -1    core/utilities/maintenance/autotagsassignment.cpp
M  +1    -0    core/utilities/maintenance/autotagsassignment.h
M  +41   -3    core/utilities/maintenance/autotagsassignmenttask.cpp
M  +1    -0    core/utilities/maintenance/autotagsassignmenttask.h
M  +3    -0    core/utilities/maintenance/maintenancedlg.cpp
M  +3    -1    core/utilities/maintenance/maintenancedlg_p.cpp
M  +3    -0    core/utilities/maintenance/maintenancedlg_p.h
M  +7    -0    core/utilities/maintenance/maintenancedlg_settings.cpp
M  +2    -1    core/utilities/maintenance/maintenancemngr.cpp
M  +2    -0    core/utilities/maintenance/maintenancesettings.h
M  +2    -1    core/utilities/maintenance/maintenancethread.cpp
M  +1    -1    core/utilities/maintenance/maintenancethread.h

https://invent.kde.org/graphics/digikam/-/commit/b34949dfc220956293e8bc67eaaaaf7b28a4a605