Webhelp responsive language checking for Chinese

Post here questions and problems related to editing and publishing DITA content.
remip
Posts: 6
Joined: Thu Jan 18, 2018 5:47 pm

Webhelp responsive language checking for Chinese

Post by remip »

Hi,
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 -->
<if>
<isset property="document.locale"/>
<then>
<!-- Use use propertyregex from antcontrib -->
<propertyregex property="webhelp.language" input="${document.locale}" regexp="(..)" select="\1" defaultvalue="en" override="true"/>
</then>
...
radu_pisoi
Posts: 403
Joined: Thu Aug 21, 2003 11:36 am
Location: Craiova
Contact:

Re: Webhelp responsive language checking for Chinese

Post by radu_pisoi »

Hi,

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
http://www.oxygenxml.com
Post Reply