Bug 388642 - Provide translators a way for using localized representation for placeholders
Summary: Provide translators a way for using localized representation for placeholders
Status: CONFIRMED
Alias: None
Product: frameworks-ki18n
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.41.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Chusslove Illich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-07 07:43 UTC by Safa Alfulaij
Modified: 2018-08-04 09:00 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Safa Alfulaij 2018-01-07 07:43:28 UTC
In Qt you can use %L1 to get the localized representation “123,456” of the number, as %1 gets the normal “123456” version of it. Check: http://doc.qt.io/qt-5/qstring.html#arg-2
This is a big addition that non-latin languages can benefit from. Not sure how that can be coded though...
Comment 1 Karl Ove Hufthammer 2018-08-04 09:00:55 UTC
According to https://api.kde.org/frameworks/ki18n/html/prg_guide.html ‘Integer arguments will be by default formatted as if they denote an amount, according to locale rules (thousands separation, etc.)’. So it shouldn’t be *necessary* to write %L1. 

But using just %1 currently doesn’t work, cf. the discussion at https://phabricator.kde.org/D13219. I think this is just a bug.