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