D14940: kformattest: Use plural suffix (s) consequently
Albert Astals Cid
noreply at phabricator.kde.org
Thu Aug 23 18:37:30 BST 2018
aacid added a comment.
In D14940#313853 <https://phabricator.kde.org/D14940#313853>, @habacker wrote:
> I see - Qt lacks support for choosing the correct translation string for floating point values like this:
>
> qreal value = 1.0;
> tr("%n second(s)", nullptr, value).
>
> which should return **1.0 second**
Are you sure about that? Most answer i find online say 1.0 seconds is the right way to write it, basically, because if you write 1.0 seconds is because you know it's not 1 second, but something that rounds to 1.0 seconds, i.e in the 0.96 to 1.04 range with a precision of one digit.
REPOSITORY
R244 KCoreAddons
REVISION DETAIL
https://phabricator.kde.org/D14940
To: habacker, aacid
Cc: kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180823/e256cf48/attachment.html>
More information about the Kde-frameworks-devel
mailing list