Vincent, your tool has a little problem: It isn't clear where I'm meant to run it from. Fromt the wine source root, I get a message saying that ../../tools/wrc doesn't exist, putting it in a directory 2 levels down (So that ../../tools/wrc does exist) I get this
[ivan@localhost wrc]$ ./01-verif-rc2__charset_ISO-8859-15 Could not open rsrc.rc grep: xx????: No such file or directory DIALOG: grep: xx????: No such file or directory Ressource type unknown: [ivan@localhost wrc]$
I'm may be missing something obvious. The translation.sh that Dimi sent is much better (For now), for a start it works, but it is so slow, something faster (Maybe something that can be compiled?) would be very nice.
Le lun 22/09/2003 à 12:32, Ivan Leo Murray-Smith a écrit :
Vincent, your tool has a little problem: It isn't clear where I'm meant to run it from. Fromt the wine source root, I get a message saying that ../../tools/wrc doesn't exist, putting it in a directory 2 levels down (So that ../../tools/wrc does exist) I get this
Yes, it's a rough draft. rsrc.rc was the more common resource file for the dlls/programs I started with. Feed the name of the file as arg if it's something different. For the dir, I think there's only one or two times in the tree where resource files are not 2 dirs deep. What would be needed is couple the functionnality with find, and get the results in a nice summary.
The output format is rather cryptic too, with numbers instead of languages and some implicit ID's not in the original resource files. Workarounds for both are easy, but for a start I wanted to focus on detecting differences.
Dimi's tag could also be added.
I'm may be missing something obvious. The translation.sh that Dimi sent is much better (For now), for a start it works, but it is so slow, something faster (Maybe something that can be compiled?) would be very nice.
Dimi's script is slow because it queries the CVS server for each processed file. Even compiled it won't be faster.
Vincent
On Mon, 22 Sep 2003, Ivan Leo Murray-Smith wrote:
The translation.sh that Dimi sent is much better (For now), for a start it works, but it is so slow, something faster (Maybe something that can be compiled?) would be very nice.
It is slow because it works with CVS to figure things out. If you have a local copy of the cvs tree (maintained through cvsup), it's not that slow. On my lowly 600MZ box, it takes about 15sec to complete, starting from a cold cache:
[dimi@dimi wine.src]$ time tools/translations_status Legend: '.' -- translation appears to be uptodate 'x' -- translation needs updating '?' -- unknown status (file not under CVS control) ' ' -- translation missing Master language is En
Module / Language Ca Cn Cs Da De En Eo Es Fi Fr Hu It Ja Ko Nl No Pl Pt Ru Si Sk Sv Sw Va Wa Xx Zh dlls/avifil32 . . . . . . . dlls/comctl32 . . . . . . . . . dlls/commdlg . . . . . . . . . . . . . . . . . . . . . . . . dlls/msvideo/msrle32 . . . . . . . dlls/serialui . . dlls/setupapi . . dlls/shell32 . . . . . . . . . . . . . . . . . . . . . . . . dlls/user/resources . . . . . . . . . . . . . . . . . . . . . . . dlls/wineps . . . . . . . . . dlls/wininet . . . . . dlls/winmm . . . . . . . . programs/clock . . . . . . . . . . . . . . . programs/cmdlgtst . . . . . . programs/notepad . . . . . . . . . . . . . . . programs/progman x x . . . . . . . . . . . . . . . . programs/view . . . . . . . programs/wcmd . . . . . programs/wineconsole . . . . . . . programs/winemine . . . . . programs/winhelp . . . . . . . . . . . . . . . . . programs/regedit . . . . . . programs/winefile . . . . . . . . programs/start . . . . . programs/winecfg . x x x x programs/wineproc ?
real 0m15.042s user 0m4.020s sys 0m6.360s [dimi@dimi wine.src]$