﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Toolbar in SF DevEx Manteinance Form does not localize captions</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 16 May 2026 07:31:02 GMT</lastBuildDate><ttl>20</ttl><item><title>Toolbar in SF DevEx Manteinance Form does not localize captions</title><link>http://forum.strataframe.net/FindPost16765.aspx</link><description>Hi&lt;/P&gt;&lt;P&gt;I'm using DevExpress controls, I use SF DevEx Manteinance Form and add the BO and controls needed. All works fine.&lt;/P&gt;&lt;P&gt;I configure my application to use&amp;nbsp; Spanish in the AppMain.vb&lt;FONT size=2&gt;&lt;/P&gt;&lt;P&gt;MicroFour.StrataFrame.UI.Localization.MessageLocaleID = 2058&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Can you please tell me what I'm doing wrong?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Mon, 02 Jun 2008 06:52:10 GMT</pubDate><dc:creator>Juan Carlos Pazos</dc:creator></item><item><title>RE: Toolbar in SF DevEx Manteinance Form does not localize captions</title><link>http://forum.strataframe.net/FindPost16768.aspx</link><description>Hello juan Carlos&lt;br&gt;
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.&lt;br&gt;
&lt;br&gt;
[codesnippet]&lt;br&gt;
Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load&lt;br&gt;
        '-- This method handles extra localization&lt;br&gt;
        LocalizeControls()&lt;br&gt;
 End Sub&lt;br&gt;
&lt;br&gt;
Private Sub LocalizeControls()&lt;br&gt;
    '-- The Devexpress BarbuttonItem&lt;br&gt;
    '-- The text key used must  &lt;br&gt;
    Me.cmdNew.Caption = MicroFour.StrataFrame.UI.Localization.RetrieveTextValue("UI_New", "Nuevo")&lt;br&gt;
End Sub&lt;br&gt;
&lt;br&gt;
[/codesnippet]&lt;br&gt;
&lt;br&gt;
The above are just seudo code example of what you can do to work around. I hope this helps.&lt;br&gt;
&lt;br&gt;
Saludos&lt;br&gt;
&lt;br&gt;</description><pubDate>Mon, 02 Jun 2008 06:52:10 GMT</pubDate><dc:creator>Guillermo Vilas</dc:creator></item></channel></rss>