Page 1 of 1

Can't find the "Parent topic" localization string

Posted: Tue May 01, 2018 3:37 am
by mdslup
Using Oxygen 20 webhelp classic. When I have a series of nested topics, the web output creates a link called "Parent topic". This is great. When I change the args.default.language parameter to something with a localization file, for example, fr-fr, this link displays in French as "Sujet parent". Again, this is correct behavior.

Looking at ..plugins\com.oxygenxml.webhelp.classic\oxygen-webhelp\xsl\dita\dita2webhelp.xsl, I can see that this string is called "Parent topic".

But, I CAN NOT find the string with this name anywhere in the localization folder,

Where is this string defined?

Re: Can't find the "Parent topic" localization string

Posted: Tue May 01, 2018 3:58 pm
by radu_pisoi

Because the WebHelp plugin extends the DITA-OT XHTML plugin, it inherits a set of static labels specific to the XHTML plugin like Parent topic.

The WebHelp static labels are collected from two locations:
  • DITA-OT-DIR/xsl/common folder - DITA-OT's default translations (generated text for note, fig, and table elements).
  • DITA-OT-DIR/plugins/com.oxygenxml.webhelp.classic/oxygen-webhelp/resources/localization folder - These translations are contributed by the WebHelp plugin and extend the default ones provided by DITA-OT. The labels defined in this folder take precedence over the DITA-OT defaults.
The Parent topic label is defined in string files from DITA-OT/xsl/common folder, see DITA-OT2.x/xsl/common/strings-en-us.xml.

If you want to modify the existing strings or add add a new language please follow the Localizing the Interface of DITA Map to WebHelp Classic Output topic from our documentation.

Re: Can't find the "Parent topic" localization string

Posted: Wed May 02, 2018 12:56 am
by mdslup
Yes, perfect.

Radu, thank you so much. I will thoroughly read that "Localizing the Interface" page, I'm not sure how I missed that.