﻿<?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?)  » Creation of Localization Keys?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 09:35:06 GMT</lastBuildDate><ttl>20</ttl><item><title>Creation of Localization Keys?</title><link>http://forum.strataframe.net/FindPost18509.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I am starting to localize a project (English/Spanish) and noticed that the SF labels have a Task facility to automatically create a Localization Key in the Default Language project, but for other controls like the Form's Text, GradientFormHeader Title, ThemedGroupBox, ListView Column Text, does not have this kind of facility, or at least I have not found an easy way to auto-create those localization keys.&lt;/P&gt;&lt;P&gt;So my question is how to handle those controls other than Labels to auto create the localization keys? specially for ListView columns headers.&lt;/P&gt;&lt;P&gt;Thanks!</description><pubDate>Mon, 18 Aug 2008 18:23:46 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Creation of Localization Keys?</title><link>http://forum.strataframe.net/FindPost18554.aspx</link><description>Thanks for the explanation, I think I understand now why not all .NET controls are SF subclassed.&amp;nbsp; I am sure this would be a good enhancement for those using the localization engine in future versions.</description><pubDate>Mon, 18 Aug 2008 18:23:46 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Creation of Localization Keys?</title><link>http://forum.strataframe.net/FindPost18553.aspx</link><description>Because these are enumerated values.&amp;nbsp; The Search fields on the BD, maybe at some point.&amp;nbsp; But eh columns on teh ListView are standard .NET ListViewColumns...not SFListViewColumns.&amp;nbsp; So for this to work on a ListView we would have to create our own columns types...so at this point we may as well not inherit from the ListView at all and write our own...which a localization key is &lt;STRONG&gt;&lt;EM&gt;&lt;U&gt;DEFINITELY&lt;/U&gt;&lt;/EM&gt;&lt;/STRONG&gt; not worth that kind of energy.&amp;nbsp; Maybe the next version of the ListView.</description><pubDate>Mon, 18 Aug 2008 17:13:32 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Creation of Localization Keys?</title><link>http://forum.strataframe.net/FindPost18551.aspx</link><description>Thanks Juan, Trent.&lt;P&gt;Still I would like to know about this:&lt;/P&gt;&lt;P&gt;[quote]But&amp;nbsp;why these controls ListView Columns and BD Labels does not have a LocalizationKey property?&amp;nbsp; &lt;/P&gt;&lt;P&gt;It is important to me to understand how a feature works so I can get the most benefit out of it.[/quote]</description><pubDate>Mon, 18 Aug 2008 14:23:27 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Creation of Localization Keys?</title><link>http://forum.strataframe.net/FindPost18548.aspx</link><description>Juan is on top if it today! :)</description><pubDate>Mon, 18 Aug 2008 14:19:03 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Creation of Localization Keys?</title><link>http://forum.strataframe.net/FindPost18547.aspx</link><description>Edjy&lt;br&gt;
&lt;br&gt;
Take a look to the Localization sample, they do what you asking for:&lt;br&gt;
&lt;br&gt;
[codesnippet]        '-- Force this page to "re-load" to update the controls on this page.  Generally you DO NOT&lt;br&gt;
        '   need to make this call.  This was just added so that you would not have to get out and come&lt;br&gt;
        '   back in to see the changes.&lt;br&gt;
        Me.OnLoad(EventArgs.Empty)[/codesnippet]&lt;br&gt;
&lt;br&gt;
Regards</description><pubDate>Mon, 18 Aug 2008 14:15:30 GMT</pubDate><dc:creator>Juan Carlos Pazos</dc:creator></item><item><title>RE: Creation of Localization Keys?</title><link>http://forum.strataframe.net/FindPost18544.aspx</link><description>Hi Trent,&lt;P&gt;[quote][b]Trent L. Taylor (08/18/2008)[/b][hr]However, a ListView column and BD labels will have to be done manually with the retrieve text method like Juan explained.[/quote]&lt;/P&gt;&lt;P&gt;But&amp;nbsp;why these controls ListView Columns and BD Labels does not have a LocalizationKey property?&amp;nbsp;&lt;P&gt;It is important to me to understand how a feature works so I can get the most benefit out of it.&lt;P&gt;Also, is there an event that will be fired when using &lt;FONT size=2&gt;Localization.ShowAvailableLanguages() so the currently opened forms would be shown with the selected language?&amp;nbsp; &lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Mon, 18 Aug 2008 13:48:36 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Creation of Localization Keys?</title><link>http://forum.strataframe.net/FindPost18541.aspx</link><description>Actually, this is only partially correct.&lt;P&gt;The form, ThemedGroupBox, GradientFormHeader, etc. all have localization properties.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Form - LocalizationKey and PropertyToLocalize&lt;/LI&gt;&lt;LI&gt;GradientFormHeader - TitleLocalizationKey, DetailTextLocalizationKey&lt;/LI&gt;&lt;LI&gt;ThemedGroupBox - same as form&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If you will show the property sheet in category mode instead of alphabetic, you will see that there is an SF category called, "StrataFrame: Localization" with the related properties.&lt;/P&gt;&lt;P&gt;However, a ListView column and BD labels will have to be done manually with the retrieve text method like Juan explained.</description><pubDate>Mon, 18 Aug 2008 13:34:01 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Creation of Localization Keys?</title><link>http://forum.strataframe.net/FindPost18514.aspx</link><description>Thanks Juan Carlos.&lt;/P&gt;&lt;P&gt;It is a bit messy this way, if this has to be done for each BrowserDialog and each ListView, then it does not make sense.&lt;/P&gt;&lt;P&gt;Trent, Ivan, can you confirm if this is the only way to deal with localization for these controls?</description><pubDate>Fri, 15 Aug 2008 19:45:50 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Creation of Localization Keys?</title><link>http://forum.strataframe.net/FindPost18513.aspx</link><description>Hi Edjy&lt;br&gt;
&lt;br&gt;
I use this code, for a ListView and for the BrowseLayout Window, for other controls for exmple DevExpress use the same approach.&lt;br&gt;
&lt;br&gt;
    Public Sub New()&lt;br&gt;
&lt;br&gt;
        ' This call is required by the Windows Form Designer.&lt;br&gt;
        InitializeComponent()&lt;br&gt;
&lt;br&gt;
        '-- Idiomas es para un control ListView&lt;br&gt;
        Me.lvConexiones.Columns.Item(1).Text = MicroFour.StrataFrame.UI.Localization.RetrieveTextValue("lvConexionesFecha")&lt;br&gt;
        Me.lvConexiones.Columns.Item(2).Text = MicroFour.StrataFrame.UI.Localization.RetrieveTextValue("lvConexionesA")&lt;br&gt;
        Me.lvConexiones.Columns.Item(3).Text = MicroFour.StrataFrame.UI.Localization.RetrieveTextValue("lvConexionesPor")&lt;br&gt;
        Me.lvConexiones.Columns.Item(4).Text = MicroFour.StrataFrame.UI.Localization.RetrieveTextValue("lvConexionesObjetivo")&lt;br&gt;
        Me.lvConexiones.Columns.Item(5).Text = MicroFour.StrataFrame.UI.Localization.RetrieveTextValue("lvConexionesMetodo")&lt;br&gt;
        'Idiomas ventana de búsqueda&lt;br&gt;
        BrowseDialogFamilias.SearchFields.Item(0).FieldLabelText = MicroFour.StrataFrame.UI.Localization.RetrieveTextValue("layoutIdFamilia")&lt;br&gt;
        BrowseDialogFamilias.BrowseResultsLayout.BrowseColumns.Item(0).ColumnHeaderText = MicroFour.StrataFrame.UI.Localization.RetrieveTextValue("layoutIdFamilia")&lt;br&gt;
        BrowseDialogFamilias.SearchFields.Item(1).FieldLabelText = MicroFour.StrataFrame.UI.Localization.RetrieveTextValue("layoutApellidos")&lt;br&gt;
        BrowseDialogFamilias.BrowseResultsLayout.BrowseColumns.Item(1).ColumnHeaderText = MicroFour.StrataFrame.UI.Localization.RetrieveTextValue("layoutApellidos")&lt;br&gt;
        BrowseDialogFamilias.SearchFields.Item(2).FieldLabelText = MicroFour.StrataFrame.UI.Localization.RetrieveTextValue("EstatusMiembro")&lt;br&gt;
        BrowseDialogFamilias.BrowseResultsLayout.BrowseColumns.Item(2).ColumnHeaderText = MicroFour.StrataFrame.UI.Localization.RetrieveTextValue("EstatusMiembro")&lt;br&gt;
        BrowseDialogFamilias.SearchFields.Item(3).FieldLabelText = MicroFour.StrataFrame.UI.Localization.RetrieveTextValue("layoutTipoDonador")&lt;br&gt;
        BrowseDialogFamilias.BrowseResultsLayout.BrowseColumns.Item(3).ColumnHeaderText = MicroFour.StrataFrame.UI.Localization.RetrieveTextValue("layoutTipoDonador")&lt;br&gt;
        BrowseDialogFamilias.SearchFields.Item(4).FieldLabelText = MicroFour.StrataFrame.UI.Localization.RetrieveTextValue("layoutDomicilio1")&lt;br&gt;
        BrowseDialogFamilias.BrowseResultsLayout.BrowseColumns.Item(4).ColumnHeaderText = MicroFour.StrataFrame.UI.Localization.RetrieveTextValue("layoutTelefono1")&lt;br&gt;
        BrowseDialogFamilias.SearchFields.Item(5).FieldLabelText = MicroFour.StrataFrame.UI.Localization.RetrieveTextValue("layoutDomicilio2")&lt;br&gt;
        BrowseDialogFamilias.SearchFields.Item(6).FieldLabelText = MicroFour.StrataFrame.UI.Localization.RetrieveTextValue("layoutZona")&lt;br&gt;
&lt;br&gt;
    End Sub&lt;br&gt;
&lt;br&gt;
Hope you can find usefull</description><pubDate>Fri, 15 Aug 2008 17:06:41 GMT</pubDate><dc:creator>Juan Carlos Pazos</dc:creator></item></channel></rss>