itools.odf: An Enterprise Document Translation Infrastrucure
AbstractThe itools library includes an XML engine and localization tools to extract messages, and merge translations back into a copy of the source document.he OpenDocument Format (ODF) is mostly an XML document with a clean separation of contents, style and layout. The idea is to implement the semantics of the OpenDocument XML namespace and reuse the internationalization infrastructure from itools. Goals
StatusAccepted and merged in the stable branch. Browse the source code UsageInstall itools and the gettext package from your system. Extracting text$ igettext-extract.py document.odt > locale.pot Add a new translation$ cp locale.pot pt.po Update an existing translationIf the master document changes: $ msgmerge -U -s pt.po locale.pot The Human TranslatorEditing the XX.po files... No help is provided here. :-) The Build Process$ igettext-build.py document.odt pt.po -o document_pt.odt AppendixTo automatize the process an option is to write a Makefile. |