| | | 
StrataFrame Novice
       
Group: StrataFrame Users Last Login: 09/23/2008 12:35:43 AM Posts: 76, Visits: 135 |
| | 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
Everything is possible, just keep trying... |
| | | | StrataFrame Novice
       
Group: StrataFrame Users Last Login: Today @ 3:11:41 PM Posts: 86, Visits: 707 |
| 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
MS Windows XP SP3
AMD Athlon 64 Processor 3000+
3,2 GB RAM, Radeon X1600/x1650 Series |
| |
|
|