Toolbar in SF DevEx Manteinance Form does not localize captions


Author
Message
Juan Carlos Pazos
Juan Carlos Pazos
StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)StrataFrame User (228 reputation)
Group: Forum Members
Posts: 144, Visits: 227
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



Smile Everything is possible, just keep trying...
Guillermo Vilas
Guillermo Vilas
StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)StrataFrame User (192 reputation)
Group: StrataFrame Users
Posts: 112, Visits: 2.3K
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




------------------------------------------------------------------------
I would like to change the world, but they don´t give me the source code.
MS Windows 7 Ultimate 64-Bit
Intel(R) Core(TM)2 Quad CPU Q9300 2.50 GHz
6.00 GB of RAM, NVIDIA GeForce 9800 GT

MacBook Pro i5 OSX Lion
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search