Bug 340385

Summary: XMI localization tools
Product: [Applications] umbrello Reporter: Ralf Habacker <ralf.habacker>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: 2.13.2   
Target Milestone: 2.15 (KDE Applications 14.12)   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 2.14.80 (KDE 14.11.80)
Sentry Crash Report:

Description Ralf Habacker 2014-10-27 08:45:40 UTC
For development projects, which need to present umbrello content in different languages or for machine generated translated screenshots in umbrello documentation it would be nice to have a way to translate xmi files.

An implementation could use tools similar used by the KDE docbook  internationalization support (xml2pot and po2xml)  to:
- extract language specific texts from xmi files and convert it into a pot file
- apply translated po files to the untranslated xmi file to generate a translated xmi file

The translation itself could be performed by common known translation tools like klocalize.

Reproducible: Always
Comment 1 Ralf Habacker 2014-10-27 09:18:48 UTC
Git commit 5c8eceddd8026399753d19db4dcd45d3e3ff17d0 by Ralf Habacker.
Committed on 29/04/2014 at 11:42.
Pushed by habacker into branch 'master'.

Add command line tools po2xmi and xmi2pot.

- xmi2pot extracts all messages from a xmi file into a pot file format
- po2xmi takes an untranslated xmi file and a translated po file to generate a localized xmi file

M  +2    -0    CMakeLists.txt
A  +19   -0    tools/CMakeLists.txt
A  +44   -0    tools/po2xmi.cpp     [License: GPL (v2+)]
A  +289  -0    tools/shared.cpp     [License: GPL (v2+)]
A  +44   -0    tools/shared.h     [License: GPL (v2+)]
A  +83   -0    tools/xmi2pot.cpp     [License: GPL (v2+)]

http://commits.kde.org/umbrello/5c8eceddd8026399753d19db4dcd45d3e3ff17d0