MS_DOCX (for Microsoft Word)
DOCX (for Microsoft Word (Alpha))
Transifex supports Microsoft Word files (with the extension .docx). These files can be uploaded as either resource files or translation files.
Uploading a resource file
When such files are uploaded in Transifex, their formatting (styles, images, tables, hyperlinks, headers/footers, etc.) is preserved.
The following screen appears when a .docx file is uploaded:
It is essential to select the Microsoft Word (.docx) NEW option in the dropdown list for the formatting of the file to be preserved.
Translating a Microsoft Word resource in the editor
When the source strings are formatted, this is depicted by using <tx> placeholders. If the project maintainer has activated translation checks for the project and the translator does not respect the number and position of these placeholders, a warning or an error will be shown.
If your document contains duplicate strings, Transifex will display only one instance of that string in the editor. Once the translations are done, the generated translation files will have all the duplicate instances translated accordingly.
Downloading a resource file for translation
There are two options to download the resource file to translate it offline:
Select “Download file to translate” from the popup menu. This action will download the resource as a .docx file.
Select “Download file for translation as XLIFF” from the popup menu (for the Growth plan and up). This is the preferred option since the translators can focus only on the strings that need to be translated, no matter the formatting.
The following table outlines what occurs to strings when using the API, CLI, or UI to manipulate translation files depending on download mode.
Upload a translation file
You can either upload the .docx file containing the translations or the translated XLIFF file (if you have downloaded the resource as an XLIFF file).
For the first option, it is advisable to maintain the structure of the resource file while translating offline. An error message will appear if the number of paragraphs in the uploaded translation file does not match the number of paragraphs in the resource file.
Microsoft Word (Alpha)
The .docx files were already supported in Transifex with the Microsoft Word (Alpha) file format. We decided to build a new DOCX parser to parse DOCX documents more efficiently and keep any inline formatting the text might have.
Migrating an existing Microsoft Word resource
To take advantage of the benefits of the improved Microsoft Word file parser, you must upload the same resource file as the new one. Since the file parsing is done differently, there may be a chance that existing translations will not be filled in automatically; in this case, you must copy and paste the translation based on the available TM suggestions in the editor.
Looking for more help? Get support from our Transifex Community Forum!
Find answers or post to get help from Transifex Support and our Community.