StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Toolbar in SF DevEx Manteinance Form does not...Expand / Collapse
Author
Message
Posted 06/02/2008 12:02:27 AM


StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: 09/05/2008 12:58:48 AM
Posts: 71, Visits: 129
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...
Post #16765
Posted 06/02/2008 6:52:10 AM


StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: StrataFrame Users
Last Login: 09/04/2008 10:07:48 AM
Posts: 81, Visits: 606
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

Post #16768
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 6:40am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.047. 9 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.