Webhelp responsive language checking for Chinese
Post here questions and problems related to editing and publishing DITA content.
Webhelp responsive language checking for Chinese
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?
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>
...
-
- 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.
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
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service