Port of KLocale::SignPosition

Olivier Churlaud olivier at churlaud.com
Sat Jan 6 15:54:45 UTC 2018


Hi, 

There is here something to port to KF5:

 https://cgit.kde.org/kmymoney.git/tree/kmymoney/kmymoneyutils.cpp#n190

.and way more a little everywhere.

Since KLocale disappeared in favour of QLocale, the ParensAround, BeforeMoney, 
etc. enums that format the money value with the correct sign position are 
directly defined through the system locale.

Does it still make sense to have all this complexity in the sign position 
formating? Or could we just use the OS locale configuration? 

If no, what is the strategy there? What could go wrong? I haven't found the 
way a user can chose the type of formatting KMyMoney uses...

Thx for the info
Olivier




More information about the KMyMoney-devel mailing list