﻿<?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?)  » Localization beside of text/string</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 22 Sep 2026 11:06:52 GMT</lastBuildDate><ttl>20</ttl><item><title>Localization beside of text/string</title><link>http://forum.strataframe.net/FindPost12815.aspx</link><description>Hi,&lt;br&gt;
How could I localize my UI element such as icon, picture, edit mask, enum description, font, anything required beside of string?&lt;br&gt;
&lt;br&gt;
Thank you</description><pubDate>Wed, 28 Nov 2007 12:56:17 GMT</pubDate><dc:creator>Chan</dc:creator></item><item><title>RE: Localization beside of text/string</title><link>http://forum.strataframe.net/FindPost12853.aspx</link><description>Ivan's post is right on the money, you can also localize enums with the EnumDisplayValue attribute:&lt;/P&gt;&lt;P&gt;[codesnippet]Public Enum MyEnum As Integer&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;MicroFour.StrataFrame.UI.EnumDisplayValue("MyLocalizationKey",True)&amp;gt; _&lt;BR&gt;&amp;nbsp;&amp;nbsp; None = 0&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;MicroFour.StrataFrame.UI.EnumDisplayValue("MyLocalizationKey1",True)&amp;gt; _&lt;BR&gt;&amp;nbsp;&amp;nbsp; Apple = 1&lt;BR&gt;&amp;nbsp;&amp;nbsp; &amp;lt;MicroFour.StrataFrame.UI.EnumDisplayValue("MyLocalizationKey2",True)&amp;gt; _&lt;BR&gt;&amp;nbsp;&amp;nbsp; Orange = 2&lt;BR&gt;End Enum[/codesnippet]</description><pubDate>Wed, 28 Nov 2007 12:56:17 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Localization beside of text/string</title><link>http://forum.strataframe.net/FindPost12816.aspx</link><description>Hi Chan.&lt;/P&gt;&lt;P&gt;I'm not sure what you mean by localizing icon, picture, ... but as for an enum description, have a look at this post: &lt;A href="http://forum.strataframe.net/FindPost2712.aspx"&gt;http://forum.strataframe.net/FindPost2712.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You create the attributes and pass your Localization Key and True as your parameters.&lt;/P&gt;&lt;P&gt;For the others, I guess you can always check on your localization key and set the apropriate properties to their text or message contents, something like:&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;Me&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;.MyControl.Text = RetrieveTextValue(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;"My Localization Key"&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;Hope it helps. ;)</description><pubDate>Thu, 22 Nov 2007 16:58:36 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>