<?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: Multilanguage Email</title><link>http://forums.asp.net/thread/3272686.aspx</link><pubDate>Fri, 03 Jul 2009 05:15:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3272686</guid><dc:creator>kadam_suresh</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3272686.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=151&amp;PostID=3272686</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Vendevelop,&lt;/p&gt;
&lt;p&gt;Yes you can create a resource string with place holder where you can pass a value based on different conditions.&lt;/p&gt;
&lt;p&gt;You can have a resource string like &amp;quot;Welcome to our page Mr {0}&amp;quot; with some resource key &amp;quot;WelcomeMessage&amp;quot;&lt;/p&gt;
&lt;p&gt;In the code behind before using resource string do it as follows:&lt;/p&gt;
&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string &lt;/font&gt;&lt;/font&gt;parameterizedResString =&amp;nbsp;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Format(Resources.&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;WebResources&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.WelcomeMessage, paramterVar);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Now you use parameterizedResString, here paramterVar value will differ based on language or logic.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Thanks,&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Suresh Kdam.&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Multilanguage Email</title><link>http://forums.asp.net/thread/3272489.aspx</link><pubDate>Fri, 03 Jul 2009 02:26:58 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3272489</guid><dc:creator>vendevelop</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3272489.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=151&amp;PostID=3272489</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I am creating a multilingual site. I create my resources files for each language and I reference in HTML and Code Behind, but now I have a doubt.&lt;/p&gt;
&lt;div style="TEXT-ALIGN:left;" id="result_box"&gt;I need to send an email with the same text for each language, but in the text there is a value that changes depending on the name of the username.&lt;/div&gt;
&lt;div style="TEXT-ALIGN:left;"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style="TEXT-ALIGN:left;"&gt;
&lt;div style="TEXT-ALIGN:left;" id="result_box"&gt;Can I&amp;nbsp;create a resource file that allow me to receive some variable? &lt;/div&gt;
&lt;div style="TEXT-ALIGN:left;"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style="TEXT-ALIGN:left;"&gt;For example:&lt;/div&gt;
&lt;div style="TEXT-ALIGN:left;"&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style="TEXT-ALIGN:left;"&gt;Welcome to our page Mr [variable here] bla bla bla.......&lt;/div&gt;
&lt;div style="TEXT-ALIGN:left;"&gt;&amp;nbsp;&lt;/div&gt;&lt;/div&gt;</description></item></channel></rss>