Page 1 of 1

Create another copy of DITA documents for another languages

Posted: Wed Sep 11, 2019 10:11 am
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.

Re: Create another copy of DITA documents for another languages

Posted: Thu Sep 12, 2019 9:29 am
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

Re: Create another copy of DITA documents for another languages

Posted: Mon Sep 16, 2019 4:26 am
by lhsihan
Thanks @Radu a lot.