<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WONTFIX - UI: Copy about text translated too"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=133775#c9">Comment # 9</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WONTFIX - UI: Copy about text translated too"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=133775">bug 133775</a>
from <span class="vcard"><a class="email" href="mailto:mikekaganski@hotmail.com" title="Mike Kaganski <mikekaganski@hotmail.com>"> <span class="fn">Mike Kaganski</span></a>
</span></b>
<pre>(In reply to Heiko Tietze from <a href="show_bug.cgi?id=133775#c6">comment #6</a>)
<span class="quote">> In cui/source/dialog/about.cxx function IMPL_LINK_NOARG(AboutDialog,
> HandleClick, weld::Button &, void) the two strings m_pEnvLabel and
> m_pUILabel are taken from the actual label. These labels are assigned via
> vcl/source/app/svapp.cxx Application::GetHWOSConfInfo() using VclResId() for
> l10n. No idea how to retranslate. And the function is also used in
> updatefeed.cxx so we cannot just cut l10n.
>
> => not worth the effort</span >
Please make it clean and pretty.
To translate that in Application::GetHWOSConfInfo, just add the second variant
of VclResId to vcl/source/app/svdata.cxx (and resp. header):
<span class="quote">> OUString VclResId(const char* pId, const OUString& rsBcp47LanguageTag)
> {
> return Translate::get(pId, Translate::Create("vcl", LanguageTag(rsBcp47LanguageTag)));
> }</span >
... and add respective argument to Application::GetHWOSConfInfo. Depending if
you put there an empty string or "en-US", it would you either the default
VclResId, or the new one.
The "not worth the effort" and WONTFIX are wrong, that's not pretty with a
doable fix.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>