Bug 340385 - XMI localization tools
Summary: XMI localization tools
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 2.13.2
Platform: Other Linux
: NOR wishlist
Target Milestone: 2.15 (KDE Applications 14.12)
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-27 08:45 UTC by Ralf Habacker
Modified: 2014-11-26 12:40 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 2.14.80 (KDE 14.11.80)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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