D22069: Localize long number strings

Alexander Potashev noreply at phabricator.kde.org
Mon Jun 24 20:11:28 BST 2019


aspotashev added a comment.


  Dammit, I'm still not on the same page with the review request.
  
  In fact you had to trust your unit test and go fix the code :)
  
    diff --git a/src/klocalizedstring.cpp b/src/klocalizedstring.cpp
    index b1ba745..fed5b8a 100644
    --- a/src/klocalizedstring.cpp
    +++ b/src/klocalizedstring.cpp
    @@ -1198,7 +1198,7 @@ KLocalizedString KLocalizedString::subs(double a, int fieldWidth,
                                             QChar fillChar) const
     {
         KLocalizedString kls(*this);
    -    kls.d->arguments.append(QStringLiteral("%1").arg(a, fieldWidth, format, precision, fillChar));
    +    kls.d->arguments.append(QStringLiteral("%L1").arg(a, fieldWidth, format, precision, fillChar));
         kls.d->values.append(static_cast<realn>(a));
         return kls;
     }

REPOSITORY
  R249 KI18n

REVISION DETAIL
  https://phabricator.kde.org/D22069

To: ngraham, #localization, #frameworks, broulik
Cc: aspotashev, ilic, kde-frameworks-devel, broulik, LeGast00n, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190624/e663c0b6/attachment.html>


More information about the Kde-frameworks-devel mailing list