[Libreoffice-bugs] [Bug 50421] UI: "Check for Updates" menu leads to an unusable dialog (shows "%PERCENT%")

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Sep 26 15:23:31 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=50421

--- Comment #63 from Caolán McNamara <caolanm at redhat.com> ---
(In reply to Julien Nabet from comment #60)
> Adolfo: I noticed 2 locations in Pootle where RID_UPDATE_STR_PERCENT
> (msgid="%PERCENT%") is translated by "%PERCENT %".

FWIW it looks to me that the "%PERCENT" part is intended to be replaced at
runtime by a number so for the English case %PERCENT% becomes e.g. "50%" which
is correct as there isn't a space between number and % in English locales,
while its common in other locales to display "50 %" so the above translation is
probably good.

It looks pretty fragile to me to expect translators to get this right from so
little context, include/i18nutil/unicode.hxx has "formatPercent" which looks a
more sensible way to just format this percentage according to a locales rules.
I suggest removing that RID_UPDATE_STR_PERCENT translation and use
formatPercent instead.

Presumably though the crashing/handing issue is unrelated to the unsightly
%PERCENT% label

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210926/ad39b108/attachment.htm>


More information about the Libreoffice-bugs mailing list