Bug 466882

Summary: kmymoney/kmymoneyutils.cpp:564 doubt about i18n string "Do you want to add [...] as payer"
Product: [Applications] kmymoney Reporter: Oliver Kellogg <okellogg>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: minor CC: ralf.habacker
Priority: NOR    
Version First Reported In: git (master)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 5.1.0
Sentry Crash Report:

Description Oliver Kellogg 2023-03-05 12:01:55 UTC
Git master kmymoney/kmymoneyutils.cpp function KMyMoneyUtils::newPayee around line 564:

562    if (newnameBase != i18n("New Payee")) {
563        // Ask the user if that is what he intended to do?
564        const auto msg = i18n("<qt>Do you want to add <b>%1</b> as payer/receiver?</qt>", newnameBase);
565
566        if (KMessageBox::questionTwoActions(nullptr, msg, i18n("New payee/receiver"), KMMYesNo::yes(), KMMYesNo::no(), "NewPayee")

The surrounding context is about "New Payee" and "New payee/receiver" but `msg` contains
    "Do you want to add <b>%1</b> as payer"
I suspect "payer" should be "payee".
Please check.
Comment 1 Thomas Baumgart 2023-03-05 13:25:09 UTC
Git commit 5b6eafc7a46583e087a3122baf898e2c40677397 by Thomas Baumgart.
Committed on 05/03/2023 at 13:24.
Pushed by tbaumgart into branch 'master'.

Exchange payer with payee

M  +1    -1    kmymoney/kmymoneyutils.cpp

https://invent.kde.org/office/kmymoney/commit/5b6eafc7a46583e087a3122baf898e2c40677397