Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/kmymoneyutils.cpp
| Show First 20 Lines • Show All 828 Lines • ▼ Show 20 Line(s) | 828 | KMessageBox::informationList(nullptr, | |||
|---|---|---|---|---|---|
| 829 | i18np("One statement has been processed with the following results:", | 829 | i18np("One statement has been processed with the following results:", | ||
| 830 | "%1 statements have been processed with the following results:", | 830 | "%1 statements have been processed with the following results:", | ||
| 831 | statementCount), | 831 | statementCount), | ||
| 832 | !resultMessages.isEmpty() ? | 832 | !resultMessages.isEmpty() ? | ||
| 833 | resultMessages : | 833 | resultMessages : | ||
| 834 | QStringList { i18np("No new transaction has been imported.", "No new transactions have been imported.", statementCount) }, | 834 | QStringList { i18np("No new transaction has been imported.", "No new transactions have been imported.", statementCount) }, | ||
| 835 | i18n("Statement import statistics")); | 835 | i18n("Statement import statistics")); | ||
| 836 | } | 836 | } | ||
| 837 | | ||||
| 838 | QString KMyMoneyUtils::normalizeNumericString(const qreal& val, const QLocale& loc, const char f, const int prec) | ||||
| 839 | { | ||||
| 840 | return loc.toString(val, f, prec) | ||||
| 841 | .remove(loc.groupSeparator()) | ||||
| 842 | .remove(QRegularExpression("0+$")) | ||||
| 843 | .remove(QRegularExpression("\\" + loc.decimalPoint() + "$")); | ||||
| 844 | } | ||||