This patch add a No/100 to the text when a check has not fratcoinal part Also it captalizes the first letter to all on the number in text to be printed.
ClosedPublic

Authored by philhopkins on Oct 29 2019, 3:20 AM.

Details

Summary

It goes with KDE bug 412513

Captalizes the first letter for each number to be printed in text and for checks that have no fractional part prints No/100

Diff Detail

Repository
R261 KMyMoney
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 18293
Build 18311: arc lint + arc unit
philhopkins requested review of this revision.Oct 29 2019, 3:20 AM
philhopkins created this revision.
philhopkins edited the summary of this revision. (Show Details)Oct 29 2019, 3:25 AM
philhopkins added a reviewer: KMyMoney.
tbaumgart accepted this revision as: tbaumgart.Nov 1 2019, 2:12 PM
tbaumgart added a subscriber: tbaumgart.

Looks good to me. I have to admit that the whole logic seems very English centric and would not really apply well to a German or French translation from what I see. E.g. 92 in French translates to 80+12 and in German 92 translates to 2 and 90.

This revision is now accepted and ready to land.Nov 1 2019, 2:12 PM

I just filed a wishlist (Bug 413713) to make the number to text conversion language specific. I also wonder if Bug 255492 (KMyMomney's currency system should be ported to use KDE currency support) might be relevant to this issue.

This revision was automatically updated to reflect the committed changes.

Just out of curiosity, is the No/100 translatable in cases where the local currency is not usually reported to two decimal places?