diff options
author | Mike FABIAN <mike.fabian@basyskom.de> | 2010-09-29 18:36:46 +0200 |
---|---|---|
committer | Mike FABIAN <mike.fabian@basyskom.de> | 2010-09-30 15:54:10 +0200 |
commit | 8afa3f64dd7126483eea481360fecb60424f3350 (patch) | |
tree | 03a3878cb49151ab9053770353baacad95208312 /doc | |
parent | b00e1ff690be89b8befc4457000c46bbfc4e3f1a (diff) |
Changes: fix wrong description of %L1 in i18n.dox.
RevBy: TrustMe
Details:
%L1 does work correcly with doubles of course, I just tested
it wrong.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/i18n.dox | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/doc/src/i18n.dox b/doc/src/i18n.dox index f5dbaaab..de12d8c1 100644 --- a/doc/src/i18n.dox +++ b/doc/src/i18n.dox @@ -708,14 +708,9 @@ would be formatted in that case: // and not “123,456”, the place holders %1 to %99 // never do any automatic locale specific number formatting. - translation.arg(123456.7).arg(123456.7); - // The line above returns “١٢٣٬٤٥٧ 123457” - // - // Note that the formatted result shows only the integer part of the - // floating point numbers. - // Number formatting using %L1 to %L99 or %1 to %99 works - // only for integers. - + translation.arg(123456.7, 0, 'g', 10).arg(123456.7, 0, 'g', 10); + // The line above returns “١٢٣٬٤٥٦٫٧ 123456.7” + MLocale locale; translation.arg(locale.formatNumber(123456.7)).arg(locale.formatNumber(123456.7)); // The line above returns “١٢٣٬٤٥٦٫٧ ١٢٣٬٤٥٦٫٧” |