[Libreoffice-bugs] [Bug 90864] GALLERY: image tooltips/names not translated
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Tue Dec 1 12:22:01 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=90864
Buovjaga <ilmari.lauhakangas at libreoffice.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ilmari.lauhakangas at libreoff
| |ice.org
--- Comment #7 from Buovjaga <ilmari.lauhakangas at libreoffice.org> ---
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:
https://gist.github.com/aditya-sahu/b36dfe02c4f58b869bde18d47030a04a
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.
--
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/20201201/0c869c45/attachment.htm>
More information about the Libreoffice-bugs
mailing list