How To Create a Translatable Website
Here we explain the procedure for creating a website which is easy to translate and maintain. It's fairly technical.
Creating a translatable website with Dita xml can be great fun. Start by defining the sitemap, i.e. website structure, and then gradually write the pages you need. You can add pages to the structure or edit existing pages as you go along.
Sitemap
Before you dive into the ditamap and Dita xml files, think about how you want to structure your website.
You can do this away from the computer with a diagram on a sheet of paper. You'll probably have several main sections (e.g. Products, Services, About us, etc.) and then sub-sections under each of these sections.
- Creating the Website Sections and Pages
Start by creating the Dita topic files for your website sections and sub-sections (web pages). You'll need to have these files, even if they are empty, to set up the ditamap which is the overview of all your web pages (sitemap). ... 更多 - Making the Sitemap with a Ditamap
Ditamaps are used to make collections of topics which are linked together. ... 更多 - Translating the Topic Files
Translating the topic is fairly straightforward but you must change the xml:lang attribute to ensure the correct localised strings are pulled when the files are processed by the Open Toolkit. ... 更多