D22069: Localize long number strings

Karl Ove Hufthammer noreply at phabricator.kde.org
Thu Oct 24 18:39:32 BST 2019


huftis added a comment.


  In D22069#553556 <https://phabricator.kde.org/D22069#553556>, @huftis wrote:
  
  > In D22069#553527 <https://phabricator.kde.org/D22069#553527>, @huftis wrote:
  >
  > > For non-localised formatting of numbers, use QString::number() instead of QLocale::toString(), as detailed in https://api.kde.org/frameworks/ki18n/html/prg_guide.html#subs_notes.
  >
  >
  > I think I used the wrong link there. This one is more up to date and useful: https://techbase.kde.org/Development/Tutorials/Localization/i18n_Semantics
  
  
  According to https://bugs.kde.org/show_bug.cgi?id=413390, the **first** link is the most up to date one. So use `QString::number()` instead of `<numid>%1</numid>` (which doesn’t work anymore). Not as elegant, perhaps, but it has the added advantage that it doesn’t break string freeze.

REPOSITORY
  R249 KI18n

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

To: ngraham, #localization, #frameworks, broulik, aacid
Cc: flherne, dfaure, aacid, huftis, safaalfulaij, mikeroyal, aspotashev, ilic, kde-frameworks-devel, broulik, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20191024/a062dead/attachment.html>


More information about the Kde-frameworks-devel mailing list