Page 1 of 1

Webhelp responsive language checking for Chinese

Posted: Mon Jan 29, 2018 7:51 pm
by remip
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"/>

Re: Webhelp responsive language checking for Chinese

Posted: Tue Jan 30, 2018 5:00 pm
by radu_pisoi

The procedure for localizing the WebHelp interface is described in our user manual: ... 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.