<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:ilmari.lauhakangas@libreoffice.org" title="Buovjaga <ilmari.lauhakangas@libreoffice.org>"> <span class="fn">Buovjaga</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - GALLERY: image tooltips/names not translated"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=90864">bug 90864</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>ilmari.lauhakangas@libreoffice.org
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - GALLERY: image tooltips/names not translated"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=90864#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - GALLERY: image tooltips/names not translated"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=90864">bug 90864</a>
from <span class="vcard"><a class="email" href="mailto:ilmari.lauhakangas@libreoffice.org" title="Buovjaga <ilmari.lauhakangas@libreoffice.org>"> <span class="fn">Buovjaga</span></a>
</span></b>
<pre>The way to implement this would be to include the gallery item titles and their
localisations inside the gallery packages. I guess if the gallery code
renovation is finished, this will become a more pleasant task:
<a href="https://gist.github.com/aditya-sahu/b36dfe02c4f58b869bde18d47030a04a">https://gist.github.com/aditya-sahu/b36dfe02c4f58b869bde18d47030a04a</a>
The current code for reading the titles seems to be in
svx/source/gallery2/galobj.cxx
void SgaObjectSvDraw::ReadData( SvStream& rIn, sal_uInt16& rReadVersion )
{
SgaObject::ReadData( rIn, rReadVersion );
if( rReadVersion >= 5 )
aTitle = read_uInt16_lenPrefixed_uInt8s_ToOUString(rIn,
RTL_TEXTENCODING_UTF8);
}
and then read_uInt16_lenPrefixed_uInt8s_ToOUString and friends in
include/tools/stream.hxx
/// Attempt to read a pascal-style length (of type prefix) prefixed sequence of
/// 8bit units to an OString, returned OString's length is number of units
/// successfully read.</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>