﻿<?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?)  » Localizing the Browse Dialog</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Thu, 10 Sep 2026 02:45:00 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Localizing the Browse Dialog</title><link>http://forum.strataframe.net/FindPost11352.aspx</link><description>No problem, glad you found it :)</description><pubDate>Wed, 05 Sep 2007 13:18:00 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>Localizing the Browse Dialog</title><link>http://forum.strataframe.net/FindPost10458.aspx</link><description>What is the recommended way to localize the search field captions and the column headings on the results grid of the Browse Dialog?&amp;nbsp; In addition, what is the best way to localize the standard components of the Browse Dialog? I see that the control offers properties for setting the text of all of its components but I don't see any localization keys.&amp;nbsp; Do I need to use the RetrieveTextValue method in my code and then set the Browse Dialog's Text properties as appropriate?&amp;nbsp; Thanks for your help.&lt;/P&gt;&lt;P&gt;Fran Parker</description><pubDate>Wed, 05 Sep 2007 13:18:00 GMT</pubDate><dc:creator>fparker</dc:creator></item><item><title>RE: Localizing the Browse Dialog</title><link>http://forum.strataframe.net/FindPost11350.aspx</link><description>Forgive it, I not select Messages_2058.XML on the project and change the property "Build Action" to "Embedded Resource" on it&lt;br&gt;
&lt;br&gt;
Sorry :blush:</description><pubDate>Wed, 05 Sep 2007 12:18:06 GMT</pubDate><dc:creator>Fabian R Silva, -</dc:creator></item><item><title>RE: Localizing the Browse Dialog</title><link>http://forum.strataframe.net/FindPost11347.aspx</link><description>Thanks for all Trent, Ben and all the people of this great forum.&lt;br&gt;
&lt;br&gt;
I leave the localization stuff for a time while trying to build my aplication and I don´t sure why when I put a Localization Key on a custom login, a problem appears :/ (I thinked that it was resolved setting to use the 2058 localization code) &lt;br&gt;
the debug message is  "The specified key [UsuarioyClaveTitulo] was not found within the localization database". I try what you recommend:&lt;br&gt;
&lt;br&gt;
Sub GetManifestResourceNames()&lt;br&gt;
        For Each lcString As String In System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceNames()&lt;br&gt;
            System.Diagnostics.Debug.WriteLine(lcString)&lt;br&gt;
        Next&lt;br&gt;
End Sub&lt;br&gt;
&lt;br&gt;
result: I see that Message_Languages.xml appears but not Messages_2058.xml&lt;br&gt;
I try to quit and add it again to the project but nothing changed&lt;br&gt;
&lt;br&gt;
I add it to both projects I have (Presentation and bussiness objects), but I think it have to be on the BO project, but anyway on both of them can´t see the xml embedded, any idea? meanwhile I continue trying.&lt;br&gt;
&lt;br&gt;
Thanks&lt;br&gt;
&lt;br&gt;
- Fabian&lt;br&gt;
&lt;br&gt;</description><pubDate>Wed, 05 Sep 2007 11:42:47 GMT</pubDate><dc:creator>Fabian R Silva, -</dc:creator></item><item><title>RE: Localizing the Browse Dialog</title><link>http://forum.strataframe.net/FindPost10913.aspx</link><description>The Messages_XXX.xml file generally does not reside on the root of the application.&amp;nbsp; It generally includes the root namespace and any folder it resides in as well in VB.NET.&lt;/P&gt;&lt;P&gt;My.Root.namespace.Messages_xxx.xml&lt;/P&gt;&lt;P&gt;You can always write a quick program to get the exact name using the GetMenifestResourcenames():&lt;/P&gt;&lt;P&gt;[codesnippet]For Each lcString As String In System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceNames()&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.WriteLine(lcString)&lt;BR&gt;Next[/codesnippet]</description><pubDate>Thu, 16 Aug 2007 16:38:11 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Localizing the Browse Dialog</title><link>http://forum.strataframe.net/FindPost10911.aspx</link><description>How about we just fix the problem and then give you the updated assembly :) Will that work :D</description><pubDate>Thu, 16 Aug 2007 16:33:39 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Localizing the Browse Dialog</title><link>http://forum.strataframe.net/FindPost10909.aspx</link><description>note on the ivan picture on the picture 2 say "Gravar"&amp;nbsp;and in spanish "Save" is "Grabar"&lt;/P&gt;&lt;P&gt;can I change the source localization data where the browsedialog "autopopulate" this key? (I say change "Gravar" by "Grabar" myself without creating a new custom key)&lt;/P&gt;&lt;P&gt;Thanks :)</description><pubDate>Thu, 16 Aug 2007 16:09:04 GMT</pubDate><dc:creator>Fabian R Silva, -</dc:creator></item><item><title>RE: Localizing the Browse Dialog</title><link>http://forum.strataframe.net/FindPost10908.aspx</link><description>thanks Ivan 2058 worked OK :)&lt;BR&gt;thanks again Trent with my basic questions</description><pubDate>Thu, 16 Aug 2007 16:05:51 GMT</pubDate><dc:creator>Fabian R Silva, -</dc:creator></item><item><title>RE: Localizing the Browse Dialog</title><link>http://forum.strataframe.net/FindPost10906.aspx</link><description>&lt;FONT color=#111111&gt;Trent, with &lt;FONT size=2&gt;2058 worked, I don´t known why with 11274 doesn´t work.&lt;/FONT&gt;&lt;/FONT&gt;&lt;P&gt;&lt;FONT color=#111111&gt;anyway, I will create a Localization project with 2058 Español - Mexico and use it for now&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#111111&gt;I have a &lt;FONT size=2&gt;RegisterEmbeddedXmlFile&amp;nbsp;problem? I dont sure but try to call (after reading a post on the forum)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;[codesnippet]&lt;BR&gt;&lt;FONT color=#111111&gt;&lt;FONT color=#111111&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT size=2&gt;MicroFour.StrataFrame.UI.Localization.RegisterEmbeddedXmlFile(System.Reflection.Assembly.Load(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"MicroFour StrataFrame UI, Version=1.6.0.0, Culture=neutral, PublicKeyToken=99fe9917f71608a7"&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"Messages_11274.XML"&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;BR&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;[/codesnippet]&lt;/P&gt;&lt;FONT color=#111111&gt;&lt;FONT color=#111111&gt;&lt;FONT color=#008000 size=2&gt;&lt;P&gt;&lt;FONT size=2&gt;and .net say when I copy this line that the method "Load" can't be called with those arguments&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;Thanks for all your help :D&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Thu, 16 Aug 2007 16:01:17 GMT</pubDate><dc:creator>Fabian R Silva, -</dc:creator></item><item><title>RE: Localizing the Browse Dialog</title><link>http://forum.strataframe.net/FindPost10905.aspx</link><description>Hi Fabian.&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;Try the:&lt;/P&gt;&lt;P&gt;MicroFour.StrataFrame.UI.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;Localization&lt;/FONT&gt;&lt;FONT size=2&gt;.MessageLocaleID = 2058&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I use 1046, but tried 2058&amp;nbsp;to test and it worked fine, have a look:&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/99070664-bf27-4e8b-ac42-1840.png"&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/eb191f11-74ea-42f9-bf0e-b50a.png"&gt;&lt;/P&gt;&lt;P&gt;Abraços.</description><pubDate>Thu, 16 Aug 2007 15:36:12 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Localizing the Browse Dialog</title><link>http://forum.strataframe.net/FindPost10902.aspx</link><description>After looking at the translation project, we have the Spanish versions set for Mexico and Argentina.&amp;nbsp; Do we need to add another?&amp;nbsp; Did it work when you set it to 11274?&amp;nbsp; Does it work when you set it to 2058?&amp;nbsp; If not, then you will probably need to manually call the RegisterEmbeddedXML and re-register the localization files.&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forum.strataframe.net/Uploads/Images/bc8258c8-4044-47de-9628-a96a.png"&gt;</description><pubDate>Thu, 16 Aug 2007 14:26:28 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Localizing the Browse Dialog</title><link>http://forum.strataframe.net/FindPost10901.aspx</link><description>I using Windows XP with a regional configuration "Español - Argentina" and set messageLocaleID to 11274 on appMain but cannot see by default the navigation bar and other controls in spanish&lt;/P&gt;&lt;P&gt;Example: I test the securitySample, when I view the form in design mode this show&amp;nbsp;"NUEVO" on the Add button, but when I run the form it show ADD&lt;/P&gt;&lt;P&gt;I changed in appMain &lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;MicroFour.StrataFrame.UI.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;Localization&lt;/FONT&gt;&lt;FONT size=2&gt;.MessageLocaleID = 1034; &lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;//MicroFour.StrataFrame.UI.Localization.GetActiveLanguage("SecuritySample");&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#008000 size=2&gt;or&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#1f5080&gt;MicroFour.StrataFrame.UI.&lt;FONT color=#2b91af size=2&gt;Localization&lt;/FONT&gt;&lt;FONT size=2&gt;.MessageLocaleID = 11274 ; &lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;//MicroFour.StrataFrame.UI.Localization.GetActiveLanguage("SecuritySample");&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;&lt;FONT color=#7777dd&gt;Thanks!&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Thu, 16 Aug 2007 14:18:46 GMT</pubDate><dc:creator>Fabian R Silva, -</dc:creator></item><item><title>RE: Localizing the Browse Dialog</title><link>http://forum.strataframe.net/FindPost10879.aspx</link><description>The functionality between design-mode and run-time is actually the same with one difference.&amp;nbsp; When in design-mode, we set the MessageLocaleID based on the active language on your OS.&amp;nbsp; However, in your application, you must set this value yourself.&amp;nbsp; If you open up the AppMain file and go to the InitApplication method, you will see that the MessageLocaleID is trying to pull an active language.&amp;nbsp; More than likely you do not have a languages file out there so it assumes english.&amp;nbsp; You can just hard code this value as well.&amp;nbsp; For example, to make Portuguese show up at run-time, I will just set this value to 1046.&lt;/P&gt;&lt;P&gt;[codesnippet]MicroFour.StrataFrame.UI.Localization.MessageLocaleID = 1046[/codesnippet]</description><pubDate>Wed, 15 Aug 2007 14:31:01 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Localizing the Browse Dialog</title><link>http://forum.strataframe.net/FindPost10871.aspx</link><description>When I see the form on development / design mode, I see all the text in spanish but when I run the application I see all the localization text in english, what I do wrong?&lt;br&gt;
&lt;br&gt;
I hard-Coded on appmain the localization ID to 11274 (spanish - argentina) and try with spanish - spain but nothing, I can set my own text and asign the Key to take that but can´t keep the default values&lt;br&gt;
&lt;br&gt;
I attached 2 images to show this&lt;br&gt;
&lt;br&gt;
another issue is the combobox that show in grey (I not set nothing special on this), how I can avoid this? thanks&lt;br&gt;
&lt;br&gt;
- Fabian</description><pubDate>Wed, 15 Aug 2007 11:02:15 GMT</pubDate><dc:creator>Fabian R Silva, -</dc:creator></item><item><title>RE: Localizing the Browse Dialog</title><link>http://forum.strataframe.net/FindPost10550.aspx</link><description>[quote]Are there database tables or XML files that contain the localized values that I need to distribute with my app?[/quote]&lt;/P&gt;&lt;P&gt;No.&amp;nbsp; The localized XML files are embedded within the UI assembly.&amp;nbsp; If you hard code the MessageLocaleID to 1046, for example, in the AppMain and then run your application, do you get the Portuguese translations for the BrowseDialog?&amp;nbsp; If so, does French do the same thing?&amp;nbsp; Try this first and we can go from there.</description><pubDate>Tue, 24 Jul 2007 17:08:12 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Localizing the Browse Dialog</title><link>http://forum.strataframe.net/FindPost10546.aspx</link><description>Trent,&lt;/P&gt;&lt;P&gt;Thanks for your help - I'm no longer having a problem with my search field captions or my column headings.&amp;nbsp; Unfortunately, I am still having a problem with the standard portions of the form.&amp;nbsp; I use the &lt;FONT size=2&gt;MicroFour.StrataFrame.UI.&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;Localization&lt;/FONT&gt;&lt;FONT size=2&gt;.ShowAvailableLanguages() method in my code to allow the user to select a language.&amp;nbsp; I have verified that after the user makes a selction, the value of MicroFour.StrataFrame.UI.Localization.MessageLocaleID has changed but it has no affect on the BrowseDialog.&amp;nbsp; Are there database tables or XML files that contain the localized values that I need to distribute with my app?&amp;nbsp; Or can you think of something else that I am missing?&amp;nbsp; Thanks again.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;Fran Parker&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Tue, 24 Jul 2007 15:20:49 GMT</pubDate><dc:creator>fparker</dc:creator></item><item><title>RE: Localizing the Browse Dialog</title><link>http://forum.strataframe.net/FindPost10473.aspx</link><description>[quote]&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class=smalltxt vAlign=top&gt;&lt;SPAN id=ctl02_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl04_lblFullMessage&gt;What is the recommended way to localize the search field captions and the column headings on the results grid of the Browse Dialog?&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;[/quote]&lt;/P&gt;&lt;P&gt;You can do this in code with the RetrieveTextValue method for the fields.&lt;/P&gt;&lt;P&gt;[codesnippet]MyBrowse.SearchFields.Item("myField").FieldLabelText = MicroFour.StrataFrame.UI.Localization.RetrieveTextValue("MyKey")[/codesnippet]&lt;/P&gt;&lt;P&gt;[quote]addition, what is the best way to localize the standard components of the Browse Dialog?[/quote]&lt;/P&gt;&lt;P&gt;The BrowseDialog components are already translated in 8 languages and you do not have to do anything.&amp;nbsp; Those fields will allow you to overwrite the values, but if you only need support for English, Spanish, Portuguese, Danish, German, French, Italian, or Russian then you don't have to do anything.&amp;nbsp; When the MessageLocaleID is set to any of these languages the BrowseDialog will follow suit.</description><pubDate>Thu, 19 Jul 2007 16:58:24 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>