Bug 250968 - Different contexts for the same string in the report configuration dialog
Summary: Different contexts for the same string in the report configuration dialog
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: SVN
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-12 14:07 UTC by Cristian Oneț
Modified: 2010-09-12 14:52 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cristian Oneț 2010-09-12 14:07:10 UTC
Version:           SVN trunk (using KDE 4.5.1) 
OS:                Linux

kreportconfigurationfilterdlg:422
m_tabChart->m_comboType->setCurrentItem(i18nc("type of graphic chart", "Line"), false);
will fail if "type of graphic chart", "Line" is translated differently then
"Line", "@item type of chart" which comes from the UI file.
Since the two strings have different contexts is is possible to translated them differently thus obtaining the following behaviour:
1. The user configures a report to be a char of type line
2. He reopens the report configuration dialog
3. The chart type will be blang if the two translated values differ


Reproducible: Always
Comment 1 Cristian Oneț 2010-09-12 14:50:48 UTC
SVN commit 1174446 by conet:

BUG: 250968
Avoid the possibility to have two different translations of the same entity while using that entity as a key.
Use the chart type as a real ID.

 M  +3 -9      dialogs/kreportconfigurationfilterdlg.cpp  
 M  +52 -78    widgets/kmymoneyreportconfigtabchartdecl.ui  
 M  +7 -0      widgets/kmymoneyreportconfigtabimpl.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1174446
Comment 2 Cristian Oneț 2010-09-12 14:52:30 UTC
SVN commit 1174448 by conet:

BUG: 250968
Avoid the possibility to have two different translations of the same entity while using that entity as a key.
Use the chart type as a real ID.
Backport to the stable branch.

 M  +3 -9      dialogs/kreportconfigurationfilterdlg.cpp  
 M  +52 -78    widgets/kmymoneyreportconfigtabchartdecl.ui  
 M  +7 -0      widgets/kmymoneyreportconfigtabimpl.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1174448