Problem with Menu Entries

Hello all,

we have a problem with SDL Passolo 2016.
I am sending this description in behalf of one of our de3veloppers:

"Used tools:
Visual Studio 2017
DevExpress 17.2.6
SDL Passolo 2016

We use Passolo to translate our compiled DLL’s, so we have 1 main dll and per translation one dll with the translated texts.

There is a problem with the translated dll (created by Passolo) with some windows form controls.
We found out that there is a bug in Passolo when we translate a form with following controls:

System.Windows.Forms.ImageList
DevExpress.XtraBars.BarButtonItem

To demonstrate the bug here is an example when it occurs:

(designer code)
this.oBarButtonItem = new DevExpress.XtraBars.BarButtonItem();
[…]
resources.ApplyResources(this.oBarButtonItem, "oBarButtonItem");
this.oBarButtonItem.Id = 1;
this.oBarButtonItem.ImageOptions.ImageIndex = ((int)(resources.GetObject("oBarButton.ImageOptions.ImageIndex")));
this.oBarButtonItem.Name = "oBarButtonItem";

With the help of ILSpy we were inspecting the compiled dll/exe and compared it to the dll created by Passolo. We found out that the problem happens here:

(orginal dll/exe)
[oBarButtonItem.Caption, &OrginalText]

(dll created with translation by passolo)
[oBarButtonItem.ImageOptions.Caption, &TranslatedText]

(=> The BarButtonItem has a caption but there is no Caption on BarButtonItem.ImageOptions.
The result of this is our main menu entries with pictures aren’t translated anymore.)

When changing it back to this, passolo hasn’t any problem to get the correct object path:

(designer code)
this.oBarButtonItem = new DevExpress.XtraBars.BarButtonItem();
[…]
resources.ApplyResources(this.oBarButtonItem, "oBarButtonItem");
this.oBarButtonItem.Id = 1;
this.oBarButtonItem.ImageOptions.ImageIndex = 1;
this.oBarButtonItem.Name = "oBarButtonItem";

But as soon as you open any form with visual studio designer and change anything in the menu every ImageIndex property got changed in designercode.
Result: No translation.

The newest Passolo version (Passolo 2018 Demo) doesnt fix this."

I hope you can provide a solution.
Thanks in advance
Andreas

Parents Reply Children
No Data