<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/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>Why we have both CurrentCulture and CurrentUICulture</title><link>http://blogs.msdn.com/michkap/archive/2007/01/11/1449754.aspx</link><description>It was late last year that I got the following through the contact link: Michael, I have a question that might be of particular interest to you. You might be able to answer it in one of your 30 to 40 blog entries you'll post today or tomorrow. I'm taking</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Why we have both CurrentCulture and CurrentUICulture</title><link>http://blogs.msdn.com/michkap/archive/2007/01/11/1449754.aspx#1450709</link><pubDate>Thu, 11 Jan 2007 16:57:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1450709</guid><dc:creator>cbenard</dc:creator><description>&lt;p&gt;Michael,&lt;/p&gt;
&lt;p&gt;That 70-526 class is over, and I passed the test. &amp;nbsp;Right now, we're training for the 70-536 and the Web Dev one. &amp;nbsp;Our class will continue until May.&lt;/p&gt;
&lt;p&gt;I appreciate the in-depth answer, and I'll stick a link to it on our class intranet.&lt;/p&gt;
&lt;p&gt;Thanks a ton!&lt;/p&gt;
&lt;p&gt;Chris Benard&lt;/p&gt;
</description></item><item><title>re: Why we have both CurrentCulture and CurrentUICulture</title><link>http://blogs.msdn.com/michkap/archive/2007/01/11/1449754.aspx#1457307</link><pubDate>Sat, 13 Jan 2007 00:40:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1457307</guid><dc:creator>Erzengel</dc:creator><description>&lt;p&gt;I am really confused by:&lt;/p&gt;
&lt;p&gt;&amp;quot;...even if they still want that default user locale setting that affects behavior they really have been accustomed to since for all intensive purposes their zygote phase.&amp;quot;&lt;/p&gt;
&lt;p&gt;Firstly, whenever someone says &amp;quot;for all intensive purposes&amp;quot; they usually mean &amp;quot;for all intents and purposes&amp;quot;. (Like a &amp;quot;Safety Posit Box&amp;quot; or &amp;quot;Safety Deposit Box&amp;quot;, when they mean &amp;quot;Safe Deposit Box&amp;quot;). (Come on, you're a language guy, you should know this)&lt;/p&gt;
&lt;p&gt;Do you mean something like: &amp;quot;...even if they still want their default user locale setting for behavior set to what they have been accustomed to since--for all intents and purposes--their zygote phase.&amp;quot;?&lt;/p&gt;
&lt;p&gt;I usually don't pick appart grammar and such, but I couldn't figure out what you meant at all for a good while.&lt;/p&gt;</description></item><item><title>re: Why we have both CurrentCulture and CurrentUICulture</title><link>http://blogs.msdn.com/michkap/archive/2007/01/11/1449754.aspx#1457463</link><pubDate>Sat, 13 Jan 2007 01:53:12 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1457463</guid><dc:creator>Michael S. Kaplan</dc:creator><description>&lt;P&gt;Hmmm.... given the googlefight &lt;STRONG&gt;&lt;A class="" href="http://www.googlefight.com/index.php?lang=en_GB&amp;amp;word1=intensive+purposes&amp;amp;word2=intents+and+purposes"&gt;results&lt;/A&gt;&lt;/STRONG&gt;, I think prescriptive grammarians have lost on this one. :-)&lt;/P&gt;</description></item><item><title>re: Why we have both CurrentCulture and CurrentUICulture</title><link>http://blogs.msdn.com/michkap/archive/2007/01/11/1449754.aspx#1457571</link><pubDate>Sat, 13 Jan 2007 02:36:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1457571</guid><dc:creator>Erzengel</dc:creator><description>&lt;p&gt;Define &amp;quot;for all intensive purposes&amp;quot; for me.&lt;/p&gt;
&lt;p&gt;Just because everyone says it doesn't mean it's right. How many people say &amp;quot;loose&amp;quot; when they mean &amp;quot;lose&amp;quot;? How many people say &amp;quot;it's&amp;quot; when they mean &amp;quot;its&amp;quot;? How many &amp;quot;people&amp;quot; (as defined by the law) said slavery was OK in the early 1800s? How many &amp;quot;people&amp;quot; (as defined by the law) said that women were second class citizens in the early 1800s? Just because &amp;quot;everyone&amp;quot; says it, doesn't make it right.&lt;/p&gt;
&lt;p&gt;&amp;quot;For all intensive purposes&amp;quot; means &amp;quot;For purposes which are intensive only. All other purposes are discluded.&amp;quot; Therefore, &amp;quot;since their zygote phase&amp;quot; would only apply to &amp;quot;intense&amp;quot; purposes, exceptional cases, rather than general ones. Is this truly what you meant? Or did you in fact mean, &amp;quot;all intents and purposes&amp;quot;, which means &amp;quot;all purposes, and all intents&amp;quot;.&lt;/p&gt;
&lt;p&gt;As a language and internationalization person, you should prefer the CLEARER, rather than the more used, method. The more often used phrase does not make sense to non-native English speakers or persons who have not encountered the phrase. By using an incorrect phrase, you remove any and all clues to your meaning. Is that what you want?&lt;/p&gt;</description></item><item><title>re: Why we have both CurrentCulture and CurrentUICulture</title><link>http://blogs.msdn.com/michkap/archive/2007/01/11/1449754.aspx#1457625</link><pubDate>Sat, 13 Jan 2007 02:53:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1457625</guid><dc:creator>Michael S. Kaplan</dc:creator><description>&lt;p&gt;I never said it was right... I was being skeptical about the &amp;quot;confusion&amp;quot; given how widespread and common the mistake is in other places.&lt;/p&gt;
&lt;p&gt;My interesting linguistics and internationalization and language do not make me a prescriptive grammarian, so I am not obsessive about such things. So will I make the mistake again? Maybe not. But I don't fix every typo, either.&lt;/p&gt;
&lt;p&gt;And I don't think I have removed &amp;quot;any and all clues&amp;quot; to anything, really. HYPERBOLE is a very confusing facet of comments, and often makes me suspect that the commenter either didn't get the point of the article or decided not to read it. But that's not really related...&lt;/p&gt;
&lt;p&gt;That phrase is a small piece of a larger article that has nothing to do with the point being made, and there is no way that the importance of that small piece would be misunderstood to be more important no matter what the confusion might be? :-)&lt;/p&gt;
</description></item><item><title>re: Why we have both CurrentCulture and CurrentUICulture</title><link>http://blogs.msdn.com/michkap/archive/2007/01/11/1449754.aspx#1457673</link><pubDate>Sat, 13 Jan 2007 03:17:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1457673</guid><dc:creator>Erzengel</dc:creator><description>&lt;p&gt;The confusion wasn't about the phrase &amp;quot;for all intensive purposes&amp;quot;. I understood what was meant there, that cmment was a throw away correction. Using &amp;quot;intensive&amp;quot; instead of &amp;quot;intents and&amp;quot; only throws away (&amp;quot;any and all&amp;quot;) clues to the extent of that single phrase.&lt;/p&gt;
&lt;p&gt;I couldn't understand that which was around the phrase. Possibly because I did not understand what a &amp;quot;zygote phase&amp;quot; was. After looking it up, and looking over the sentance several more times, I can somewhat peice together the meaning of the sentance. But the sentance itself (from &amp;quot;even&amp;quot; beyond) comes across as a bit clunky and was hard for me to understand.&lt;/p&gt;
&lt;p&gt;To check my understanding, I've rewritten the sentance, and ask if it's correct:&lt;/p&gt;
&lt;p&gt;&amp;quot;There are a lot of times when a person is multilingual; they may want to use a different localized version or switch to a different MUI version, if they have it. Even if they do they may want to keep the same behavior of the locale setting they’ve been accustomed to since—for all intentsive purposes[sic]—the zygote phase.&amp;quot;&lt;/p&gt;
&lt;p&gt;Is that basically what you meant?&lt;/p&gt;
&lt;p&gt;I don't know why it's hard for me to understand the sentance, it just was.&lt;/p&gt;</description></item><item><title>re: Why we have both CurrentCulture and CurrentUICulture</title><link>http://blogs.msdn.com/michkap/archive/2007/01/11/1449754.aspx#1457927</link><pubDate>Sat, 13 Jan 2007 04:24:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1457927</guid><dc:creator>Michael S. Kaplan</dc:creator><description>&lt;p&gt;Delete the sentence in your mind as you read. You'll enjoy the experience much more (if not then are probably other blogs you can follow!).&lt;/p&gt;
&lt;p&gt;It's time to move back on topic, I think....&lt;/p&gt;
</description></item><item><title>re: Why we have both CurrentCulture and CurrentUICulture</title><link>http://blogs.msdn.com/michkap/archive/2007/01/11/1449754.aspx#1467594</link><pubDate>Mon, 15 Jan 2007 06:17:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1467594</guid><dc:creator>Dean Harding</dc:creator><description>&lt;p&gt;Actually, the correct google fight URL would be: &lt;a rel="nofollow" target="_new" href="http://www.googlefight.com/index.php?lang=en_GB&amp;amp;word1=%22intensive+purposes%22&amp;amp;word2=%22intents+and+purposes%22"&gt;http://www.googlefight.com/index.php?lang=en_GB&amp;amp;word1=%22intensive+purposes%22&amp;amp;word2=%22intents+and+purposes%22&lt;/a&gt; since you're looking for the whole phrase, not just individual words in the phrase...&lt;/p&gt;
&lt;p&gt;Which puts &amp;quot;intents and purposes&amp;quot; as 10 times more common than &amp;quot;intensive purposes&amp;quot; :)&lt;/p&gt;
&lt;p&gt;Anyway, I'm sure most of us were able to figure out what you mean ;)&lt;/p&gt;
</description></item><item><title>windows forms Globalization</title><link>http://blogs.msdn.com/michkap/archive/2007/01/11/1449754.aspx#7035723</link><pubDate>Wed, 09 Jan 2008 06:21:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7035723</guid><dc:creator>Aaron Lerch </dc:creator><description>&lt;p&gt;It's amazing how the process of making an application localizable can be both simple and confusing at&lt;/p&gt;
</description></item><item><title>re: Why we have both CurrentCulture and CurrentUICulture</title><link>http://blogs.msdn.com/michkap/archive/2007/01/11/1449754.aspx#8655215</link><pubDate>Thu, 26 Jun 2008 10:14:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8655215</guid><dc:creator>pealla</dc:creator><description>&lt;P&gt;Harking back to an earlier post by Erzengel I agree that the literal translation of "for all intents and purposes" is "for all intents and all purposes" however the phrase is generally accepted to mean "for all practical purposes".&lt;/P&gt;</description></item><item><title>re: Why we have both CurrentCulture and CurrentUICulture</title><link>http://blogs.msdn.com/michkap/archive/2007/01/11/1449754.aspx#8655318</link><pubDate>Thu, 26 Jun 2008 10:43:19 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8655318</guid><dc:creator>Michael S. Kaplan</dc:creator><description>&lt;p&gt;In the meantime, given the intensity with which some people are arguing this minute point that has nothing to do with the original topic, I would argue that FOR ALL INTENSIVE PURPOSES is actually valid given how intense everyone is! :-)&lt;/p&gt;
</description></item><item><title>re: Why we have both CurrentCulture and CurrentUICulture</title><link>http://blogs.msdn.com/michkap/archive/2007/01/11/1449754.aspx#9123419</link><pubDate>Wed, 19 Nov 2008 13:08:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9123419</guid><dc:creator>villa rental south of france</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I need to fetch the current time zone info &amp;nbsp;on windows 2003 &amp;nbsp;server .. specifically the day and month in french&lt;/p&gt;
&lt;p&gt;I know it can be done using&lt;/p&gt;
&lt;p&gt;private static extern int GetTimeZoneInformation(out TimeZoneInformation lpTimeZoneInformation);&lt;/p&gt;
&lt;p&gt;but my problem is that it returns the time zone standard name in the language which is currently used on the device(like German).&lt;/p&gt;
&lt;p&gt;I want it to be in french &lt;/p&gt;
&lt;p&gt;Is it possible?&lt;/p&gt;</description></item><item><title>re: Why we have both CurrentCulture and CurrentUICulture</title><link>http://blogs.msdn.com/michkap/archive/2007/01/11/1449754.aspx#9124197</link><pubDate>Wed, 19 Nov 2008 16:57:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9124197</guid><dc:creator>Michael S. Kaplan</dc:creator><description>&lt;p&gt;This really belongs in the Suggestion Box (see the link on the right for it). It really has nothing to do with this post and is a request for a new one.... &lt;/p&gt;
</description></item><item><title>re: Why we have both CurrentCulture and CurrentUICulture</title><link>http://blogs.msdn.com/michkap/archive/2007/01/11/1449754.aspx#9196572</link><pubDate>Thu, 11 Dec 2008 15:54:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9196572</guid><dc:creator>Ms. Chanandular Bong</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thanks for this very good article. I'm currently estimating the effort needed to make our software localizable and you helped me a lot with understanding the difference between those two properties.&lt;/p&gt;
&lt;p&gt;But I encourtered another problem. I tried everything (i think) to get Windows XP to give me another CurrentUILanguage than my non-MUI Windows language (German). Is it possible, that only the MUI-Version supports changing the default user interface language?&lt;/p&gt;
&lt;p&gt;Thanks a lot.&lt;/p&gt;</description></item><item><title>re: Why we have both CurrentCulture and CurrentUICulture</title><link>http://blogs.msdn.com/michkap/archive/2007/01/11/1449754.aspx#9634229</link><pubDate>Thu, 21 May 2009 22:50:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9634229</guid><dc:creator>Mike Claymon</dc:creator><description>&lt;p&gt;I have a CurrentCulture vs. CurrentUICulture issue and I don't understand how to resolve it. &amp;nbsp;If you could help, I would greatly appreciate it.&lt;/p&gt;
&lt;p&gt;I have a Windows XP computer with English installed for the OS and French set in Control Panel/Regional Settings. &amp;nbsp;The CurrentCulture returns English and the CurrentUICulture returns French.&lt;/p&gt;
&lt;p&gt;I have a Windows Server 2003 computer with French installed for the OS and French set in Control Panel/Regional Settings. &amp;nbsp;The CurrentCulture returns French and the CurrentUICulture returns English.&lt;/p&gt;
&lt;p&gt;As it stands right now, I can't always use either CurrentCulture or CurrentUICulture. &amp;nbsp;How can I make this work?&lt;/p&gt;</description></item><item><title>re: Why we have both CurrentCulture and CurrentUICulture</title><link>http://blogs.msdn.com/michkap/archive/2007/01/11/1449754.aspx#9797883</link><pubDate>Mon, 22 Jun 2009 19:08:27 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9797883</guid><dc:creator>William Garrison</dc:creator><description>&lt;p&gt;Absolute proof that the CurrentCulture -vs- CurrentUICulture thing is stupid can be summed-up in the following MSDN article:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.threading.thread.currentuiculture.aspx" rel="nofollow" target="_new"&gt;http://msdn.microsoft.com/en-us/library/system.threading.thread.currentuiculture.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Read the example. &amp;nbsp;It says:&lt;/p&gt;
&lt;p&gt;"The following code example shows the threading statement that allows the user interface of a Windows Forms to display in the culture that is set in Control Panel. Additional code is needed."&lt;/p&gt;
&lt;p&gt;Now why the heck would someone have to add special code to make their application display the UI in the culture set in the control panel? &amp;nbsp;That's absurd. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;The code boils down to:&lt;/p&gt;
&lt;p&gt;CurrentUICulture = CurrentCulture&lt;/p&gt;
&lt;p&gt;Further proof: Install a suite of apps that support German on an English windows. &amp;nbsp;Now, go to Control Panel - Regional and Language - Languages - and set "Language used in menus..." to German. &amp;nbsp;OOPS! &amp;nbsp;It's not there! &amp;nbsp;It only lets you select from the languages that Microsoft has installed language packs for -- COMPLETELY defeating the purpose of the screen. &amp;nbsp;If you have all translated apps installed, but don't have Microsoft's language pack installed, you are forbidden from even selecting your language.&lt;/p&gt;</description></item><item><title>re: Why we have both CurrentCulture and CurrentUICulture</title><link>http://blogs.msdn.com/michkap/archive/2007/01/11/1449754.aspx#9798974</link><pubDate>Tue, 23 Jun 2009 10:27:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9798974</guid><dc:creator>Michael S. Kaplan</dc:creator><description>&lt;p&gt;Hi William.... note that a dumb code sample is not proof of a setting being dumb -- it is proof that people can write dumb code samples and get them published.&lt;/p&gt;
&lt;p&gt;But the code is TRYING to make the app use the USER LOCALE, which can be changed even if MUI is not installed, which is a little silly but not stupid -- just poorly described in the article.&lt;/p&gt;
&lt;p&gt;The other issue is by design -- Windows UI languages are about WINDOWS. It would be nice if they were extended beyond that but that is not proof they are stupid, that is proof that making an incorrect assumption can lead to incorrect results....&lt;/p&gt;
&lt;p&gt;I have no problem calling things stupid when they are, but you are a bit mis-aimed in this case in putting your finger on the actual problems behind the cases you are seeing.&lt;/p&gt;
</description></item><item><title>re: Why we have both CurrentCulture and CurrentUICulture</title><link>http://blogs.msdn.com/michkap/archive/2007/01/11/1449754.aspx#9829870</link><pubDate>Sun, 12 Jul 2009 06:32:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9829870</guid><dc:creator>William Garrison</dc:creator><description>&lt;p&gt;&amp;quot;which is a little silly but not stupid&amp;quot;&lt;/p&gt;
&lt;p&gt;Perhaps. &amp;nbsp;Sounds like we mainly disagree in the degree of the problem.&lt;/p&gt;
&lt;p&gt;&amp;quot;The other issue is by design -- Windows UI languages are about WINDOWS&amp;quot;&lt;/p&gt;
&lt;p&gt;Stating that it is by design does not make it correct. &amp;nbsp;The point is that this behavior is not what the users expect, nor what the programmers expect.&lt;/p&gt;
&lt;p&gt;The code sample is vindication to all the programmers who spent hours frustrated, when their German application on their machine set to German, displays English. :-)&lt;/p&gt;</description></item><item><title>re: Why we have both CurrentCulture and CurrentUICulture</title><link>http://blogs.msdn.com/michkap/archive/2007/01/11/1449754.aspx#9829964</link><pubDate>Sun, 12 Jul 2009 08:56:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9829964</guid><dc:creator>Michael S. Kaplan</dc:creator><description>&lt;p&gt;When there are two knobs on a radio, one for the volume and one that changes the station, and both USERS and STORE CLERKS are confused because they think there should be only one knob, then the answer is the same.&lt;/p&gt;
&lt;p&gt;Now perhaps the radio is designed poorly and that is why everyone thought the one knob should always work for both settings, but that is a UI flaw unrelated to the fact that it is BY DESIGN.... :-)&lt;/p&gt;
</description></item><item><title>re: Why we have both CurrentCulture and CurrentUICulture</title><link>http://blogs.msdn.com/michkap/archive/2007/01/11/1449754.aspx#9843252</link><pubDate>Tue, 21 Jul 2009 14:41:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9843252</guid><dc:creator>ivl</dc:creator><description>&lt;p&gt;Hi Michael,&lt;/p&gt;
&lt;p&gt;I just want to confirm that I have understood what the &amp;quot;bottom line&amp;quot; is:&lt;/p&gt;
&lt;p&gt;We shouldn't change the following:&lt;/p&gt;
&lt;p&gt;System.Threading.Thread.CurrentThread.CurrentCulture = ...&lt;/p&gt;
&lt;p&gt;because we would like to honor the user's &amp;quot;Formats&amp;quot; (Date, Time, Number, Currency) settings in Control Panel.&lt;/p&gt;
&lt;p&gt;We should change the following:&lt;/p&gt;
&lt;p&gt;System.Threading.Thread.CurrentThread.CurrentUICulture = ...&lt;/p&gt;
&lt;p&gt;only if the Windows language pack for the language in which we would like to display the UI of our app in, is not installed.&lt;/p&gt;
&lt;p&gt;Does this sound correct?&lt;/p&gt;
&lt;p&gt;Mike Claymon's comments are worrying though, why would he be getting such results? Mike, if you're reading, did you resolve your issue? If so, what was wrong?&lt;/p&gt;</description></item></channel></rss>