generating localized PDF; xml:lang isn't passed from map to
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 10
- Joined: Fri May 03, 2013 7:53 pm
generating localized PDF; xml:lang isn't passed from map to
I had been informed that when using the org.dita.pdf2 plugin, a setting of @xml:lang in a map (mine is set to 'zh-tw') would propagate through the topics in the map and result in the right string values being calling from the right file (in my case zh_TW.xml, which I had translated from the en.xml) from the org.dita.pdf2/cfg/common/vars folder.
However, this is not happening for me. I have the 'xml:lang="zh-tw"' setting in my map, and I know it's being read because font settings that depend on it are correct, but all the variable strings like 'Figure', 'Table', 'Note', etc. are in English. (I'm using DITA-OT 1.6.3.)
Was my information wrong? Does every topic file have to have the @xml:lang set in order for the PDF to work? If not, how do I get the value to propagate?
Thanks.
However, this is not happening for me. I have the 'xml:lang="zh-tw"' setting in my map, and I know it's being read because font settings that depend on it are correct, but all the variable strings like 'Figure', 'Table', 'Note', etc. are in English. (I'm using DITA-OT 1.6.3.)
Was my information wrong? Does every topic file have to have the @xml:lang set in order for the PDF to work? If not, how do I get the value to propagate?
Thanks.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: generating localized PDF; xml:lang isn't passed from map
Post by sorin_ristache »
Hello,
Yes, your information was wrong. Each topic defaults to English (xml:lang="en") if no explicit language is set in the topic file. Please set the xml:lang="zh-tw" attribute in every topic file in order to have the labels translated in the PDF output.
Yes, your information was wrong. Each topic defaults to English (xml:lang="en") if no explicit language is set in the topic file. Please set the xml:lang="zh-tw" attribute in every topic file in order to have the labels translated in the PDF output.
Regards,
Sorin
<oXygen/> XML Editor Support
Sorin
<oXygen/> XML Editor Support
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)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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