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

Multi-Language Add-In for Visual Studio


Controls show as Additionial Resources

Hello,
i have a question about additional resources.

If i have a project with for example a ListView with some ColumnHeaders and scan the project via source code the ColumnHeaders are shown in the "Additional Resources" tab. If i scan the same project again via designer the ColumnHeaders are shown in the Controls tab.
(This also happens for other controls which are "used" by another control. StatusBar -> StatusBarPanel)

Is this a normal behaviour? I would have expected to always find them under the Controls tab.

Normally even with this behaviour i can translate the project without problems. But now i have a UserControl with a ListView with some strange problems. The UserControl was already translated with the Add-In an i now wanted to correct some of the translations (If i remember correct there was no additonal resources tab back than).

- The ColumnHeaders of the ListView only show when i scan the project via source code. If i scan via designer they won't show at all (in no tabs).
- When i change the translation of the ColumnHeaders in the "Additional Resources" tab it won't apply to the ColumnHeaders. While the Grid in the Add-In shows the new translation the resx file of the UserControl won't change and still uses the old translation.

I have tried to delete all of the MultiLang stuff (Resx files of the Usercontrol, tmp xml files and the MultiLang.resx files) and restore the translation of the Usercontrol via the global database, but this won't solve the problem.

I hope you can give me some advise on what i can do to solve my problem.
Thanks in advance.

Dennis

Germany

Hi Dennis,

I was able to reproduce the first effect, and have fixed it in version 4.7x.0042, which I have just uploaded.

Generally, I would recommend the scan via designer windows, which uses the Visual Studio object model to access the properties of controls. The scan via source code uses regular expressions to pick out statements in the function InitializeComponents(), which is fundamentally a bit shaky.

I don't understand the second effect at all. The latest version may now detect the column headers via the source code. I don't know. I see know reason why it would not detect them via the designer windows.

Could you possibly send me a copy of the project, or at least of the UserControl?

Phil