[Libreoffice-commits] core.git: l10ntools/source

Olivier Hallot olivier.hallot at libreoffice.org
Mon May 7 19:06:33 UTC 2018


 l10ntools/source/xmlparse.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 42b8d1c00e83c3907da7d14d21ebc0d203233a78
Author: Olivier Hallot <olivier.hallot at libreoffice.org>
Date:   Thu May 3 13:00:58 2018 -0300

    tdf#116745 handle <object> element when localizing
    
    The <object> element was brought to Pootle by wrapping it in a
    <paragraph> element. However, the localized build helper changed
     < and > to HTML entities, which broke the rendering of the localized
    <object> element.
    
    This patch addresses the issue and keep the < and > as is.
    
    Change-Id: If03c02b8a4170284a5f7e5caa58709b3832151ed
    Reviewed-on: https://gerrit.libreoffice.org/53810
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Olivier Hallot <olivier.hallot at libreoffice.org>

diff --git a/l10ntools/source/xmlparse.cxx b/l10ntools/source/xmlparse.cxx
index 297b736dae22..f8faf8538089 100644
--- a/l10ntools/source/xmlparse.cxx
+++ b/l10ntools/source/xmlparse.cxx
@@ -1058,11 +1058,12 @@ icu::UnicodeString lcl_QuotRange(
 
 bool lcl_isTag( const icu::UnicodeString& rString )
 {
-    static const int nSize = 14;
+    static const int nSize = 15;
     static const icu::UnicodeString vTags[nSize] = {
         "ahelp", "link", "item", "emph", "defaultinline",
         "switchinline", "caseinline", "variable",
-        "bookmark_value", "image", "embedvar", "alt", "sup", "sub" };
+        "bookmark_value", "image", "object",
+        "embedvar", "alt", "sup", "sub" };
 
     for( int nIndex = 0; nIndex < nSize; ++nIndex )
     {


More information about the Libreoffice-commits mailing list