StrataFrame Forum

Toolbar in SF DevEx Manteinance Form does not localize captions

http://forum.strataframe.net/Topic16765.aspx

By Juan Carlos Pazos - 6/1/2008

Hi

I'm using DevExpress controls, I use SF DevEx Manteinance Form and add the BO and controls needed. All works fine.

I configure my application to use  Spanish in the AppMain.vb

MicroFour.StrataFrame.UI.Localization.MessageLocaleID = 2058

The messages are in spanish, but the toolbar not. I use the designer and put the captions in Spanihs (New as Nuevo, Edit as Editar...) but every time I run the application the caption are again in english.

Can you please tell me what I'm doing wrong?

Regards

By Guillermo Vilas - 6/2/2008

Hello juan Carlos

If you look into the MicroFour StrataFrame Inherited UI source code you´ll notice that there is no localization implementation for the MaintenanceFormToolbar. You will need to add localization support for the BarbuttonItems inside the Toolbar manually, perhaps adding a method to localize controls when loading the form.





Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

'-- This method handles extra localization

LocalizeControls()

End Sub



Private Sub LocalizeControls()

'-- The Devexpress BarbuttonItem

'-- The text key used must

Me.cmdNew.Caption = MicroFour.StrataFrame.UI.Localization.RetrieveTextValue("UI_New", "Nuevo")

End Sub







The above are just seudo code example of what you can do to work around. I hope this helps.



Saludos