Translation tool, another round

Vincent Béron vberon at mecano.gme.usherb.ca
Sat Oct 4 22:32:06 CDT 2003


Hi all,

Another version, this time implemented more intelligently.

Since wrc already knows how to parse the resource files, it makes sense
to hook in it rather than use a dump and parse it. I added a new debug
flag to wrc to do just that (0x40).

All the functionnality of the bash script is not yet there, there's
still 2-3 things to add, but the base is already in good shape. And it's
way way faster to use (as in a couple seconds rather than almost 10
minutes before).

Already done:
- Reading of resource files (hook into wrc);
- Comparison functions for Windows resources, targetted for translation;
- Checking of differences between different languages with said
comparison functions.

Missing things:
- Languages for which some resources are not localized yet do not appear
at all;
- If both the MASTER and LANG_NEUTRAL languages are found for a kind of
resources, they won't be compared between themselves;
- It'd be nice to output the name of the language rather than it's
number;
- Better incorporation in the build system (Makefiles);
- Summary thing, to put on WineHQ.

The included v5 script runs the new wrc on each .rc file mentionned in
Makefiles. Capture the output to a file (>foo 2>&1) to analyze it for
now.

Any comments before the last stretch?

(Oups, just noticed some TODO comments are in French rather than
English... ah well, they should be gone by Monday or Tuesday anyway)

Vincent
-------------- next part --------------
A non-text attachment was scrubbed...
Name: translation.diff
Type: text/x-patch
Size: 34883 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20031004/cb8f2794/translation.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v5
Type: text/x-sh
Size: 2123 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20031004/cb8f2794/v5.sh


More information about the wine-devel mailing list