{"id":5210,"date":"2014-03-30T19:43:15","date_gmt":"2014-03-30T19:43:15","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/win32-net-how-do-i-determine-the-currently-used-language-localization-culture-of-a-process-collection-of-common-programming-errors\/"},"modified":"2014-03-30T19:43:15","modified_gmt":"2014-03-30T19:43:15","slug":"win32-net-how-do-i-determine-the-currently-used-language-localization-culture-of-a-process-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/win32-net-how-do-i-determine-the-currently-used-language-localization-culture-of-a-process-collection-of-common-programming-errors\/","title":{"rendered":"Win32\/.net: How do I determine the currently used language\/localization\/culture of a process?-Collection of common programming errors"},"content":{"rendered":"<p>My first attempt was using the System.Diagnostics.Process.ProcessName to find the executable and System.Diagnostics.FileVersionInfo.Language to determine the language.<\/p>\n<p>This does not work for e.g. Microsoft &#8220;Excel.exe&#8221; 2007. If you have a look at the file properties in explorer you will see the language is set to &#8220;Language Neutral&#8221; even if the UI is actually showing german.<\/p>\n<p>How can I find out the shown language, preferably at runtime by inspecting the process\/exe?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My first attempt was using the System.Diagnostics.Process.ProcessName to find the executable and System.Diagnostics.FileVersionInfo.Language to determine the language. This does not work for e.g. Microsoft &#8220;Excel.exe&#8221; 2007. If you have a look at the file properties in explorer you will see the language is set to &#8220;Language Neutral&#8221; even if the UI is actually showing german. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5210","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5210"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5210\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}