summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@libreoffice.org>2018-05-03 13:00:58 -0300
committerOlivier Hallot <olivier.hallot@libreoffice.org>2018-05-07 21:06:12 +0200
commit42b8d1c00e83c3907da7d14d21ebc0d203233a78 (patch)
tree0b972988babfe7181a96165a3de64a4873c74fa1 /l10ntools
parentc3634d29d340b6f2cd1a43596d1499442b78514c (diff)
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@libreoffice.org> Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/xmlparse.cxx5
1 files changed, 3 insertions, 2 deletions
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 )
{