A little explanation to why I need this:
1. I compile my *.rc files to a *.res file
2. I open this *.res file to have a "clean" file without defines and
comments
3. I use a search/replace tool to translate all text to a second language
4. I compile the new file to a language dependent resource dll.
I do this every time I change the main resource file
Best regards, Petter
How about putting all "language dependant" text in string tables,
then put all string tables in original language in separate file and
include it in the .rc file, then you can translate only that separate
file and you can make new .res for each translated language?
muchan
I still hope to find a good command-line RES->RC file converter! An EXE->RC
file converter will also do if that is easier to find.
Best regards, Petter
"muchan" <q...@nimport.ou> wrote in message
news:iEHie.12183$F6.25...@news.siol.net...
One of my colleague wrote (for his own use) an interactive filter program,
that scans input files (.h, .c, .cpp or .rc or anything) and write them
to output files, (with the same name in another directory) and for
each text between "", check a translation look-up table (separate file)
if found, it automatically replace the text, if not found, ask in the
dialog window. It works like spell-checker program, he can choose
ignore (once), register to ignore, replace (once), register the translation
for these text. He can edit the look-up table file (off-line translation)
and rerun the filter on the source files.
We didn't make it for sale... you make your own, or maybe I can ask him
if we can ship it to someone outside the company...
At least you get an idea how your problem could be solved otherwise.
muchan
I also found a tool that can extract a clean *.rc file from a *.res file
here: http://resourceeditor.sicomponents.com/
This operation can be done with the following command: resbldr2.exe -e ALL
input_file_name.res output_file_name.rc
If anybody knows a way to do this with Microsoft Visual Studio tools I am
still very interested!
Best regards, Petter
"muchan" <q...@nimport.ou> wrote in message
news:fdYie.12191$F6.25...@news.siol.net...