Bug 283492 - Display only favorite languages in language selection comboboxes
Summary: Display only favorite languages in language selection comboboxes
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-MetadataEdit (show other bugs)
Version: 2.3.0
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-06 20:08 UTC by Michael G. Hansen
Modified: 2022-08-22 16:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 8.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael G. Hansen 2011-10-06 20:08:57 UTC
Version:           2.3.0 (using KDE 4.6.2) 
OS:                Linux

Currently, the comboboxes which are used for language selection for Captions, Titles, etc. always list all language codes. However, I only use one or two languages on a daily basis and have to navigate through the long list to find them.

It would be nice if the list would provide a customized list of "favorite" languages, with rarely used languages either listed below or available via a "Other languages..." entry. Ideally, a central configuration for these language-comboboxes would be available in digikam, but the configuration also used in libkgeomap and kipi-plugins - that would require some sort of new library. Maybe there are more functions that we also need in kipi-plugins, that could go into this library?

Reproducible: Didn't try



Expected Results:  
Show a list of a few "favorite" languages, with other languages being available below them or through a dialog.
Comment 1 caulier.gilles 2011-10-06 20:24:36 UTC
This widget is managed by libkexiv2.

Junior job too ?

Gilles Caulier
Comment 2 Marcel Wiesweg 2011-10-07 16:12:45 UTC
I would suggest to omit a configuration, per default list only system languages (there is a languages tab in KDE system settings), and a "More languages" entry, which, when selected, expands to the current list of languages. 
Additionally, all recently used languages should be shown (maybe stored with date of last use and discarded after some time). At first use, recently used languages could be initialized with a country-specific choice (Europe => English + French, America => English and Spanish, Asia => English, Japanese, Chinese or similar)
Comment 3 caulier.gilles 2022-08-20 20:03:56 UTC
Git commit 773b8dc469f0f294dcf39b6d42a36e7a88f5adfd by Gilles Caulier.
Committed on 20/08/2022 at 20:01.
Pushed by cgilles into branch 'master'.

add list of available language for online translator selection.
Prepare Localize config view to host list of prefered languages to provide in Alternative Laguage Text Editor.
Related: bug 370192

M  +15   -0    core/libs/widgets/metadata/utils/altlangstredit.cpp
M  +2    -0    core/libs/widgets/metadata/utils/altlangstredit.h
M  +58   -2    core/libs/widgets/text/localizeconfig.cpp
M  +4    -0    core/libs/widgets/text/localizeconfig.h

https://invent.kde.org/graphics/digikam/commit/773b8dc469f0f294dcf39b6d42a36e7a88f5adfd
Comment 4 caulier.gilles 2022-08-21 13:56:32 UTC
Git commit 6ed62de2aeb77b17581a3def295088ccb4af4d8e by Gilles Caulier.
Committed on 21/08/2022 at 13:55.
Pushed by cgilles into branch 'master'.

add more RFC 3066 language codes
Related: bug 370192

M  +157  -11   core/libs/widgets/metadata/utils/altlangstredit.cpp

https://invent.kde.org/graphics/digikam/commit/6ed62de2aeb77b17581a3def295088ccb4af4d8e
Comment 5 caulier.gilles 2022-08-21 21:06:42 UTC
Git commit f3d58dc5afa267f7047e7548679d151ba055a524 by Gilles Caulier.
Committed on 21/08/2022 at 21:04.
Pushed by cgilles into branch 'master'.

Record list of prefered online translator languages from Setup/Misc/Localize view
and only populate this list in Alternatice Language text editor widget.
Related: bug 370192

M  +3    -2    core/libs/widgets/metadata/utils/altlangstredit.cpp
M  +94   -37   core/libs/widgets/text/localizeconfig.cpp
M  +5    -1    core/libs/widgets/text/localizeconfig.h
M  +11   -1    core/libs/widgets/text/spellcheckcontainer.cpp
M  +1    -0    core/libs/widgets/text/spellcheckcontainer.h

https://invent.kde.org/graphics/digikam/commit/f3d58dc5afa267f7047e7548679d151ba055a524
Comment 6 caulier.gilles 2022-08-22 11:03:15 UTC
Git commit 16d885fa095e259e8d70706a521318ca736ff05d by Gilles Caulier.
Committed on 22/08/2022 at 11:01.
Pushed by cgilles into branch 'master'.

add translator language filter
Related: bug 370192

M  +111  -13   core/libs/widgets/text/localizeconfig.cpp

https://invent.kde.org/graphics/digikam/commit/16d885fa095e259e8d70706a521318ca736ff05d
Comment 7 caulier.gilles 2022-08-22 13:33:41 UTC
Git commit a837b75ad502bc261b3e6a489463c274b68adefc by Gilles Caulier.
Committed on 22/08/2022 at 13:32.
Pushed by cgilles into branch 'master'.

Add new settings to list prefered alternative languages in text editor.
Related: bug 370192
FIXED-IN: 8.0.0

M  +18   -30   core/libs/widgets/metadata/utils/altlangstredit.cpp
M  +1    -1    core/libs/widgets/metadata/utils/altlangstredit.h
M  +72   -20   core/libs/widgets/text/localizeconfig.cpp
M  +1    -0    core/libs/widgets/text/localizeconfig.h
M  +12   -1    core/libs/widgets/text/spellcheckcontainer.cpp
M  +6    -4    core/libs/widgets/text/spellcheckcontainer.h

https://invent.kde.org/graphics/digikam/commit/a837b75ad502bc261b3e6a489463c274b68adefc
Comment 8 caulier.gilles 2022-08-22 14:02:05 UTC
Git commit 42e24eb165f505661abddc50fe4fc1abfb8c48c8 by Gilles Caulier.
Committed on 22/08/2022 at 14:00.
Pushed by cgilles into branch 'master'.

Add new static functions to show Localize setup misc page
Related: bug 370192

M  +28   -0    core/showfoto/setup/showfotosetup.cpp
M  +2    -0    core/showfoto/setup/showfotosetup.h
M  +5    -0    core/showfoto/setup/showfotosetupmisc.cpp
M  +2    -0    core/showfoto/setup/showfotosetupmisc.h
M  +28   -0    core/utilities/setup/setup.cpp
M  +2    -0    core/utilities/setup/setup.h
M  +5    -0    core/utilities/setup/setupmisc.cpp
M  +2    -0    core/utilities/setup/setupmisc.h

https://invent.kde.org/graphics/digikam/commit/42e24eb165f505661abddc50fe4fc1abfb8c48c8
Comment 9 caulier.gilles 2022-08-22 16:18:38 UTC
Git commit 649979dad6b47e7ce49e933fc477893da118285e by Gilles Caulier.
Committed on 22/08/2022 at 16:17.
Pushed by cgilles into branch 'master'.

add "more..." action is alternative language and translation language list to open setup localize page
Related: bug 370192

M  +7    -0    core/app/main/digikamapp.cpp
M  +23   -1    core/libs/widgets/metadata/utils/altlangstredit.cpp
M  +5    -0    core/libs/widgets/text/spellchecksettings.cpp
M  +3    -0    core/libs/widgets/text/spellchecksettings.h
M  +7    -0    core/showfoto/main/showfoto.cpp

https://invent.kde.org/graphics/digikam/commit/649979dad6b47e7ce49e933fc477893da118285e