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.
to run treex for checking, do the following ~/git/core/bin/run treex -i ~/git/core/helpcontent2/source/auxiliary/sbasic.tree -o test_tree.pot where treex is located in workdir/LinkTarget/Executable/treex and check test_tree.pot. it is a pot file.
Indeed this is an important new feature that we should have in the l10n tools to avoid sending to translators strings that do not need to be translated. This is specially the case with Basic command names.