[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-i18n-doc
Subject: D13219: Locale-aware formatting of numbers on status bar
From: Karl Ove Hufthammer <noreply () phabricator ! kde ! org>
Date: 2018-06-15 18:32:45
Message-ID: b8480fc9a97b7c9f879dbdc8aba837d8 () localhost ! localdomain
[Download RAW message or body]
[Attachment #2 (text/plain)]
huftis added a comment.
In D13219#278789 <https://phabricator.kde.org/D13219#278789>, @ltoscano wrote:
> https://api.kde.org/frameworks/ki18n/html/index.html references the programmer's \
guide: > https://api.kde.org/frameworks/ki18n/html/prg_guide.html
According to this,
> Integer arguments will be by default formatted as if they denote an amount, \
according to locale rules (thousands separation, etc.)
So shouldn't the original code, for example
statusBarItems.insert(ID_STATUS_TOTAL, i18nc("@info:status message \
entries","Total: %1", total));
work (i.e. be formatted using a thousands separator)?
REPOSITORY
R456 Lokalize
REVISION DETAIL
https://phabricator.kde.org/D13219
To: huftis, aacid, ngraham, ltoscano, shaforostoff, #localization
Cc: kde-i18n-doc, safaalfulaij, ilic, #localization, skadinna, huftis
[Attachment #3 (text/html)]
<table><tr><td style="">huftis added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: \
right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: \
#F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: \
inline-block; border: 1px solid rgba(71,87,120,.2);" \
href="https://phabricator.kde.org/D13219">View Revision</a></tr></table><br \
/><div><div><blockquote style="border-left: 3px solid #8C98B8; color: #6B748C;
font-style: italic;
margin: 4px 0 12px 0;
padding: 8px 12px;
background-color: #F8F9FC;">
<div style="font-style: normal;
padding-bottom: 4px;">In <a \
href="https://phabricator.kde.org/D13219#278789" style="background-color: #e7e7e7; \
border-color: #e7e7e7; border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">D13219#278789</a>, <a \
href="https://phabricator.kde.org/p/ltoscano/" style=" border-color: #f1f7ff;
color: #19558d;
background-color: #f1f7ff;
border: 1px solid transparent;
border-radius: 3px;
font-weight: bold;
padding: 0 4px;">@ltoscano</a> wrote:</div>
<div style="margin: 0;
padding: 0;
border: 0;
color: rgb(107, 116, 140);"><p><a \
href="https://api.kde.org/frameworks/ki18n/html/index.html" class="remarkup-link" \
target="_blank" rel="noreferrer">https://api.kde.org/frameworks/ki18n/html/index.html</a> \
references the programmer's guide:<br /> <a \
href="https://api.kde.org/frameworks/ki18n/html/prg_guide.html" class="remarkup-link" \
target="_blank" rel="noreferrer">https://api.kde.org/frameworks/ki18n/html/prg_guide.html</a></p></div>
</blockquote>
<p>According to this,</p>
<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: \
italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: \
#f8f9fc;"><p>Integer arguments will be by default formatted as if they denote an \
amount, according to locale rules (thousands separation, etc.)</p></blockquote>
<p>So shouldn't the original code, for example</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" \
data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px \
"Menlo", "Consolas", "Monaco", monospace; padding: \
12px; margin: 0; background: rgba(71, 87, 120, \
0.08);">statusBarItems.insert(ID_STATUS_TOTAL, i18nc("@info:status message \
entries","Total: %1", total));</pre></div>
<p>work (i.e. be formatted using a thousands separator)?</p></div></div><br \
/><div><strong>REPOSITORY</strong><div><div>R456 Lokalize</div></div></div><br \
/><div><strong>REVISION DETAIL</strong><div><a \
href="https://phabricator.kde.org/D13219">https://phabricator.kde.org/D13219</a></div></div><br \
/><div><strong>To: </strong>huftis, aacid, ngraham, ltoscano, shaforostoff, \
Localization<br /><strong>Cc: </strong>kde-i18n-doc, safaalfulaij, ilic, \
Localization, skadinna, huftis<br /></div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic