<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://telligent.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>How to: Localize a widget</title><link>http://telligent.com/community/developers/w/wiki/3546.aspx</link><description /><dc:language>en-US</dc:language><generator>6.x Production</generator><item><title>How to: Localize a widget</title><link>http://telligent.com/community/developers/w/wiki/3546.aspx</link><pubDate>Sun, 28 Aug 2011 18:48:23 GMT</pubDate><guid isPermaLink="false">92d67afb-f426-4529-b1c0-df597f24068f:3546</guid><dc:creator>Alex Crome</dc:creator><comments>http://telligent.com/community/developers/w/wiki/3546.aspx#comments</comments><description>Current Revision posted to Telligent Evolution 5.x Developer Documentation by Alex Crome on 8/28/2011 1:48:23 PM&lt;br /&gt;
&lt;p&gt;When you localize a widget, it pulls the language information from the language folder. If you put the language information in the Resources.xml file in the folder, then you do not have to specify which file to pull resources from in the code file. However, if you put your language specific text into a custom file, for example NewWidget_Resources.xml, then you will need to use the following procedure.&lt;/p&gt;
&lt;p&gt;To localize a widget:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Create a resource file in the ~/Languages/{Your Language}/ folder. When you create a resource file, you ensure that it will not be overwritten. The resource file in the following example is called NewWidget.xml.&amp;nbsp;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;pre class="brush: xml"&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; ?&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;root&amp;gt;&lt;br /&gt;  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_FragmentName&amp;quot;&amp;gt;My Info 2 (From Resource File)&amp;lt;/resource&amp;gt;&lt;br /&gt;  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_FragmentDescription&amp;quot;&amp;gt;This widget displays my personal information. (Configurable)&amp;lt;/resource&amp;gt;&lt;br /&gt;  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_Title&amp;quot;&amp;gt;Widget Title&amp;lt;/resource&amp;gt;&lt;br /&gt;  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_YourName_Title&amp;quot;&amp;gt;Name&amp;lt;/resource&amp;gt;&lt;br /&gt;  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_YourName_Default&amp;quot;&amp;gt;Your Name&amp;lt;/resource&amp;gt;&lt;br /&gt;  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_Location_Title&amp;quot;&amp;gt;Location&amp;lt;/resource&amp;gt;&lt;br /&gt;  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_Location_Default&amp;quot;&amp;gt;Your Location&amp;lt;/resource&amp;gt;&lt;br /&gt;  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_Occupation_Title&amp;quot;&amp;gt;Occupation&amp;lt;/resource&amp;gt;&lt;br /&gt;  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_Occupation_Default&amp;quot;&amp;gt;Your Occupation&amp;lt;/resource&amp;gt;&lt;br /&gt;&amp;lt;/root&amp;gt;&lt;br /&gt;&lt;/pre&gt;
&lt;ul&gt;&lt;li&gt;
&lt;p&gt;In&amp;nbsp;the widget code file,&amp;nbsp;use the &lt;span style="font-family:courier new,courier;"&gt;CommunityServer.Components.ResourceManager &lt;/span&gt;class to retrieve localized strings from your Resource file (~/Languages/{your language}/{YourFile.xml}).&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;pre class="brush: c#"&gt;public override stringFragmentDescription&lt;br /&gt;{&lt;br /&gt;    get&lt;br /&gt;    {&lt;br /&gt;        CommunityServer.Components.ResourceManager.GetString(&lt;br /&gt;                &amp;quot;NewWidget_MyInfoConfigurableWidget_FragmentDescription&amp;quot;&lt;br /&gt;                , &amp;quot;NewWidget.xml&amp;quot;);&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;
&lt;ul&gt;&lt;li&gt;
&lt;p&gt;In the User Control section, use the &lt;span style="font-family:courier new,courier;"&gt;&amp;lt;CSControl:ResourceControl.. /&amp;gt;&lt;/span&gt; to retrieve localized strings from your Resource file:&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;pre class="brush: xml"&gt;&amp;lt;%@ Control Language=&amp;quot;C#&amp;quot;AutoEventWireup=&amp;quot;true&amp;quot; %&amp;gt;&lt;br /&gt;&amp;lt;div&amp;gt;&lt;br /&gt;    &amp;lt;p&amp;gt;&lt;br /&gt;        &amp;lt;b&amp;gt;&amp;lt;CSControl:ResourceControl runat=&amp;quot;server&amp;quot;ResourceName=&amp;quot;NewWidget_MyInfoConfigurableWidget_YourName_Title&amp;quot; ResourceFile=&amp;quot;NewWidget.xml&amp;quot; /&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;        &amp;lt;cscontrol:configurablecontentfragmentdata property=&amp;quot;Name&amp;quot;runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;br /&gt;    &amp;lt;/p&amp;gt;&lt;br /&gt;    &amp;lt;p&amp;gt;&lt;br /&gt;        &amp;lt;b&amp;gt;&amp;lt;CSControl:ResourceControl runat=&amp;quot;server&amp;quot;ResourceName=&amp;quot;NewWidget_MyInfoConfigurableWidget_Location_Title&amp;quot; ResourceFile=&amp;quot;NewWidget.xml&amp;quot; /&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;        &amp;lt;cscontrol:configurablecontentfragmentdata property=&amp;quot;Location&amp;quot;runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;br /&gt;    &amp;lt;/p&amp;gt;&lt;br /&gt;    &amp;lt;p&amp;gt;&lt;br /&gt;        &amp;lt;b&amp;gt;&amp;lt;CSControl:ResourceControl runat=&amp;quot;server&amp;quot;ResourceName=&amp;quot;NewWidget_MyInfoConfigurableWidget_Occupation_Title&amp;quot; ResourceFile=&amp;quot;NewWidget.xml&amp;quot; /&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;        &amp;lt;cscontrol:configurablecontentfragmentdata property=&amp;quot;Occupation&amp;quot;runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;br /&gt;    &amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;/pre&gt;
&lt;ul&gt;&lt;li&gt;Ensure the&amp;nbsp;the strings are set up in the resources.xml file. Based on the same code above, the widget may look something like this:&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&lt;img src="/files/media/docs/Images/CS5/Developers/localize-widget1.png" border="0" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;div&gt;&lt;/div&gt;
&lt;p&gt;&lt;span style="color:#009900;"&gt;&lt;span style="font-weight:bold;color:#000000;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;&lt;/ol&gt;

&lt;div style="font-size: 90%;"&gt;Tags: how to, Localization, widgets&lt;/div&gt;
</description></item><item><title>How to: Localize a widget</title><link>http://telligent.com/community/developers/w/wiki/3546/revision/6.aspx</link><pubDate>Thu, 14 Oct 2010 17:19:30 GMT</pubDate><guid isPermaLink="false">92d67afb-f426-4529-b1c0-df597f24068f:21259</guid><dc:creator>Rob Howard</dc:creator><comments>http://telligent.com/community/developers/w/wiki/3546.aspx#comments</comments><description>Revision 6 posted to Telligent Evolution 5.x Developer Documentation by Rob Howard on 10/14/2010 12:19:30 PM&lt;br /&gt;
&lt;p&gt;When you localize a widget, it pulls the language information from the language folder. If you put the language information in the Resources.xml file in the folder, then you do not have to specify which file to pull resources from in the code file. However, if you put your language specific text into a custom file, for example NewWidget_Resources.xml, then you will need to use the following procedure.&lt;/p&gt;
&lt;p&gt;To localize a widget:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Create a resource file in the ~/Languages/{Your Language}/ folder. When you create a resource file, you ensure that it will not be overwritten. The resource file in the following example is called NewWidget.xml.&amp;nbsp;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;pre class="brush: xml"&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; ?&amp;gt;

&amp;lt;root&amp;gt;
  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_FragmentName&amp;quot;&amp;gt;My Info 2 (From Resource File)&amp;lt;/resource&amp;gt;
  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_FragmentDescription&amp;quot;&amp;gt;This widget displays my personal information. (Configurable)&amp;lt;/resource&amp;gt;
  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_Title&amp;quot;&amp;gt;Widget Title&amp;lt;/resource&amp;gt;
  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_YourName_Title&amp;quot;&amp;gt;Name&amp;lt;/resource&amp;gt;
  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_YourName_Default&amp;quot;&amp;gt;Your Name&amp;lt;/resource&amp;gt;
  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_Location_Title&amp;quot;&amp;gt;Location&amp;lt;/resource&amp;gt;
  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_Location_Default&amp;quot;&amp;gt;Your Location&amp;lt;/resource&amp;gt;
  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_Occupation_Title&amp;quot;&amp;gt;Occupation&amp;lt;/resource&amp;gt;
  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_Occupation_Default&amp;quot;&amp;gt;Your Occupation&amp;lt;/resource&amp;gt;
&amp;lt;/root&amp;gt;
&lt;/pre&gt;
&lt;ul&gt;&lt;li&gt;
&lt;p&gt;In&amp;nbsp;the widget code file,&amp;nbsp;use the &lt;span style="font-family:courier new,courier;"&gt;CommunityServer.Components.ResourceManager &lt;/span&gt;class to retrieve localized strings from your Resource file (~/Languages/{your language}/{YourFile.xml}).&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;pre class="brush: c#"&gt;public override stringFragmentDescription
{
    get
    {
        CommunityServer.Components.ResourceManager.GetString(
                &amp;quot;NewWidget_MyInfoConfigurableWidget_FragmentDescription&amp;quot;
                , &amp;quot;NewWidget.xml&amp;quot;);
    }
}
&lt;/pre&gt;
&lt;ul&gt;&lt;li&gt;
&lt;p&gt;In the User Control section, use the &lt;span style="font-family:courier new,courier;"&gt;&amp;lt;CSControl:ResourceControl.. /&amp;gt;&lt;/span&gt; to retrieve localized strings from your Resource file:&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;pre class="brush: xml"&gt;&amp;lt;%@ Control Language=&amp;quot;C#&amp;quot;AutoEventWireup=&amp;quot;true&amp;quot; %&amp;gt;
&amp;lt;div&amp;gt;
    &amp;lt;p&amp;gt;
        &amp;lt;b&amp;gt;&amp;lt;CSControl:ResourceControl runat=&amp;quot;server&amp;quot;ResourceName=&amp;quot;NewWidget_MyInfoConfigurableWidget_YourName_Title&amp;quot; ResourceFile=&amp;quot;NewWidget.xml&amp;quot; /&amp;gt;&amp;lt;/b&amp;gt;
        &amp;lt;cscontrol:configurablecontentfragmentdata property=&amp;quot;Name&amp;quot;runat=&amp;quot;server&amp;quot; /&amp;gt;
    &amp;lt;/p&amp;gt;
    &amp;lt;p&amp;gt;
        &amp;lt;b&amp;gt;&amp;lt;CSControl:ResourceControl runat=&amp;quot;server&amp;quot;ResourceName=&amp;quot;NewWidget_MyInfoConfigurableWidget_Location_Title&amp;quot; ResourceFile=&amp;quot;NewWidget.xml&amp;quot; /&amp;gt;&amp;lt;/b&amp;gt;
        &amp;lt;cscontrol:configurablecontentfragmentdata property=&amp;quot;Location&amp;quot;runat=&amp;quot;server&amp;quot; /&amp;gt;
    &amp;lt;/p&amp;gt;
    &amp;lt;p&amp;gt;
        &amp;lt;b&amp;gt;&amp;lt;CSControl:ResourceControl runat=&amp;quot;server&amp;quot;ResourceName=&amp;quot;NewWidget_MyInfoConfigurableWidget_Occupation_Title&amp;quot; ResourceFile=&amp;quot;NewWidget.xml&amp;quot; /&amp;gt;&amp;lt;/b&amp;gt;
        &amp;lt;cscontrol:configurablecontentfragmentdata property=&amp;quot;Occupation&amp;quot;runat=&amp;quot;server&amp;quot; /&amp;gt;
    &amp;lt;/p&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/pre&gt;
&lt;ul&gt;&lt;li&gt;Ensure the&amp;nbsp;the strings are set up in the resources.xml file. Based on the same code above, the widget may look something like this:&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&lt;img src="/files/media/docs/Images/CS5/Developers/localize-widget1.png" style="max-width:550px;" border="0" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/productfaqs/5314.localizeWidgetView.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div&gt;&lt;/div&gt;
&lt;p&gt;&lt;span style="color:#009900;"&gt;&lt;span style="font-weight:bold;color:#000000;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/productfaqs/5314.localizeWidgetView.png"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;&lt;/ol&gt;

&lt;div style="font-size: 90%;"&gt;Tags: widgets, Localization, how to&lt;/div&gt;
</description></item><item><title>How to: Localize a widget</title><link>http://telligent.com/community/developers/w/wiki/3546/revision/5.aspx</link><pubDate>Tue, 05 Oct 2010 17:52:11 GMT</pubDate><guid isPermaLink="false">92d67afb-f426-4529-b1c0-df597f24068f:20652</guid><dc:creator>Rob Howard</dc:creator><comments>http://telligent.com/community/developers/w/wiki/3546.aspx#comments</comments><description>Revision 5 posted to Telligent Evolution 5.x Developer Documentation by Rob Howard on 10/5/2010 12:52:11 PM&lt;br /&gt;
&lt;p&gt;When you localize a widget, it pulls the language information from the language folder. If you put the language information in the Resources.xml file in the folder, then you do not have to specify which file to pull resources from in the code file. However, if you put your language specific text into a custom file, for example NewWidget_Resources.xml, then you will need to use the following procedure.&lt;/p&gt;
&lt;p&gt;To localize a widget:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Create a resource file in the ~/Languages/{Your Language}/ folder. When you create a resource file, you ensure that it will not be overwritten. The resource file in the following example is called NewWidget.xml.&amp;nbsp;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;pre&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; ?&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;root&amp;gt;&lt;br /&gt;  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_FragmentName&amp;quot;&amp;gt;My Info 2 (From Resource File)&amp;lt;/resource&amp;gt;&lt;br /&gt;  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_FragmentDescription&amp;quot;&amp;gt;This widget displays my personal information. (Configurable)&amp;lt;/resource&amp;gt;&lt;br /&gt;  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_Title&amp;quot;&amp;gt;Widget Title&amp;lt;/resource&amp;gt;&lt;br /&gt;  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_YourName_Title&amp;quot;&amp;gt;Name&amp;lt;/resource&amp;gt;&lt;br /&gt;  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_YourName_Default&amp;quot;&amp;gt;Your Name&amp;lt;/resource&amp;gt;&lt;br /&gt;  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_Location_Title&amp;quot;&amp;gt;Location&amp;lt;/resource&amp;gt;&lt;br /&gt;  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_Location_Default&amp;quot;&amp;gt;Your Location&amp;lt;/resource&amp;gt;&lt;br /&gt;  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_Occupation_Title&amp;quot;&amp;gt;Occupation&amp;lt;/resource&amp;gt;&lt;br /&gt;  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_Occupation_Default&amp;quot;&amp;gt;Your Occupation&amp;lt;/resource&amp;gt;&lt;br /&gt;&amp;lt;/root&amp;gt;&lt;/pre&gt;
&lt;ul&gt;&lt;li&gt;
&lt;p&gt;In&amp;nbsp;the widget code file,&amp;nbsp;use the &lt;span style="font-family:courier new,courier;"&gt;CommunityServer.Components.ResourceManager &lt;/span&gt;class to retrieve localized strings from your Resource file (~/Languages/{your language}/{YourFile.xml}).&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;public override stringFragmentDescription&lt;br /&gt;{&lt;br /&gt;    get&lt;br /&gt;    {&lt;br /&gt;        CommunityServer.Components.ResourceManager.GetString(&lt;br /&gt;                &amp;quot;NewWidget_MyInfoConfigurableWidget_FragmentDescription&amp;quot;&lt;br /&gt;                , &amp;quot;NewWidget.xml&amp;quot;);&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;
&lt;ul&gt;&lt;li&gt;
&lt;p&gt;In the User Control section, use the &lt;span style="font-family:courier new,courier;"&gt;&amp;lt;CSControl:ResourceControl.. /&amp;gt;&lt;/span&gt; to retrieve localized strings from your Resource file:&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;&amp;lt;%@ Control Language=&amp;quot;C#&amp;quot;AutoEventWireup=&amp;quot;true&amp;quot; %&amp;gt;&lt;br /&gt;&amp;lt;div&amp;gt;&lt;br /&gt;    &amp;lt;p&amp;gt;&lt;br /&gt;        &amp;lt;b&amp;gt;&amp;lt;CSControl:ResourceControl runat=&amp;quot;server&amp;quot;ResourceName=&amp;quot;NewWidget_MyInfoConfigurableWidget_YourName_Title&amp;quot; ResourceFile=&amp;quot;NewWidget.xml&amp;quot; /&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;        &amp;lt;cscontrol:configurablecontentfragmentdata property=&amp;quot;Name&amp;quot;runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;br /&gt;    &amp;lt;/p&amp;gt;&lt;br /&gt;    &amp;lt;p&amp;gt;&lt;br /&gt;        &amp;lt;b&amp;gt;&amp;lt;CSControl:ResourceControl runat=&amp;quot;server&amp;quot;ResourceName=&amp;quot;NewWidget_MyInfoConfigurableWidget_Location_Title&amp;quot; ResourceFile=&amp;quot;NewWidget.xml&amp;quot; /&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;        &amp;lt;cscontrol:configurablecontentfragmentdata property=&amp;quot;Location&amp;quot;runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;br /&gt;    &amp;lt;/p&amp;gt;&lt;br /&gt;    &amp;lt;p&amp;gt;&lt;br /&gt;        &amp;lt;b&amp;gt;&amp;lt;CSControl:ResourceControl runat=&amp;quot;server&amp;quot;ResourceName=&amp;quot;NewWidget_MyInfoConfigurableWidget_Occupation_Title&amp;quot; ResourceFile=&amp;quot;NewWidget.xml&amp;quot; /&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;        &amp;lt;cscontrol:configurablecontentfragmentdata property=&amp;quot;Occupation&amp;quot;runat=&amp;quot;server&amp;quot; /&amp;gt;&lt;br /&gt;    &amp;lt;/p&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;/pre&gt;
&lt;ul&gt;&lt;li&gt;Ensure the&amp;nbsp;the strings are set up in the resources.xml file. Based on the same code above, the widget may look something like this:&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&lt;img src="/files/media/docs/Images/CS5/Developers/localize-widget1.png" style="max-width:550px;" border="0" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/productfaqs/5314.localizeWidgetView.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div&gt;&lt;/div&gt;
&lt;p&gt;&lt;span style="color:#009900;"&gt;&lt;span style="font-weight:bold;color:#000000;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/productfaqs/5314.localizeWidgetView.png"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;&lt;/ol&gt;

&lt;div style="font-size: 90%;"&gt;Tags: widget, localize, how to&lt;/div&gt;
</description></item><item><title>Localize a widget</title><link>http://telligent.com/community/developers/w/wiki/3546/revision/4.aspx</link><pubDate>Fri, 16 Apr 2010 12:07:15 GMT</pubDate><guid isPermaLink="false">92d67afb-f426-4529-b1c0-df597f24068f:20414</guid><dc:creator>Alex Crome</dc:creator><comments>http://telligent.com/community/developers/w/wiki/3546.aspx#comments</comments><description>Revision 4 posted to Telligent Evolution 5.x Developer Documentation by Alex Crome on 4/16/2010 7:07:15 AM&lt;br /&gt;
&lt;p&gt;When you localize a widget, it pulls the language information from the language folder. If you put the language information in the Resources.xml file in the folder, then you do not have to specify which file to pull resources from in the code file. However, if you put your language specific text into a custom file, for example NewWidget_Resources.xml, then you will need to use the following procedure.&lt;/p&gt;
&lt;p&gt;To localize a widget:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Create a resource file in the ~/Languages/{Your Language}/ folder. When you create a resource file, you ensure that it will not be overwritten. The resource file in the following example is called NewWidget.xml.&amp;nbsp;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;pre&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; ?&amp;gt;

&amp;lt;root&amp;gt;
  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_FragmentName&amp;quot;&amp;gt;My Info 2 (From Resource File)&amp;lt;/resource&amp;gt;
  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_FragmentDescription&amp;quot;&amp;gt;This widget displays my personal information. (Configurable)&amp;lt;/resource&amp;gt;
  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_Title&amp;quot;&amp;gt;Widget Title&amp;lt;/resource&amp;gt;
  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_YourName_Title&amp;quot;&amp;gt;Name&amp;lt;/resource&amp;gt;
  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_YourName_Default&amp;quot;&amp;gt;Your Name&amp;lt;/resource&amp;gt;
  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_Location_Title&amp;quot;&amp;gt;Location&amp;lt;/resource&amp;gt;
  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_Location_Default&amp;quot;&amp;gt;Your Location&amp;lt;/resource&amp;gt;
  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_Occupation_Title&amp;quot;&amp;gt;Occupation&amp;lt;/resource&amp;gt;
  &amp;lt;resource name=&amp;quot;NewWidget_MyInfoConfigurableWidget_Occupation_Default&amp;quot;&amp;gt;Your Occupation&amp;lt;/resource&amp;gt;
&amp;lt;/root&amp;gt;&lt;/pre&gt;
&lt;ul&gt;&lt;li&gt;
&lt;p&gt;In&amp;nbsp;the widget code file,&amp;nbsp;use the &lt;span style="font-family:courier new,courier;"&gt;CommunityServer.Components.ResourceManager &lt;/span&gt;class to retrieve localized strings from your Resource file (~/Languages/{your language}/{YourFile.xml}).&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;public override stringFragmentDescription
{
    get&lt;br /&gt;    {&lt;br /&gt;        CommunityServer.Components.ResourceManager.GetString(&lt;br /&gt;                &amp;quot;NewWidget_MyInfoConfigurableWidget_FragmentDescription&amp;quot;&lt;br /&gt;                , &amp;quot;NewWidget.xml&amp;quot;);&lt;br /&gt;    }&lt;br /&gt;}&lt;/pre&gt;
&lt;ul&gt;&lt;li&gt;
&lt;p&gt;In the User Control section, use the &lt;span style="font-family:courier new,courier;"&gt;&amp;lt;CSControl:ResourceControl.. /&amp;gt;&lt;/span&gt; to retrieve localized strings from your Resource file:&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;&amp;lt;%@ Control Language=&amp;quot;C#&amp;quot;AutoEventWireup=&amp;quot;true&amp;quot; %&amp;gt;
&amp;lt;div&amp;gt;
    &amp;lt;p&amp;gt;
        &amp;lt;b&amp;gt;&amp;lt;CSControl:ResourceControl runat=&amp;quot;server&amp;quot;ResourceName=&amp;quot;NewWidget_MyInfoConfigurableWidget_YourName_Title&amp;quot; ResourceFile=&amp;quot;NewWidget.xml&amp;quot; /&amp;gt;&amp;lt;/b&amp;gt;
        &amp;lt;cscontrol:configurablecontentfragmentdata property=&amp;quot;Name&amp;quot;runat=&amp;quot;server&amp;quot; /&amp;gt;
    &amp;lt;/p&amp;gt;
    &amp;lt;p&amp;gt;
        &amp;lt;b&amp;gt;&amp;lt;CSControl:ResourceControl runat=&amp;quot;server&amp;quot;ResourceName=&amp;quot;NewWidget_MyInfoConfigurableWidget_Location_Title&amp;quot; ResourceFile=&amp;quot;NewWidget.xml&amp;quot; /&amp;gt;&amp;lt;/b&amp;gt;
        &amp;lt;cscontrol:configurablecontentfragmentdata property=&amp;quot;Location&amp;quot;runat=&amp;quot;server&amp;quot; /&amp;gt;
    &amp;lt;/p&amp;gt;
    &amp;lt;p&amp;gt;
        &amp;lt;b&amp;gt;&amp;lt;CSControl:ResourceControl runat=&amp;quot;server&amp;quot;ResourceName=&amp;quot;NewWidget_MyInfoConfigurableWidget_Occupation_Title&amp;quot; ResourceFile=&amp;quot;NewWidget.xml&amp;quot; /&amp;gt;&amp;lt;/b&amp;gt;
        &amp;lt;cscontrol:configurablecontentfragmentdata property=&amp;quot;Occupation&amp;quot;runat=&amp;quot;server&amp;quot; /&amp;gt;
    &amp;lt;/p&amp;gt;
&amp;lt;/div&amp;gt;&lt;/pre&gt;
&lt;ul&gt;&lt;li&gt;Ensure the&amp;nbsp;the strings are set up in the resources.xml file. Based on the same code above, the widget may look something like this:&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&lt;img src="/files/media/docs/Images/CS5/Developers/localize-widget1.png" border="0" style="max-width:550px;" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/productfaqs/5314.localizeWidgetView.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div&gt;&lt;/div&gt;
&lt;p&gt;&lt;span style="color:#009900;"&gt;&lt;span style="font-weight:bold;color:#000000;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/productfaqs/5314.localizeWidgetView.png"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;&lt;/ol&gt;

&lt;div style="font-size: 90%;"&gt;Tags: widget, localize&lt;/div&gt;
</description></item><item><title>Localize a widget</title><link>http://telligent.com/community/developers/w/wiki/3546/revision/3.aspx</link><pubDate>Thu, 10 Dec 2009 14:48:45 GMT</pubDate><guid isPermaLink="false">92d67afb-f426-4529-b1c0-df597f24068f:17178</guid><dc:creator>Alex Crome</dc:creator><comments>http://telligent.com/community/developers/w/wiki/3546.aspx#comments</comments><description>Revision 3 posted to Telligent Evolution 5.x Developer Documentation by Alex Crome on 12/10/2009 8:48:45 AM&lt;br /&gt;
&lt;p&gt;When you localize a widget, it pulls the language information from the language folder. If you put the language information in the Resources.xml file in the folder, then you do not have to specify which file to pull resources from in the code file. However, if you put your language specific text into a custom file, for example NewWidget_Resources.xml, then you will need to use the following procedure.&lt;/p&gt;
&lt;p&gt;To localize a widget:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Create a resource file in the ~/Languages/{Your Language}/ folder. When you create a resource file, you ensure that it will not be overwritten. The resource file in the following example is called NewWidget.xml.&amp;nbsp;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div style="background-color:#eee;padding:1em;font-family:courier new,courier;"&gt;
&lt;p&gt;&lt;span style="color:#009900;"&gt;&lt;span style="font-weight:bold;color:#000000;"&gt;&lt;span style="font-family:courier new,courier;"&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; ?&amp;gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;padding:0;background:none;"&gt;&lt;span style="color:#009900;"&gt;&lt;span style="font-weight:bold;color:#000000;"&gt;&lt;span style="font-family:courier new,courier;"&gt;&amp;lt;root&lt;span style="font-weight:bold;color:#000000;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_FragmentName&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;My Info 2 (From Resource File)&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_FragmentDescription&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;This widget displays my personal information. (Configurable)&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_Title&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;Widget Title&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_YourName_Title&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;Name&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_YourName_Default&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;Your Name&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_Location_Title&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;Location&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_Location_Default&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;Your Location&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_Occupation_Title&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;Occupation&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_Occupation_Default&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;Your Occupation&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/root&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;
&lt;p&gt;In&amp;nbsp;the widget code file,&amp;nbsp;use the &lt;span style="font-family:courier new,courier;"&gt;CommunityServer.Components.ResourceManager &lt;/span&gt;class to retrieve localized strings from your Resource file (~/Languages/{your language}/{YourFile.xml}).&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div style="background-color:#eee;padding:1em;font-family:courier new,courier;"&gt;
&lt;p&gt;&lt;span style="color:#0600FF;"&gt;public&lt;/span&gt; &lt;span style="color:#0600FF;"&gt;override&lt;/span&gt; &lt;span style="color:#FF0000;"&gt;string&lt;/span&gt;FragmentDescription&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;{&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; get &lt;span style="color:#000000;"&gt;{&lt;/span&gt; &lt;span style="color:#0600FF;"&gt;return&lt;/span&gt;ResourceManager.&lt;span style="color:#0000FF;"&gt;GetString&lt;/span&gt;&lt;span style="color:#000000;"&gt;(&lt;/span&gt;&lt;span style="color:#666666;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_FragmentDescription&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;"&gt;, &lt;/span&gt;&lt;span style="color:#666666;"&gt;&amp;quot;NewWidget.&lt;/span&gt;&lt;span style="color:#666666;"&gt;xml&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;"&gt;)&lt;/span&gt;&lt;span style="color:#008000;"&gt;;&lt;/span&gt; &lt;span style="color:#000000;"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;
&lt;p&gt;In the User Control section, use the &lt;span style="font-family:courier new,courier;"&gt;&amp;lt;CSControl:ResourceControl.. /&amp;gt;&lt;/span&gt; to retrieve localized strings from your Resource file:&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div style="background-color:#eee;padding:1em;font-family:courier new,courier;"&gt;
&lt;p&gt;&lt;span style="color:#009900;"&gt;&lt;span style="font-weight:bold;color:#000000;"&gt;&lt;span style="font-family:courier new,courier;"&gt;&amp;lt;%@ Control &lt;span style="color:#000066;"&gt;Language&lt;/span&gt;&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;C#&amp;quot;&lt;/span&gt;AutoEventWireup&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;true&amp;quot;&lt;/span&gt; %&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#009900;"&gt;&amp;lt;&lt;a style="color:#000060;" href="http://december.com/html/4/element/div.html"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;div&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;a style="color:#000060;" href="http://december.com/html/4/element/p.html"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;p&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;a style="color:#000060;" href="http://december.com/html/4/element/b.html"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;b&lt;/span&gt;&lt;/a&gt;&amp;gt;&amp;lt;CSControl:ResourceControl runat&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;server&amp;quot;&lt;/span&gt;ResourceName&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_YourName_Title&amp;quot; &lt;/span&gt;&lt;/span&gt;&lt;span style="color:#009900;"&gt;ResourceFile&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget.xml&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#009900;"&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt; &lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&amp;gt;&amp;lt;&lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&lt;a style="color:#000060;" href="http://december.com/html/4/element/b.html"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;b&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;cscontrol:configurablecontentfragmentdata property&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;Name&amp;quot;&lt;/span&gt;runat&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;server&amp;quot;&lt;/span&gt; &lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&lt;a style="color:#000060;" href="http://december.com/html/4/element/p.html"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;p&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;a style="color:#000060;" href="http://december.com/html/4/element/p.html"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;p&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;a style="color:#000060;" href="http://december.com/html/4/element/b.html"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;b&lt;/span&gt;&lt;/a&gt;&amp;gt;&amp;lt;CSControl:ResourceControl runat&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;server&amp;quot;&lt;/span&gt;ResourceName&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_Location_Title&amp;quot; &lt;/span&gt;&lt;/span&gt;&lt;span style="color:#009900;"&gt;ResourceFile&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget.xml&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#009900;"&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt; &lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&amp;gt;&amp;lt;&lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&lt;a style="color:#000060;" href="http://december.com/html/4/element/b.html"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;b&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;cscontrol:configurablecontentfragmentdata property&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;Location&amp;quot;&lt;/span&gt;runat&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;server&amp;quot;&lt;/span&gt; &lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&lt;a style="color:#000060;" href="http://december.com/html/4/element/p.html"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;p&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;a style="color:#000060;" href="http://december.com/html/4/element/p.html"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;p&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;a style="color:#000060;" href="http://december.com/html/4/element/b.html"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;b&lt;/span&gt;&lt;/a&gt;&amp;gt;&amp;lt;CSControl:ResourceControl runat&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;server&amp;quot;&lt;/span&gt;ResourceName&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_Occupation_Title&amp;quot; &lt;/span&gt;&lt;/span&gt;&lt;span style="color:#009900;"&gt;ResourceFile&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget.xml&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#009900;"&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt; &lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&amp;gt;&amp;lt;&lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&lt;a style="color:#000060;" href="http://december.com/html/4/element/b.html"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;b&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;cscontrol:configurablecontentfragmentdata property&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;Occupation&amp;quot;&lt;/span&gt;runat&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;server&amp;quot;&lt;/span&gt; &lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&lt;a style="color:#000060;" href="http://december.com/html/4/element/p.html"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;p&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#009900;"&gt;&amp;lt;&lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&lt;a style="color:#000060;" href="http://december.com/html/4/element/div.html"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;div&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;Ensure the&amp;nbsp;the strings are set up in the resources.xml file. Based on the same code above, the widget may look something like this:&lt;/li&gt;
&lt;/ul&gt;&lt;p&gt;&amp;nbsp;&lt;img style="max-width:550px;" border="0" src="/files/media/docs/Images/CS5/Developers/localize-widget1.png" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/productfaqs/5314.localizeWidgetView.png"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div&gt;&lt;/div&gt;
&lt;p&gt;&lt;span style="color:#009900;"&gt;&lt;span style="font-weight:bold;color:#000000;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/productfaqs/5314.localizeWidgetView.png"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;&lt;/ol&gt;

&lt;div style="font-size: 90%;"&gt;Tags: widget, localize&lt;/div&gt;
</description></item><item><title>Localize a widget</title><link>http://telligent.com/community/developers/w/wiki/3546/revision/2.aspx</link><pubDate>Mon, 31 Aug 2009 10:36:57 GMT</pubDate><guid isPermaLink="false">92d67afb-f426-4529-b1c0-df597f24068f:13875</guid><dc:creator>Alex Crome</dc:creator><comments>http://telligent.com/community/developers/w/wiki/3546.aspx#comments</comments><description>Revision 2 posted to Telligent Evolution 5.x Developer Documentation by Alex Crome on 8/31/2009 5:36:57 AM&lt;br /&gt;
&lt;p&gt;When you localize a widget, it pulls the language information from the language folder. If you put the language information in the Resources.xml file in the folder, then you do not have to specify which file to pull resources from in the code file. However, if you put your language specific text into a custom file, for example NewWidget_Resources.xml, then you will need to use the following procedure.&lt;/p&gt;
&lt;p&gt;To localize a widget:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Create a resource file in the ~/Languages/{Your Language}/ folder. When you create a resource file, you ensure that it will not be overwritten. The resource file in the following example is called NewWidget.xml.&amp;nbsp;&lt;/p&gt;
&lt;/li&gt;
&lt;div style="background-color:#eee;padding:1em;font-family:courier new,courier;"&gt;
&lt;p&gt;&lt;span style="color:#009900;"&gt;&lt;span style="font-weight:bold;color:#000000;"&gt;&lt;span style="font-family:courier new,courier;"&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; ?&amp;gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;padding:0;background:none;"&gt;&lt;span style="color:#009900;"&gt;&lt;span style="font-weight:bold;color:#000000;"&gt;&lt;span style="font-family:courier new,courier;"&gt;&amp;lt;root&lt;span style="font-weight:bold;color:#000000;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_FragmentName&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;My Info 2 (From Resource File)&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_FragmentDescription&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;This widget displays my personal information. (Configurable)&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_Title&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;Widget Title&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_YourName_Title&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;Name&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_YourName_Default&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;Your Name&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_Location_Title&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;Location&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_Location_Default&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;Your Location&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_Occupation_Title&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;Occupation&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_Occupation_Default&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;Your Occupation&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/root&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;li&gt;
&lt;p&gt;In&amp;nbsp;the widget code file,&amp;nbsp;use the &lt;span style="font-family:courier new,courier;"&gt;CommunityServer.Components.ResourceManager &lt;/span&gt;class to retrieve localized strings from your Resource file (~/Languages/{your language}/{YourFile.xml}).&lt;/p&gt;
&lt;/li&gt;
&lt;div style="background-color:#eee;padding:1em;font-family:courier new,courier;"&gt;
&lt;p&gt;&lt;span style="color:#0600FF;"&gt;public&lt;/span&gt; &lt;span style="color:#0600FF;"&gt;override&lt;/span&gt; &lt;span style="color:#FF0000;"&gt;string&lt;/span&gt;FragmentDescription&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;{&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; get &lt;span style="color:#000000;"&gt;{&lt;/span&gt; &lt;span style="color:#0600FF;"&gt;return&lt;/span&gt;ResourceManager.&lt;span style="color:#0000FF;"&gt;GetString&lt;/span&gt;&lt;span style="color:#000000;"&gt;(&lt;/span&gt;&lt;span style="color:#666666;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_FragmentDescription&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;"&gt;, &lt;/span&gt;&lt;span style="color:#666666;"&gt;&amp;quot;NewWidget.&lt;/span&gt;&lt;span style="color:#666666;"&gt;xml&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;"&gt;)&lt;/span&gt;&lt;span style="color:#008000;"&gt;;&lt;/span&gt; &lt;span style="color:#000000;"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;li&gt;
&lt;p&gt;In the User Control section, use the &lt;span style="font-family:courier new,courier;"&gt;&amp;lt;CSControl:ResourceControl.. /&amp;gt;&lt;/span&gt; to retrieve localized strings from your Resource file:&lt;/p&gt;
&lt;/li&gt;
&lt;div style="background-color:#eee;padding:1em;font-family:courier new,courier;"&gt;
&lt;p&gt;&lt;span style="color:#009900;"&gt;&lt;span style="font-weight:bold;color:#000000;"&gt;&lt;span style="font-family:courier new,courier;"&gt;&amp;lt;%@ Control &lt;span style="color:#000066;"&gt;Language&lt;/span&gt;&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;C#&amp;quot;&lt;/span&gt;AutoEventWireup&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;true&amp;quot;&lt;/span&gt; %&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#009900;"&gt;&amp;lt;&lt;a href="http://december.com/html/4/element/div.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;div&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;a href="http://december.com/html/4/element/p.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;p&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;a href="http://december.com/html/4/element/b.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;b&lt;/span&gt;&lt;/a&gt;&amp;gt;&amp;lt;CSControl:ResourceControl runat&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;server&amp;quot;&lt;/span&gt;ResourceName&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_YourName_Title&amp;quot; &lt;/span&gt;&lt;/span&gt;&lt;span style="color:#009900;"&gt;ResourceFile&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget.xml&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#009900;"&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt; &lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&amp;gt;&amp;lt;&lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/b.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;b&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;cscontrol:configurablecontentfragmentdata property&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;Name&amp;quot;&lt;/span&gt;runat&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;server&amp;quot;&lt;/span&gt; &lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/p.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;p&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;a href="http://december.com/html/4/element/p.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;p&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;a href="http://december.com/html/4/element/b.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;b&lt;/span&gt;&lt;/a&gt;&amp;gt;&amp;lt;CSControl:ResourceControl runat&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;server&amp;quot;&lt;/span&gt;ResourceName&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_Location_Title&amp;quot; &lt;/span&gt;&lt;/span&gt;&lt;span style="color:#009900;"&gt;ResourceFile&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget.xml&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#009900;"&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt; &lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&amp;gt;&amp;lt;&lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/b.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;b&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;cscontrol:configurablecontentfragmentdata property&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;Location&amp;quot;&lt;/span&gt;runat&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;server&amp;quot;&lt;/span&gt; &lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/p.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;p&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;a href="http://december.com/html/4/element/p.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;p&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;a href="http://december.com/html/4/element/b.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;b&lt;/span&gt;&lt;/a&gt;&amp;gt;&amp;lt;CSControl:ResourceControl runat&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;server&amp;quot;&lt;/span&gt;ResourceName&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_Occupation_Title&amp;quot; &lt;/span&gt;&lt;/span&gt;&lt;span style="color:#009900;"&gt;ResourceFile&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget.xml&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#009900;"&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt; &lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&amp;gt;&amp;lt;&lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/b.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;b&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;cscontrol:configurablecontentfragmentdata property&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;Occupation&amp;quot;&lt;/span&gt;runat&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;server&amp;quot;&lt;/span&gt; &lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/p.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;p&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#009900;"&gt;&amp;lt;&lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/div.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;div&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;li&gt;Ensure the&amp;nbsp;the strings are set up in the resources.xml file. Based on the same code above, the widget may look something like this:&lt;/li&gt;
&lt;p&gt;&amp;nbsp;&lt;img src="/files/media/docs/Images/CS5/Developers/localize-widget1.png" border="0" style="max-width:550px;" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/productfaqs/5314.localizeWidgetView.png"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/ol&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;&lt;span style="color:#009900;"&gt;&lt;span style="font-weight:bold;color:#000000;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/productfaqs/5314.localizeWidgetView.png"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;&lt;/ol&gt;

&lt;div style="font-size: 90%;"&gt;Tags: widget, localize&lt;/div&gt;
</description></item><item><title>Localize a widget</title><link>http://telligent.com/community/developers/w/wiki/3546/revision/1.aspx</link><pubDate>Wed, 26 Aug 2009 19:39:50 GMT</pubDate><guid isPermaLink="false">92d67afb-f426-4529-b1c0-df597f24068f:9227</guid><dc:creator>Tim Yates</dc:creator><comments>http://telligent.com/community/developers/w/wiki/3546.aspx#comments</comments><description>Revision 1 posted to Telligent Evolution 5.x Developer Documentation by Tim Yates on 8/26/2009 2:39:50 PM&lt;br /&gt;
&lt;p&gt;When you localize a widget, it pulls the language information from the language folder. If you put the language information in the Resources.xml file in the folder, then you do not have to specify which file to pull resources from in the code file. However, if you put your language specific text into a custom file, for example NewWidget_Resources.xml, then you will need to use the following procedure.&lt;/p&gt;
&lt;p&gt;To localize a widget:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Create a resource.xml file in the ~/Languages/{Your Language}/ folder. When you create a resource.xml file, you ensure that it will not be overwritten. The resource file in the following example is called NewWidget.xml.&amp;nbsp;&lt;/p&gt;
&lt;/li&gt;
&lt;div style="background-color:#eee;padding:1em;font-family:courier new,courier;"&gt;
&lt;p&gt;&lt;span style="color:#009900;"&gt;&lt;span style="font-weight:bold;color:#000000;"&gt;&lt;span style="font-family:courier new,courier;"&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; ?&amp;gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;padding:0;background:none;"&gt;&lt;span style="color:#009900;"&gt;&lt;span style="font-weight:bold;color:#000000;"&gt;&lt;span style="font-family:courier new,courier;"&gt;&amp;lt;root&lt;span style="font-weight:bold;color:#000000;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_FragmentName&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;My Info 2 (From Resource File)&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_FragmentDescription&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;This widget displays my personal information. (Configurable)&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_Title&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;Widget Title&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_YourName_Title&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;Name&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_YourName_Default&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;Your Name&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_Location_Title&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;Location&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_Location_Default&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;Your Location&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_Occupation_Title&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;Occupation&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;resource&lt;/span&gt; &lt;span style="color:#000066;"&gt;name&lt;/span&gt;=&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_Occupation_Default&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;Your Occupation&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/resource&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#009900;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;lt;/root&lt;span style="color:#000000;font-weight:bold;"&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;li&gt;
&lt;p&gt;In&amp;nbsp;the widget code file,&amp;nbsp;use the &lt;span style="font-family:courier new,courier;"&gt;CommunityServer.Components.ResourceManager &lt;/span&gt;class to retrieve localized strings from your Resource file (~/Languages/{your language}/{YourFile.xml}).&lt;/p&gt;
&lt;/li&gt;
&lt;div style="background-color:#eee;padding:1em;font-family:courier new,courier;"&gt;
&lt;p&gt;&lt;span style="color:#0600FF;"&gt;public&lt;/span&gt; &lt;span style="color:#0600FF;"&gt;override&lt;/span&gt; &lt;span style="color:#FF0000;"&gt;string&lt;/span&gt;FragmentDescription&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;{&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; get &lt;span style="color:#000000;"&gt;{&lt;/span&gt; &lt;span style="color:#0600FF;"&gt;return&lt;/span&gt;ResourceManager.&lt;span style="color:#0000FF;"&gt;GetString&lt;/span&gt;&lt;span style="color:#000000;"&gt;(&lt;/span&gt;&lt;span style="color:#666666;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_FragmentDescription&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;"&gt;, &lt;/span&gt;&lt;span style="color:#666666;"&gt;&amp;quot;NewWidget.&lt;/span&gt;&lt;span style="color:#666666;"&gt;xml&amp;quot;&lt;/span&gt;&lt;span style="color:#000000;"&gt;)&lt;/span&gt;&lt;span style="color:#008000;"&gt;;&lt;/span&gt; &lt;span style="color:#000000;"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000000;"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;li&gt;
&lt;p&gt;In the User Control section, use the &lt;span style="font-family:courier new,courier;"&gt;&amp;lt;CSControl:ResourceControl.. /&amp;gt;&lt;/span&gt; to retrieve localized strings from your Resource file:&lt;/p&gt;
&lt;/li&gt;
&lt;div style="background-color:#eee;padding:1em;font-family:courier new,courier;"&gt;
&lt;p&gt;&lt;span style="color:#009900;"&gt;&lt;span style="font-weight:bold;color:#000000;"&gt;&lt;span style="font-family:courier new,courier;"&gt;&amp;lt;%@ Control &lt;span style="color:#000066;"&gt;Language&lt;/span&gt;&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;C#&amp;quot;&lt;/span&gt;AutoEventWireup&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;true&amp;quot;&lt;/span&gt; %&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#009900;"&gt;&amp;lt;&lt;a href="http://december.com/html/4/element/div.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;div&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;a href="http://december.com/html/4/element/p.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;p&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;a href="http://december.com/html/4/element/b.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;b&lt;/span&gt;&lt;/a&gt;&amp;gt;&amp;lt;CSControl:ResourceControl runat&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;server&amp;quot;&lt;/span&gt;ResourceName&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_YourName_Title&amp;quot; &lt;/span&gt;&lt;/span&gt;&lt;span style="color:#009900;"&gt;ResourceFile&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget.xml&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#009900;"&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt; &lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&amp;gt;&amp;lt;&lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/b.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;b&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;cscontrol:configurablecontentfragmentdata property&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;Name&amp;quot;&lt;/span&gt;runat&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;server&amp;quot;&lt;/span&gt; &lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/p.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;p&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;a href="http://december.com/html/4/element/p.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;p&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;a href="http://december.com/html/4/element/b.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;b&lt;/span&gt;&lt;/a&gt;&amp;gt;&amp;lt;CSControl:ResourceControl runat&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;server&amp;quot;&lt;/span&gt;ResourceName&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_Location_Title&amp;quot; &lt;/span&gt;&lt;/span&gt;&lt;span style="color:#009900;"&gt;ResourceFile&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget.xml&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#009900;"&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt; &lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&amp;gt;&amp;lt;&lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/b.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;b&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;cscontrol:configurablecontentfragmentdata property&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;Location&amp;quot;&lt;/span&gt;runat&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;server&amp;quot;&lt;/span&gt; &lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/p.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;p&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;a href="http://december.com/html/4/element/p.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;p&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;a href="http://december.com/html/4/element/b.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;b&lt;/span&gt;&lt;/a&gt;&amp;gt;&amp;lt;CSControl:ResourceControl runat&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;server&amp;quot;&lt;/span&gt;ResourceName&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget_MyInfoConfigurableWidget_Occupation_Title&amp;quot; &lt;/span&gt;&lt;/span&gt;&lt;span style="color:#009900;"&gt;ResourceFile&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;NewWidget.xml&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#009900;"&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt; &lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&amp;gt;&amp;lt;&lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/b.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;b&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;cscontrol:configurablecontentfragmentdata property&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;Occupation&amp;quot;&lt;/span&gt;runat&lt;span style="color:#66cc66;"&gt;=&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&amp;quot;server&amp;quot;&lt;/span&gt; &lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &lt;span style="color:#009900;"&gt;&amp;lt;&lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/p.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;p&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#009900;"&gt;&amp;lt;&lt;span style="color:#66cc66;"&gt;/&lt;/span&gt;&lt;a href="http://december.com/html/4/element/div.html" style="color:#000060;"&gt;&lt;span style="color:#000000;font-weight:bold;"&gt;div&lt;/span&gt;&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;li&gt;Ensure the&amp;nbsp;the strings are set up in the resources.xml file. Based on the same code above, the widget may look something like this:&lt;/li&gt;
&lt;p&gt;&amp;nbsp;&lt;img border="0" src="/files/media/docs/Images/CS5/Developers/localize-widget1.png" style="max-width:550px;" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/productfaqs/5314.localizeWidgetView.png"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/ol&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;&lt;span style="color:#009900;"&gt;&lt;span style="font-weight:bold;color:#000000;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file.ashx/__key/CommunityServer.Wikis.Components.Files/productfaqs/5314.localizeWidgetView.png"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;ol&gt;&lt;/ol&gt;

&lt;div style="font-size: 90%;"&gt;Tags: widget, localize&lt;/div&gt;
</description></item></channel></rss>
