Webhelp responsive language checking for Chinese

Posts: 6
Joined: Thu Jan 18, 2018 5:47 pm

Webhelp responsive language checking for Chinese

Post by remip » Mon Jan 29, 2018 7:51 pm

We had trouble in getting some Chinese localized strings into the responsive webhelp pages produced by the oXygen plugin.
We currently have 2 variants (zh-cn and zh-tw). By default, the build_dita.xml file will take only the first 2 characters of the language definition (see code below). Although it works with most of the languages, it is causing problem with Chinese or any language variants with a dedicated language file (en-us, en-gb).

Any rational behind your code decision?

Code: Select all

    <!-- Set webhelp.language property -->
<isset property="document.locale"/>
<!-- Use use propertyregex from antcontrib -->
<propertyregex property="webhelp.language" input="${document.locale}" regexp="(..)" select="\1" defaultvalue="en" override="true"/>

Posts: 374
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova

Re: Webhelp responsive language checking for Chinese

Post by radu_pisoi » Tue Jan 30, 2018 5:00 pm


The procedure for localizing the WebHelp interface is described in our user manual:
https://www.oxygenxml.com/doc/versions/ ... hing2.html

I cannot reproduce the problem reported by you following the above procedure, maybe you forgot to run the DITA OT Integrator, step 3 from the above procedure.

Regarding to the code you have referring. Yes, it is not very clear why only the first two letters are handled. I will register an issue on our side to analyze it.
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger

Post Reply