Bug 276921

Summary: Wrong i18n-Parameter in libs/database/databaseconfiglement.cpp
Product: [Applications] digikam Reporter: Torbjörn K. <torbjoern.k>
Component: Usability-i18nAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: caulier.gilles
Priority: NOR    
Version: 2.0.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 2.0.0
Sentry Crash Report:
Attachments: git-diff against master as fix

Description Torbjörn K. 2011-07-01 21:13:09 UTC
Version:           2.0.0 (using Devel) 
OS:                Linux

The second parameter of the i18n calls in libs/database/databaseconfigelement.cpp:241 and :251 are unused.

errorMessage = i18n("The XML in the dbconfig.xml file <filename>%1</filename> is missing the required element <icode>%1</icode>", filepath, element.tagName());

should read "<icode>%2</icode>".

Proposed fix as git-diff against master is attached.

Reproducible: Always

Steps to Reproduce:
-/-


Expected Results:  
should read "<icode>%2</icode>"
Comment 1 Torbjörn K. 2011-07-01 21:14:01 UTC
Created attachment 61545 [details]
git-diff against master as fix
Comment 2 caulier.gilles 2011-07-02 09:03:32 UTC
Git commit d89c7b1f410cd808e73b1395989b41cd397091c9 by Gilles Caulier.
Committed on 02/07/2011 at 11:02.
Pushed by cgilles into branch 'master'.

apply patch #61545
BUGS: 276921

M  +3    -1    NEWS     
M  +2    -2    libs/database/databaseconfigelement.cpp     

http://commits.kde.org/digikam/d89c7b1f410cd808e73b1395989b41cd397091c9