Using XML Content Translation tool
Is it possible to use Xml Content Translator tool to translate the texts in our HelpSmith project into other languages?
What we need to do is:
- Translate a copy of the existing help project.
- Translate texts with an automated translation service like Google Translate.
- Edit the translated texts manually to improve quality.
- Translate the text and retain the text style and formatting attributes.
HelpSmith allows you to save your help project to the .HSMP format which stores topics, templates, and project settings as a collection of separate XML files.
This means that you can edit and translate a copy of the help project by using external text editors like Notepad++, Atom, and by using external translation tools including XML Content Translator.
Can you provide more instructions for using this tool for translating a HelpSmith help project?
Create a copy of the original help project
You should create a copy of the help project that you want to translate.
Please note that both the original help project and the help project copy (which will translated) should be stored in the .HSMP format (i.e. as a collection of separate .XML files).
Alternatively, to create a help project copy, you can copy the folder containing the project's files by using Windows Explorer, or another file manager program that you prefer.
If your help project is already stored in the .HSMP format, you can simply skip this step.
Remark: Please note that the XML-based .HSMP format is available in HelpSmith Ultimate and HelpSmith Terminal Server editions.
How to open a topic for translation in XML Content Translator
XML Content Translator program allows you to open an .XML file written in the original language, and the copy of that original file that will be translated into another language.
Thus, to translate a topic or any other .XML file of the help project, you can use the following instructions:
Remark: You can find the .XML files of the topics in the Topics sub-folder which is contained within the folder with your .HSMP help project.
How to translate a topic in XML Content Translator
Using the XML Content Translator tool, you can translate the XML file which contains the content of a topic by using Google Translate (for automated translation), and also type and edit the translated texts manually.
Find the XML tags that contain the texts
Remark: For example, you can find XML tags named "Text", "Link", etc.
Translate the selected text with Google Translate
XML Content Translator allows you to translate a line of text by using the Google Translate service.
Remark: If the original text contains space characters in the start/end of the text, the translated text may loose these spaces. To avoid this, you should restore the spaces manually, as explained below.
Edit the translated text manually
You can also translate a text line by editing the text manually:
Remark: This option allows you to improve the quality of the translation and also restore the space characters which can be lost as a result of the automatic translation.
Save the changes to the modified XML file
You should save the changes to the destination XML file as follows:
How to restore space characters
If original text contains space characters in the left and/or in the right side of the text, after the text is translated by using Google Translate, those spaces can be lost.
To restore these spaces, you can edit the translated text manually in the bottom side of the XML Content Translator window.