dia2xliff
Export Dia diagram text to XLIFF 2.2 and import translations back
dia2xliff is a lightweight open-source Python command-line tool for translating diagrams created with the Dia diagram editor. It extracts translatable text from uncompressed .dia files and exports it to XLIFF 2.2 for translation in compatible CAT tools. After translation, dia2xliff imports the translated segments back into the Dia file and restores them to their original text elements. It preserves multiline text and XML special characters, automatically creates a backup of the original Dia file during export, supports source and target language codes from the command line, and requires no external Python dependencies. dia2xliff requires Python 3.8 or later and Dia files saved in uncompressed XML format. It is released under the MIT License and is intended for translators, localization professionals, and technical authors who need to include Dia diagrams in CAT-based translation workflows.