Create another copy of DITA documents for another languages

Post here questions and problems related to editing and publishing DITA content.
lhsihan
Posts: 35
Joined: Thu Aug 15, 2019 5:31 pm

Create another copy of DITA documents for another languages

Post by lhsihan »

Is there any easy way to generate another copy of DITA documents for another languages? For example, we have below documents for one product with English language:
topic1.dita
topic2.dita
task1.dita
task2.dita
summary.ditamap.


And how can we quickly generate another copy of DITA documents using Chinese language such like updating language setting in DITA files with "zh"? Then we can update other parts of DITA documents later.

Could you please give me a hand on this? Thanks a lot.
Radu
Posts: 9436
Joined: Fri Jul 09, 2004 5:18 pm

Re: Create another copy of DITA documents for another languages

Post by Radu »

Hi,

If you open the DITA Map in the DITA Maps manager view, you can right click the root element and choose "Export DITA Map" and this will export the content to a custom folder that you choose.
After you have the duplicate content, in the Oxygen main menu Tools->"XMl Refactoring" dialog there is an "Add/change attribute" operation. You can invoke it with the settings:

Code: Select all

Parent Element: /*
Local name:lang
Namespace:http://www.w3.org/XML/1998/namespace
Value:zh-CN
and then you will choose the scope of the operation, on what folder it should be applied.

Also an older blog post I wrote about DITA and translation:

https://blog.oxygenxml.com/2018/05/tran ... oject.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
lhsihan
Posts: 35
Joined: Thu Aug 15, 2019 5:31 pm

Re: Create another copy of DITA documents for another languages

Post by lhsihan »

Thanks @Radu a lot.
Post Reply