Collection items not outpot to resource files

Hi,

I am using the ML for web forms projects with components from Developers Express.

Many of these compenents makes heavy use of collections. Example:

The XtraTabControl has a collection of XtraTabPages. Each of these pages have a property named Text (used for the caption).

Now after a control scan all the TabPages are represented in your grid and I can translate them. But the translated strings are not put into the language specific resx files.

They are in the neutral resx-files - just not in the language specific.(A peculiar thing though: It seems that at most one of the tabpage.text strings do go into the resx.)

This problem occurs whether I explicitly export or not and it does not seem to matter whether I use the new Determine resource names or not.

Any hints?

/Jens Bo Frederiksen

Germany

Hi,

I can't reproduce this problem.

I have a trial version of DXperience 8.2.3 (which I think means 2008, release 2). I have found two of the demo programs using xtraTabPage:

  • EditorsMaskEdit
  • EditorsTutorials


I have tried both of these projects and had no particular problems.

Here is a screenshot from the EditorsTutorials demo showing some French texts (which I generated automaticallybiggrin).
Image

Can you make me a small example project, with which you get the problem?

Phil


Hi again,

I have also tried to reproduce in a test project but in such project all seems fine.

Not so in my primary project which has been developed thru numerous upgrades of Multi Language.

I have included a screen dump of the controls grid from one om my forms. In this you can see several xtratabs with texts translated. Also i have encluded the resulting resx and da.resx. As you can see the xtratabpage.Texts are in the neutral one but not in the da.resx.

Even if i delete the da.resx and export anew, the problem persists.

If i manually edit the da.resx and key in the xtratabpage.Texts the translation is functional (but that is not a solution of course).

Is there anything that can prevent some items present and translated in the ML Controls Grid from being exported to the language specific resx files?

/Jens Bo Frederiksen

Germany

Hi,

Can you please also post a copy of the project database?

This is probably the file CashNet_ml.xml (or the access database CashNet_ml.mlb).

Phil


Germany

Hi,

I have found the problem and uploaded a new version (4.65.0033) which should fix it.

These are special controls, because they are both top level controls and child controls contained in other controls. The most common case is a menu item. At some point I made an internal change to the way I handle these controls.

Your project database contains duplicate records for these properties, for example with the names:

  • xtraTabControl1.TabPages[1].Text
  • xtraTabPageCriteria.Text

Both of these records refer to the same resource name. The old records are normally harmless, but in this case they actually prevent the resource from being exported.

I have made an easy fix to the resource export. It would be better to remove the old records completely, but this requires a little more thought.

Phil


Problem solved!

As a 'side effect' your fix also fixed similar problems in other controls like XtraNavbar.navbarItems.

Excellent support.

Best regards
Jens Bo Frederiksen