Loading...
 
Multi-Language Add-In for Visual Studio

Multi-Language Add-In for Visual Studio


Multi-Language IDs are not defined

Hi Phil,
i just encountered another problem when i started to translate my source code strings.
The addin creates IDs (like IDS_MULTILANG_847) and assignes a string with the translated text to it:

STRINGTABLE PRELOAD DISCARDABLE

BEGIN
IDS_MULTILANG_847 "Überbrücken"

END

This seems to work fine, but it doesn't create the definitions in the resource.h file.
Lines like this example are missing:

#define IDS_MULTILANG_847 847

So when I try to create my ml projects, the symbol IDS_MULTILANG_847 is not found of course.

This worked before when I was translating the dialogs, so I guess the problem comes with the source code strings only.

I will attach my resource.h file, maybe the problem lies in the already present IDs there.

Thank you and have a nice weekend.

Ben

Germany

Hi,

this will be fixed in the next update.

It is related to the option "Export all strings to the STRINGTABLE" in the Add-In's options dialog.

Image

If this is selected, then it stores all strings to the STRINGTABLE, including a lot of strings which are not strictly necessary. In this case it also generates the IDS_MULTILANG symbols.

If it is not selected, it only exports the strings which are actually used in the source code to the STRINGTABLE. It also doesn't generate all of the symbols either.

In this case, I now write numeric values into the STRINGTABLE. This will be in the next update.

Phil

Germany

Hi,

I have just uploaded a new version containing this fix.

I don't think it is a very good fix. I would prefer to generate the symbolic names during the resource export. I will try to implement a better solution in the next few days.

Phil

Hi Phil,
your hot-fix worked.
Thank you for your fast help.

Ben