﻿<?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?)  » Getting localization error</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Thu, 04 Jun 2026 13:19:04 GMT</lastBuildDate><ttl>20</ttl><item><title>Getting localization error</title><link>http://forum.strataframe.net/FindPost18581.aspx</link><description>I have no clue why but one of my projects if I set to stop on all exceptions keeps stopping in the AppMain with the following exception.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;[codesnippet]MicroFour.StrataFrame.UI.Localization.MessageLocaleID = MicroFour.StrataFrame.UI.Localization.GetActiveLanguage("ReportsSplitAuto")[/codesnippet]&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;[quote]The file [Message_Languages.xml] could not be found.&amp;nbsp; The localization languages table could not be loaded.[/quote]&lt;/P&gt;&lt;P&gt;I don't have anything special setup for localization or messaging so I just commented out the line, but any ideas of what's missing???&lt;/P&gt;&lt;P&gt;Jason</description><pubDate>Wed, 20 Aug 2008 08:43:09 GMT</pubDate><dc:creator>Jason Seidell</dc:creator></item><item><title>RE: Getting localization error</title><link>http://forum.strataframe.net/FindPost18614.aspx</link><description>If you are setting that local ID and are using any messages at all, you'll need to configure your message store. We recommend using embedded xml files, but you can also store them externaly or in SQL. &lt;P&gt;In the StrataFrame help there are step-by-steps for configuring all three under Application Framework-&amp;gt;Localization &amp;amp; Messaging-&amp;gt;Messagign-&amp;gt;Configuring the Message Store. Here is the short of configuring embedded xml files.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a messaging project within the Localization and Messaging Editor&amp;nbsp;and populate it with the initial message objects. &lt;LI&gt;Select the Generate XML button on the Localization and Messaging Editor&amp;nbsp;command bar to export the messaging project into a series of XML files. &lt;LI&gt;Add a &lt;SPAN class=fth&gt;Localization Files&lt;/SPAN&gt; folder to your Visual Studio project. &lt;P class=Notes&gt;&lt;B&gt;Note:&lt;/B&gt; While it is recommended to create a separate folder in which to house the messaging XML files, this is not a strict requirement.&lt;/P&gt;&lt;LI&gt;Add the localization XML files to&amp;nbsp;the&amp;nbsp;Visual Studio project&amp;nbsp;folder.&lt;BR&gt;&lt;BR&gt;&lt;B&gt;Note:&lt;/B&gt; If the Locale ID will be manually assigned and the &lt;SPAN class=FormTextHighlight&gt;Localization.ShowAvailableLanguages()&lt;/SPAN&gt; or &lt;SPAN class=FormTextHighlight&gt;Localization.GetActiveLanguage()&lt;/SPAN&gt; methods will not be called, the Message_Languages.xml does not have to be included. However, if the application will allow the end-user to choose their language using the &lt;SPAN class=FormTextHighlight&gt;ShowAvailableLangauges()&lt;/SPAN&gt; method, the message_Langauges.xml file must be included. &lt;LI&gt;Now that the messaging files have been added, they need to be specified as an embedded resource. To embed&amp;nbsp;each of the messaging&amp;nbsp;files as a resource, simply select the file, go to the property sheet, and change the Build Action to &lt;SPAN class=fth&gt;Embedded Resource&lt;/SPAN&gt;.&lt;BR&gt;&lt;LI&gt;When using Embedded XML files, neither the &lt;SPAN class=fth&gt;MessageKeyType&lt;/SPAN&gt;&amp;nbsp;nor the&amp;nbsp;&lt;SPAN class=fth&gt;MessageXmlPath&lt;/SPAN&gt; is required within the AppMain.vb or the program.cs files.&amp;nbsp; As such, these lines can be removed. &lt;DIV class=Code_VisualBasic style="MARGIN-TOP: 10px"&gt;&lt;PRE&gt;Localization.MessageKeyType = MessageKeyDataType.XMLLocalization.MessageXmlPath = ""&lt;/PRE&gt;&lt;/DIV&gt;&lt;LI&gt;The final step in configuring the message store is to set the Locale Id to the match the desired language.&amp;nbsp; This can be hard coded, or can be based off of the LCID of the CurrentCulture.&amp;nbsp; &lt;/LI&gt;&lt;/OL&gt;</description><pubDate>Wed, 20 Aug 2008 08:43:09 GMT</pubDate><dc:creator>Dustin Taylor</dc:creator></item></channel></rss>