<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.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>Report a Silverlight Bug</title><link>http://forums.silverlight.net/forums/28.aspx</link><description>Found a bug in Silverlight? Use this forum to describe the bug and the code or steps to reproduce it.</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Setting CurrentThread.CurrentCulture gives set_CurrentCulture error</title><link>http://forums.silverlight.net/forums/thread/50506.aspx</link><pubDate>Thu, 01 May 2008 10:48:20 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:50506</guid><dc:creator>jpsscott</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/50506.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=50506</wfw:commentRss><description>&lt;p&gt;No problem at all.&amp;nbsp; Really appreciate the answer!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;James&lt;/p&gt;</description></item><item><title>Re: Setting CurrentThread.CurrentCulture gives set_CurrentCulture error</title><link>http://forums.silverlight.net/forums/thread/50423.aspx</link><pubDate>Wed, 30 Apr 2008 23:04:29 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:50423</guid><dc:creator>Sergey Volk MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/50423.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=50423</wfw:commentRss><description>&lt;p&gt;Oops, you are right. I have just checked with Beta1 bits and setting culture param there doesn&amp;#39;t set Thread.CurrentThread.CurrentCulture indeed. Turns out this was added after Beta1 was released to public. In Beta2 setting culture / uiculture params on &amp;lt;object&amp;gt; tag will set Thread.CurrentThread.CurrentCulture / CurrentUICulture respectively, and you will be able to also set culture /&amp;nbsp;uiculture&amp;nbsp;to &amp;quot;auto&amp;quot; and SL will then auto-detect current culture from OS settings. So again,&amp;nbsp;I would suggest you to wait&amp;nbsp;before Beta2 before doing any localization work for SL.&lt;/p&gt;
&lt;p&gt;Sorry for the confusion.&lt;/p&gt;</description></item><item><title>Re: Setting CurrentThread.CurrentCulture gives set_CurrentCulture error</title><link>http://forums.silverlight.net/forums/thread/50288.aspx</link><pubDate>Wed, 30 Apr 2008 14:28:31 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:50288</guid><dc:creator>jpsscott</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/50288.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=50288</wfw:commentRss><description>&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I actually tried this in my app, and a basic test app with nothing in it except the culture setting in object param tag, and neither worked.&amp;nbsp; I triple checked what I was doing and can&amp;#39;t possibly imagine what I am doing wrong.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;My test app simply consists of setting the culture &amp;lt;param name=&amp;quot;culture&amp;quot; value=&amp;quot;fr-FR&amp;quot;&amp;gt; as you recommended.&amp;nbsp; From there, my test page puts the value of DateTime.Now.ToLongDateString() into a text block for display.&amp;nbsp; It always comes through in en-US and when I check culture of thread in debug mode its en-US.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Can you please tell me what the heck is going on here?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;James&lt;/p&gt;</description></item><item><title>Re: Setting CurrentThread.CurrentCulture gives set_CurrentCulture error</title><link>http://forums.silverlight.net/forums/thread/50079.aspx</link><pubDate>Tue, 29 Apr 2008 20:23:31 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:50079</guid><dc:creator>Sergey Volk MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/50079.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=50079</wfw:commentRss><description>&lt;p&gt;Hi James,&lt;/p&gt;
&lt;p&gt;Hopefully our localization story will be much better in Beta 2. There has been some work&amp;nbsp;focused in that direction. But as far as I know you are not supposed to set CurrentCulture directly. Instead you should specify &amp;lt;param name=&amp;quot;culture&amp;quot; value=&amp;quot;fr-FR&amp;quot;&amp;gt; in your &amp;lt;object&amp;gt; tag when instantiating SL plugin. This will set both Thread.CurrentThread.CurrentCulture and Thread.CurrentThread.CurrentUICulture in Beta1. In Beta2 you will be able to specify CurrentUICulture separately from CurrentCulture by adding &amp;lt;param name=&amp;quot;uiculture&amp;quot; value=&amp;quot;en-US&amp;quot;&amp;gt; to &amp;lt;object&amp;gt; tag.&lt;/p&gt;
&lt;p&gt;So I would suggest you to try something like:&lt;/p&gt;
&lt;p&gt;&amp;lt;object type=&amp;quot;application/x-silverlight&amp;quot; style=&amp;quot;width:200px; height:200px&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name=&amp;quot;Source&amp;quot; value=&amp;quot;ClientBin/App.xap&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param name=&amp;quot;culture&amp;quot; value=&amp;quot;fr-FR&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;/object&amp;gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;But beware that there were some other known issues with localization in SL2 Beta1 (see this thread &lt;span style="FONT-SIZE:12pt;FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-fareast-font-family:&amp;#39;Times New Roman&amp;#39;;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;&lt;a href="http://silverlight.net/forums/p/12709/49929.aspx#49929"&gt;&lt;font color="#0000ff"&gt;http://silverlight.net/forums/p/12709/49929.aspx#49929&lt;/font&gt;&lt;/a&gt;)&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;I would suggest you to wait for Beta2 before using localization features.&lt;/p&gt;</description></item><item><title>Re: Setting CurrentThread.CurrentCulture gives set_CurrentCulture error</title><link>http://forums.silverlight.net/forums/thread/46313.aspx</link><pubDate>Mon, 14 Apr 2008 11:04:16 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:46313</guid><dc:creator>jpsscott</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/46313.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=46313</wfw:commentRss><description>&lt;p&gt;Hmmm...&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Well hopefully the Silverlight team figures it out.&amp;nbsp; Otherwise I&amp;#39;m going to have to program all my own controls to workaround the fact I can&amp;#39;t set the CurrentCulture of the application.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;James&lt;/p&gt;</description></item><item><title>Re: Setting CurrentThread.CurrentCulture gives set_CurrentCulture error</title><link>http://forums.silverlight.net/forums/thread/46296.aspx</link><pubDate>Mon, 14 Apr 2008 09:07:12 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:46296</guid><dc:creator>Yi-Lun Luo - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/46296.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=46296</wfw:commentRss><description>&lt;p&gt;Hello, the setter for CurrentCulture requires special permissions. I don&amp;#39;t think you can call it. Unfortunately the localization story is not very good in Beta1. This is one area that our product team is working on. But I can&amp;#39;t assure you anything at this time...&lt;/p&gt;</description></item><item><title>Setting CurrentThread.CurrentCulture gives set_CurrentCulture error</title><link>http://forums.silverlight.net/forums/thread/45888.aspx</link><pubDate>Fri, 11 Apr 2008 19:49:00 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:45888</guid><dc:creator>jpsscott</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/45888.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=28&amp;PostID=45888</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;When attempting to set the culture of my Silverlight application to a different culture I get this error:&lt;/p&gt;
&lt;p&gt;&amp;quot;Attempt to access the method failed: System.Threading.Thread.set_CurrentCulture&amp;quot;&lt;/p&gt;
&lt;p&gt;Any changes I try to make inside the culture also result in an exception, or simply do not take.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;We have an application where it is extremely important we be able to change the culture on the fly.&amp;nbsp; Is this something that is going to be fixed?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I also would like to know if there is some reason behind this.&amp;nbsp; (I might learn something)&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;James&lt;/p&gt;</description></item></channel></rss>