Bug 234067

Summary: Annoying list of languages to select from when entering picture captions [patch]
Product: [Applications] digikam Reporter: hadmut
Component: Tags-CaptionsAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: caulier.gilles, wazery
Priority: NOR    
Version: 2.5.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 2.6.0
Sentry Crash Report:
Bug Depends on:    
Bug Blocks: 283491    
Attachments: Enable setting the language codes
reviewed patch for libkexiv2

Description hadmut 2010-04-11 17:04:49 UTC
Version:           1.0.0 (using KDE 4.3.5)
OS:                Linux
Installed from:    Ubuntu Packages

Hi,

when editing the metadata of a picture, i.e. opening the Caption/Tags dialog, Description tab, there is a text field to enter Captions. It comes with a little selector for choosing the language. 

This selector offers dozens of languages to choose from. 

If you want to enter multi language captions for each of a collection of images, e.g. german and english, you always have to pick the languages from that veeeery long list. Highly annoying and time wasting. 

Would be better to select the languages to choose in the settings and then offer separate text fields for each of them.
Comment 1 Marcel Wiesweg 2011-01-26 12:27:03 UTC
One quick and easy solution would be to automatically store recently used languages and offer them at the top of the list.
Comment 2 caulier.gilles 2011-01-26 12:35:45 UTC
Marcel, I vote with this solution...

Gilles
Comment 3 Islam Wazery 2012-01-09 03:41:18 UTC
Here is a patch for lib libkexiv2,
Comment 4 Islam Wazery 2012-01-09 03:50:17 UTC
Created attachment 67602 [details]
Enable setting the language codes

Here is a patch for libkexiv2 to fix this bug, and be sure when applying this patch that you applied my patch in the bug #283491.
Comment 5 caulier.gilles 2012-01-09 11:01:27 UTC
Created attachment 67609 [details]
reviewed patch for libkexiv2

Islam,

Look your patch reviewed, including bump of libkexiv2 version ID to prevent broken digiKam compilation with old libkexiv2. This include too coding polish.

Gilles Caulier
Comment 6 caulier.gilles 2012-01-09 12:30:17 UTC
Git commit f3ea9a0d518d38bbe1f08ca66aa5b00e74daa9cb by Gilles Caulier.
Committed on 09/01/2012 at 13:20.
Pushed by cgilles into branch 'master'.

apply patch from 67613 to add libkexiv2 method to handle current language code property
BUGS: 234067

M  +4    -3    CMakeLists.txt
M  +14   -2    libkexiv2/altlangstredit.cpp
M  +6    -4    libkexiv2/altlangstredit.h

http://commits.kde.org/libkexiv2/f3ea9a0d518d38bbe1f08ca66aa5b00e74daa9cb