﻿<?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?)  » Problem with Localization</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:05:19 GMT</lastBuildDate><ttl>20</ttl><item><title>Problem with Localization</title><link>http://forum.strataframe.net/FindPost19097.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I have a solution with several projects. In 3 of them, I need localization. I created a folder called "Localization Files" in one of them and put the differents XML files in it.&lt;/P&gt;&lt;P&gt;The 3 projects are named : Composant, Commun.View and Patient.View. The folder "Localization Files" is in Composant.&lt;/P&gt;&lt;P&gt;When I launched my solution and opened a view in Commun.View, I have this error.&lt;/P&gt;&lt;P&gt;[i]LocalizationKeyNotFoundException&lt;BR&gt;&amp;nbsp; The specified key [L_Pays] was not found within the localization database.&lt;BR&gt;FileNotFoundException&lt;BR&gt;&amp;nbsp; The file [Message_Languages.xml] could not be found.&amp;nbsp; The localization languages table could not be loaded.&lt;/P&gt;&lt;P&gt;Source&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : MicroFour StrataFrame Base&lt;/P&gt;&lt;P&gt;Stack Trace: &lt;BR&gt;&amp;nbsp;&amp;nbsp; à MicroFour.StrataFrame.UI.Localization.LoadLanguageTable(Boolean IgnoreExceptions)&lt;BR&gt;&amp;nbsp;&amp;nbsp; à MicroFour.StrataFrame.UI.Localization.LoadXmlFile(Int32 LocaleID)&lt;BR&gt;&amp;nbsp;&amp;nbsp; à MicroFour.StrataFrame.UI.Localization.GetKeyRowFromXml(String Key)&lt;BR&gt;&amp;nbsp;&amp;nbsp; à MicroFour.StrataFrame.UI.Localization.RetrieveTextValue(String TextValueKey)&lt;BR&gt;&amp;nbsp;&amp;nbsp; à MicroFour.StrataFrame.UI.Localization.SetLocalizationOnControl(ILocalizable ControlToSet)&lt;BR&gt;&amp;nbsp;&amp;nbsp; à MicroFour.StrataFrame.UI.Windows.Forms.Label.InitializeObject()&lt;BR&gt;&amp;nbsp;&amp;nbsp; à MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.InitializeFormLoadObjects()&lt;BR&gt;&amp;nbsp;&amp;nbsp; à MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.OnLoad(EventArgs e)&lt;BR&gt;&amp;nbsp;&amp;nbsp; à System.Windows.Forms.Form.OnCreateControl()&lt;BR&gt;&amp;nbsp;&amp;nbsp; à System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)&lt;BR&gt;&amp;nbsp;&amp;nbsp; à System.Windows.Forms.Control.CreateControl()&lt;BR&gt;&amp;nbsp;&amp;nbsp; à System.Windows.Forms.Control.WmShowWindow(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; à System.Windows.Forms.Control.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; à System.Windows.Forms.ScrollableControl.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; à System.Windows.Forms.ContainerControl.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; à System.Windows.Forms.Form.WmShowWindow(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; à System.Windows.Forms.Form.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; à System.Windows.Forms.Control.ControlNative&amp;#119;indow.OnMessage(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; à System.Windows.Forms.Control.ControlNative&amp;#119;indow.WndProc(Message&amp;amp; m)&lt;BR&gt;&amp;nbsp;&amp;nbsp; à System.Windows.Forms.Native&amp;#119;indow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)&lt;BR&gt;[/i]&lt;/P&gt;&lt;P&gt;The same by opening a form in Patient.View. Why ?&lt;/P&gt;&lt;P&gt;I try to move the folder "Localization Files" in Commun.View and I don't have any error by opening a form in Commun.View but still in Patient.View.&lt;BR&gt;Is there a specific location to put the XML files ? Do I have to created a "Localization Files" folder in each project ?&lt;/P&gt;&lt;P&gt;If it is the case, I find this very constraining.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;David</description><pubDate>Fri, 05 Sep 2008 08:20:25 GMT</pubDate><dc:creator>David Daragon</dc:creator></item><item><title>RE: Problem with Localization</title><link>http://forum.strataframe.net/FindPost19104.aspx</link><description>Glad it helped! :cool:</description><pubDate>Fri, 05 Sep 2008 08:20:25 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Problem with Localization</title><link>http://forum.strataframe.net/FindPost19103.aspx</link><description>Hi Ivan,&lt;/P&gt;&lt;P&gt;No I just embedded the XML files in one of my assemblies.&lt;/P&gt;&lt;P&gt;I try to put the XML files in the main project and it works.&lt;BR&gt;I don't know that the XML files location has an importance.&lt;BR&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;David</description><pubDate>Fri, 05 Sep 2008 08:08:53 GMT</pubDate><dc:creator>David Daragon</dc:creator></item><item><title>RE: Problem with Localization</title><link>http://forum.strataframe.net/FindPost19101.aspx</link><description>Hi David.&lt;/P&gt;&lt;P&gt;Are you embedding the XML files to the main project?</description><pubDate>Fri, 05 Sep 2008 07:38:03 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>