https://bugs.documentfoundation.org/show_bug.cgi?id=147427

            Bug ID: 147427
           Summary: [NEWHELP] Add localize attribute to Help tree <topic>
                    tag.
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Documentation
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: olivier.hal...@libreoffice.org
                CC: olivier.hal...@libreoffice.org
            Blocks: 97629

Add localize= attribute to the <topic> tag of the Help contents tree.

localize="[false|true]"

DTD:

<!ELEMENT topic (#PCDATA)> 
<!ATTLIST topic
id CDATA #REQUIRED
localize CDATA #IMPLIED
>

Default is true

Code fragment (telegram channel, Rafael lima)

Indeed it is much more complicated than I expected. It seems the .tree files
are processed here:
https://opengrok.libreoffice.org/xref/core/l10ntools/source/treemerge.cxx?r=67478f9d#28

You could try something like:
xmlChar* pLocalize = xmlGetProp(pCurrent, reinterpret_cast<const
xmlChar*>("localize"));

if (localize) {
    break;
}

If the property "localize" exists, than nothing needs to be done.


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=97629
[Bug 97629] [META] Help Content Modernization
-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to