Can't find the "Parent topic" localization string

mdslup
Posts: 110
Joined: Tue Mar 06, 2018 1:34 am

Can't find the "Parent topic" localization string

Post by mdslup » Tue May 01, 2018 3:37 am

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,
..plugins\com.oxygenxml.webhelp.classic\oxygen-webhelp\resources\localization

Where is this string defined?

radu_pisoi
Posts: 343
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

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

Post by radu_pisoi » Tue May 01, 2018 3:58 pm

Hi,

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.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

mdslup
Posts: 110
Joined: Tue Mar 06, 2018 1:34 am

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

Post by mdslup » Wed May 02, 2018 12:56 am

Yes, perfect.

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

Thanks.

Post Reply