<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Localization</title><link>http://forums.asp.net/151.aspx</link><description>Discuss techniques for localizing content for different languages and locales with ASP.NET.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Localizing text inside &lt;div&gt; or any regular inner text</title><link>http://forums.asp.net/thread/1811196.aspx</link><pubDate>Wed, 18 Jul 2007 21:57:41 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1811196</guid><dc:creator>aweil</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1811196.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=151&amp;PostID=1811196</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Mourad,&lt;/p&gt;&lt;p&gt;It may not be so clean (some overhead at run time), but you can replace your &amp;lt;div&amp;gt; with a &amp;lt;div runat=&amp;quot;server&amp;quot;&amp;gt;, which is quite easy to to project-wide with a &amp;quot;search and replace&amp;quot;...&amp;nbsp;&lt;/p&gt;&lt;p&gt;Hope this helps,&lt;/p&gt;&lt;p&gt;Arnaud&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Localizing text inside &lt;div&gt; or any regular inner text</title><link>http://forums.asp.net/thread/1810784.aspx</link><pubDate>Wed, 18 Jul 2007 17:46:08 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1810784</guid><dc:creator>rstrahl</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1810784.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=151&amp;PostID=1810784</wfw:commentRss><description>&lt;p&gt;You can&amp;#39;t localize purely static text - at least not from the server side (you can do it from the client side with JavaScript but it&amp;#39;s ugly). &lt;/p&gt;
&lt;p&gt;So yes you&amp;#39;ll want to use labels or any other controls type around all static text.&lt;/p&gt;
&lt;p&gt;Alternately you can also do something like this:&lt;/p&gt;
&lt;p&gt;&amp;lt;div&amp;gt; &amp;lt;%= this.GetLocalResourceObject(&amp;quot;HelloLabel&amp;quot;) %&amp;gt;&amp;lt;/div&amp;gt;&lt;/p&gt;
&lt;p&gt;although there are a few caveats to that scenario:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.west-wind.com/WebLog/posts/114530.aspx"&gt;http://www.west-wind.com/WebLog/posts/114530.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hope this helps.&lt;/p&gt;
&lt;p&gt;+++ Rick ---&lt;/p&gt;</description></item><item><title>Localizing text inside &lt;div&gt; or any regular inner text</title><link>http://forums.asp.net/thread/1809989.aspx</link><pubDate>Wed, 18 Jul 2007 12:20:10 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1809989</guid><dc:creator>Mourad</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1809989.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=151&amp;PostID=1809989</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;How do I tel VS to generate resources for any inner text, e.g.:&lt;/p&gt;
&lt;p&gt;&amp;lt;div&amp;gt; Hello ! &amp;lt;/div&amp;gt;&lt;/p&gt;
&lt;p&gt;do I have to put all text inside LABEL tags ?&lt;/p&gt;</description></item></channel></rss>