﻿<?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 » WebForms (How do I?)  » BrokenRules 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 08:30:40 GMT</lastBuildDate><ttl>20</ttl><item><title>BrokenRules localization</title><link>http://forum.strataframe.net/FindPost22805.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;I need to set broken rules and corresponding texts to a particular language (e.g. Czech). In windows application in works fine since Czech texts are built into StrataFrame core. With the web application broken rules texts are still in English even when the localization is set to 1029 and all texts read from&amp;nbsp;XML are in Czech version.&lt;/P&gt;&lt;P&gt;I set localization in Application_Start method in Global.asax file with the following code:&lt;/P&gt;&lt;FONT size=1&gt;&lt;P&gt;MicroFour.StrataFrame.UI.&lt;/FONT&gt;&lt;FONT color=#2b91af size=1&gt;&lt;FONT color=#2b91af size=1&gt;Localization&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;.MessageKeyType = MicroFour.StrataFrame.Messaging.&lt;/FONT&gt;&lt;FONT color=#2b91af size=1&gt;&lt;FONT color=#2b91af size=1&gt;MessageKeyDataType&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;.XML;&lt;/P&gt;&lt;P&gt;MicroFour.StrataFrame.UI.&lt;/FONT&gt;&lt;FONT color=#2b91af size=1&gt;&lt;FONT color=#2b91af size=1&gt;Localization&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;.MessageXmlPath = &lt;/FONT&gt;&lt;FONT color=#2b91af size=1&gt;&lt;FONT color=#2b91af size=1&gt;ConfigurationManager&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;.AppSettings[&lt;/FONT&gt;&lt;FONT color=#a31515 size=1&gt;&lt;FONT color=#a31515 size=1&gt;"LocalizationFilesPath"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;];&lt;/P&gt;&lt;P&gt;MicroFour.StrataFrame.UI.&lt;/FONT&gt;&lt;FONT color=#2b91af size=1&gt;&lt;FONT color=#2b91af size=1&gt;Localization&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=1&gt;.MessageLocaleID = 1029;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=1&gt;&lt;FONT size=2&gt;Am I doing something wrong?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=1&gt;&lt;FONT size=2&gt;Thank You&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=1&gt;&lt;FONT size=2&gt;Jiri Brazda&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Tue, 21 Apr 2009 11:04:04 GMT</pubDate><dc:creator>Jiri Brazda</dc:creator></item><item><title>RE: BrokenRules localization</title><link>http://forum.strataframe.net/FindPost22842.aspx</link><description>Well here is the example: when I try to save a record with an empty field that is contained in required field collection, I receive the following message:&lt;/P&gt;&lt;P&gt;"This field requires entry."&lt;/P&gt;&lt;P&gt;My MessageLocaleID is set to 1029. In winForms application this text is localized automatically from built-in texts. &lt;/P&gt;&lt;P&gt;If this is not supported in web apps, I will do it manually...&lt;FONT size=1&gt;&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Tue, 21 Apr 2009 11:04:04 GMT</pubDate><dc:creator>Jiri Brazda</dc:creator></item><item><title>RE: BrokenRules localization</title><link>http://forum.strataframe.net/FindPost22839.aspx</link><description>What pre-built text are you referring to here?&amp;nbsp; I can't think of anything that would apply on the web side.</description><pubDate>Tue, 21 Apr 2009 10:38:08 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: BrokenRules localization</title><link>http://forum.strataframe.net/FindPost22837.aspx</link><description>Yes it works in WinForms and not in web apps. I expect that it works in the same way as in WinForms -&amp;nbsp;it uses pre-built text where available.&lt;/P&gt;&lt;P&gt;There is a little difference that in Windows applications I'm using localization files as embedded resources but in web apps I'm using XML files - as described above; the reason is that I was unable to work with embedded XML files - the following code has caused an exception: &lt;FONT color=#008000 size=1&gt;&lt;FONT color=#008000 size=1&gt;&lt;/P&gt;&lt;P&gt;MicroFour.StrataFrame.UI.Localization.RegisterEmbeddedXmlFile(System.Reflection.Assembly.GetExecutingAssembly(), "MyNamespace.Localization_Files.Message_Languages.xml");&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description><pubDate>Tue, 21 Apr 2009 10:26:14 GMT</pubDate><dc:creator>Jiri Brazda</dc:creator></item><item><title>RE: BrokenRules localization</title><link>http://forum.strataframe.net/FindPost22827.aspx</link><description>Well, if this works in your WinForms and not in your web (which is what I am understanding you to say here) then it appears that you do not have all of your localization files distributed to the web.&amp;nbsp; Are you talking about custom keys or StrataFrame pre-built keys?</description><pubDate>Mon, 20 Apr 2009 16:16:57 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>