<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why the '/language' key switches CurrentCulture instead of CurrentUICulture? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6845290#M60650</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Dear Andrey,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your very nice sample.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I love your two sample commands. They are beautiful with the flowers&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I compiled and debugged, starting up the sample with the settings stored in the Visual Studio project, i.e., the command line flag /language RUS.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I saw some Cyrillic in the Revit open screen, so it apparently had some effect. Most of the UI is still in English though. Almost all, in fact.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also, the two sample commands appear in English.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is that expected?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;RevitPatches.PatchCultures is called in OnStartup, so I would have expected the sample commands to appear in Russian, since the command line flag /language RUS has been set.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Did I misunderstand its use?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Or is my system set up differently than yours?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you clarify, please?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;U&gt;Update:&lt;/U&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In OnStartup, my&amp;nbsp;application.ControlledApplication.Language equals English_USA.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Therefore, obviously the English sample command&amp;nbsp;resources are used.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How can I switch that to RUS?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Should I expect the command line switch to achieve that?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Update 2:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can set a breakpoint in&amp;nbsp;PatchCultures and manually force&amp;nbsp;LanguageType.Russian.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then the sample commands appear in Russian.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Update 3:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The obj/Debug folder in the GitHub repo contains some unneeded stuff that should be removed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually, the entire folder should be removed, shouldn't it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And added to .gitignore?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2017 08:09:40 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2017-02-01T08:09:40Z</dc:date>
    <item>
      <title>Why the '/language' key switches CurrentCulture instead of CurrentUICulture?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6837625#M60644</link>
      <description>&lt;P&gt;Revit 2017.1.1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My external application (add-in) has two localizations: English (by default) and Russian. I saw that my external application (add-in) on the some computers uses wrong localization. One of that computers has the "clear" Revit without installed custom add-ins.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I launch the &lt;STRONG&gt;revit.exe&lt;/STRONG&gt; application with the &lt;STRONG&gt;/language RUS&lt;/STRONG&gt; key then at this case Revit UI is Russian, but my add-in for own UI uses &lt;EM&gt;the default localization&lt;/EM&gt; (i.e. "en") instead of "&lt;STRONG&gt;ru&lt;/STRONG&gt;".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I extract the localized resources through the &lt;STRONG&gt;ResourcesManager&lt;/STRONG&gt; class using in my code. It is the "&lt;EM&gt;native&lt;/EM&gt;" way of working with resources in .NET. I know that &lt;STRONG&gt;ResourcesManager&lt;/STRONG&gt; chooses the localized variant of resources on the base of &lt;STRONG&gt;Thread.CurrentThread.CurrentUICulture&lt;/STRONG&gt; value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Therefore I assumed that this value &lt;EM&gt;for any reason&lt;/EM&gt; isn't "&lt;STRONG&gt;ru&lt;/STRONG&gt;" or "&lt;STRONG&gt;ru-RU&lt;/STRONG&gt;", despite value of the &lt;STRONG&gt;/language RUS&lt;/STRONG&gt; key. I have checked the assumption and saw that I was right (look my code below):&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Thread.CurrentThread.CurrentUICulture&lt;/STRONG&gt; property uses "&lt;STRONG&gt;en&lt;/STRONG&gt;" instead of "&lt;STRONG&gt;ru&lt;/STRONG&gt;". Also I see that &lt;STRONG&gt;Thread.CurrentThread.CurrentCulture&lt;/STRONG&gt; uses "&lt;STRONG&gt;ru-RU&lt;/STRONG&gt;" instead of "&lt;STRONG&gt;en&lt;/STRONG&gt;".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why does the &lt;STRONG&gt;/language&lt;/STRONG&gt; key switch the localization not of that thread which is responsible for the user interface (UI)? Is it bug?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Result IExternalApplication.OnStartup(UIControlledApplication application) {
	...
	// I use the `/language RUS` key for revit.exe
	// But I see that my add-in user the 'default' localization
	// instead of 'ru'. Hm...
	// Ok,I will check the CurrentCulture and CurrentUICulture 
	// values...
	//
	// Oops... Localization was changed by the `/language RUS` 
	// key, but not for that thread which shall to have this 
	// change! Why???
	CultureInfo n = Thread.CurrentThread.CurrentCulture; // ru-RU
	CultureInfo m = Thread.CurrentThread.CurrentUICulture; // en

	// I can fix this problem myself:
	// The CurrentUICulture switching fixes the problem, but 
	// why such problem occurs in Revit?
	CultureInfo k = new CultureInfo("ru");
	Thread.CurrentThread.CurrentUICulture = k;
	
	// Now my add-in uses right localization. 
	...
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2017 11:13:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6837625#M60644</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-28T11:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why the '/language' key switches CurrentCulture instead of CurrentUICulture?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6838902#M60645</link>
      <description>&lt;P&gt;&amp;gt; Why does the &lt;STRONG&gt;/language&lt;/STRONG&gt; key switch the localization &lt;STRIKE&gt;not of that thread&lt;/STRIKE&gt; which is responsible for the user interface (UI)? Is it bug?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I correct my question: Why the &lt;STRONG&gt;/language&lt;/STRONG&gt; key doesn't switch the `&lt;STRONG&gt;Thread.CurrentThread.CurrentUICulture&lt;/STRONG&gt;`&amp;nbsp; which is responsible for the user interface (UI)? Is it bug?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2017 18:01:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6838902#M60645</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-29T18:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why the '/language' key switches CurrentCulture instead of CurrentUICulture?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6840039#M60646</link>
      <description>&lt;P&gt;Today I found that this problem exists in Revit 2017.1.1, but this problem is absent in Revit 2017. Therefore it is possible that this bug will appear in Revit 2018.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For demonstration of this problem I created the project and published it &lt;A href="https://bitbucket.org/Andrey-Bushman/research_of_revit_culture_switching_problem" target="_self"&gt;here&lt;/A&gt;. For fix this bug in Revit 2017.1.1 it is possible to use such class:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;public sealed class UICultureSwitcher : IDisposable {

    CultureInfo previous;
    
    public UICultureSwitcher() {

        CultureInfo culture = new CultureInfo(Thread
            .CurrentThread.CurrentCulture.Name);

        previous = Thread.CurrentThread.CurrentUICulture;
        Thread.CurrentThread.CurrentUICulture = culture;
    }

    void IDisposable.Dispose() {
        Thread.CurrentThread.CurrentUICulture = previous;
    }
}
&lt;/PRE&gt;
&lt;P&gt;So, if to place code of methods of each external command and external application into the `using` block with this class member initializing then the problem will be fixed. My monologue is ended.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 12:34:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6840039#M60646</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-30T12:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why the '/language' key switches CurrentCulture instead of CurrentUICulture?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6842581#M60647</link>
      <description>&lt;P&gt;Expanded info and patch of this bug is &lt;A href="https://revit-addins.blogspot.ru/2017/01/revit-201711.html?view=classic" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 08:11:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6842581#M60647</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-31T08:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why the '/language' key switches CurrentCulture instead of CurrentUICulture?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6843557#M60648</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Andrey,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you very much for your report, in-depth research, professional workaround and all the documentation you provided both here and on your blog.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I like your blog post very much. I have not seen any public samples demonstrating proper multi-language resource handling before, so I would love to share your documentation and samples on The Building Coder as well, if that is ok for you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Would you like to point out the single most relevant and exciting post of all? Then I can start by translating, editing and publishing that. If people like it and say so, or if you think there are other important nuggets in there that you would like to make available, we can look at adding more later.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What do you think?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Returning to the issue at hand:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I logged the issue &lt;U&gt;&lt;STRONG&gt;REVIT-107819&lt;/STRONG&gt;&lt;/U&gt; [the '/language' key switches CurrentCulture and not CurrentUICulture -- 12610584] with our development team for this on your behalf as it requires further exploration and possibly a modification to our software. Please make a note of this number for future reference.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You are welcome to request an update on the status of this issue or to provide additional information on it at any time quoting this change request number.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This issue is important to me. What can I do to help?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This issue needs to be assessed by our engineering team, and prioritised against all other outstanding change requests. Any information that you can provide to influence this assessment will help. Please provide the following where possible:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;Impact on your application and/or your development.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;The number of users affected.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;The potential revenue impact to you.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;The potential revenue impact to Autodesk.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Realistic timescale over which a fix would help you.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;In the case of a request for a new feature or a feature enhancement, please also provide detailed Use cases for the workflows that this change would address.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This information is extremely important. Our engineering team have limited resources, and so must focus their efforts on the highest impact items. We do understand that this will cause you delays and affect your development planning, and we appreciate your cooperation and patience.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 15:47:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6843557#M60648</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-01-31T15:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why the '/language' key switches CurrentCulture instead of CurrentUICulture?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6844457#M60649</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ok, I created the &lt;STRONG&gt;RevitMultiLanguageAddInExample&lt;/STRONG&gt; simple example and published it on GitHub &lt;A href="https://github.com/Andrey-Bushman/RevitMultiLanguageAddInExample" target="_self"&gt;here&lt;/A&gt;. I hope my code will be clear for you. Write me into this topic if you will have any problem with it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Andrey&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 20:49:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6844457#M60649</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-31T20:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why the '/language' key switches CurrentCulture instead of CurrentUICulture?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6845290#M60650</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Andrey,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your very nice sample.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I love your two sample commands. They are beautiful with the flowers&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I compiled and debugged, starting up the sample with the settings stored in the Visual Studio project, i.e., the command line flag /language RUS.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I saw some Cyrillic in the Revit open screen, so it apparently had some effect. Most of the UI is still in English though. Almost all, in fact.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also, the two sample commands appear in English.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is that expected?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;RevitPatches.PatchCultures is called in OnStartup, so I would have expected the sample commands to appear in Russian, since the command line flag /language RUS has been set.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Did I misunderstand its use?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Or is my system set up differently than yours?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you clarify, please?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;U&gt;Update:&lt;/U&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In OnStartup, my&amp;nbsp;application.ControlledApplication.Language equals English_USA.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Therefore, obviously the English sample command&amp;nbsp;resources are used.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How can I switch that to RUS?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Should I expect the command line switch to achieve that?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Update 2:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can set a breakpoint in&amp;nbsp;PatchCultures and manually force&amp;nbsp;LanguageType.Russian.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then the sample commands appear in Russian.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;Update 3:&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The obj/Debug folder in the GitHub repo contains some unneeded stuff that should be removed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually, the entire folder should be removed, shouldn't it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And added to .gitignore?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 08:09:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6845290#M60650</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-02-01T08:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why the '/language' key switches CurrentCulture instead of CurrentUICulture?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6845413#M60651</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I created that example yesterday late at night.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This morning I made video which shows the easiest way of creation and editing of the resource files. You can look at it here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/edit?video_id=DKCm3p9Gp9M&amp;amp;feature=em-upload_owner" target="_blank"&gt;https://www.youtube.com/edit?video_id=DKCm3p9Gp9M&amp;amp;feature=em-upload_owner&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you use &lt;STRONG&gt;/language RUS&lt;/STRONG&gt; key the UI of my add-in, its tooltip, expanded tooltip, and help file (when you press F1) are to be russian.&lt;/P&gt;
&lt;P&gt;When you use &lt;STRONG&gt;/language ENU&lt;/STRONG&gt; key the UI of my add-in, its tooltip, expanded tooltip, and help file (when you press F1) are to be english.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The same for the TaskDialog content.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That example I did at home. Now I am in office. I will download and check it here...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 09:22:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6845413#M60651</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-01T09:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why the '/language' key switches CurrentCulture instead of CurrentUICulture?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6845417#M60652</link>
      <description>&lt;P&gt;When I run your sample from the Visual Studio debugger specifying &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;/language RUS&lt;/FONT&gt;&lt;/STRONG&gt;, the content is still in English, and the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;application.ControlledApplication.Language&lt;/FONT&gt; equals English_USA.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apparently, on my system, the /language flag does not affect&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;application.ControlledApplication.Language&lt;/FONT&gt; in the expected manner.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 09:25:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6845417#M60652</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-02-01T09:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why the '/language' key switches CurrentCulture instead of CurrentUICulture?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6845482#M60653</link>
      <description>&lt;P&gt;Hm... Jeremy, I wrote the video how does it work on my computer: &lt;A href="https://www.youtube.com/watch?v=f1IBVgP7T1I&amp;amp;feature=youtu.be" target="_blank"&gt;https://www.youtube.com/watch?v=f1IBVgP7T1I&amp;amp;feature=youtu.be&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Oops... On video I forgot to press my buttons... But The text of my TaslDialog is localized too. If you want, I can re-record video and show it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What Revit version do you use?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 10:15:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6845482#M60653</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-01T10:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Why the '/language' key switches CurrentCulture instead of CurrentUICulture?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6845677#M60654</link>
      <description>&lt;P&gt;Attached zip-file contains the screens of Revit versions of machines where I tested this example. All works fine for them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, if I disable my patch applying in the &lt;STRONG&gt;OnStartup&lt;/STRONG&gt; method then in Revit 2017&lt;STRONG&gt;.2&lt;/STRONG&gt; it works fine without my patch too(!!!). I can't check it myself right now but it was checked by one of users which has this Revit version.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 12:06:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6845677#M60654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-01T12:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why the '/language' key switches CurrentCulture instead of CurrentUICulture?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6845935#M60655</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt; In OnStartup, my application.ControlledApplication.Language equals English_USA.&lt;BR /&gt;&amp;gt; Therefore, obviously the English sample command resources are used.&lt;BR /&gt;&amp;gt; How can I switch that to RUS? &lt;BR /&gt;&lt;BR /&gt;I don't know. I think that you can't do it.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Should I expect the command line switch to achieve that?&lt;BR /&gt;&lt;BR /&gt;Yes, of course.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; The obj/Debug folder in the GitHub repo contains some unneeded stuff that should be removed.&lt;BR /&gt;&amp;gt; Actually, the entire folder should be removed, shouldn't it?&lt;BR /&gt;&amp;gt;And added to .gitignore?&lt;BR /&gt;&lt;BR /&gt;Yes, you are right. I will do it later. Also I will add the `&lt;EM&gt;readme.md&lt;/EM&gt;` file.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2017 13:33:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6845935#M60655</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-01T13:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why the '/language' key switches CurrentCulture instead of CurrentUICulture?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6878814#M60656</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Andrey,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I heard back from the development team about the issue REVIT-107819 [the '/language' key switches CurrentCulture and not CurrentUICulture -- 12610584] that I raised for you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;They closed this issue saying 'works as expected', and explain:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The CurrentUICulture should be implemented and maintained by the add-in. I checked several add-ins, and they set the CurrentUICulture for the code. So the customer should also set their own culture settings as they please.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 07:49:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6878814#M60656</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-02-15T07:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why the '/language' key switches CurrentCulture instead of CurrentUICulture?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6879335#M60657</link>
      <description>&lt;P&gt;Dear Jeremy,&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&amp;gt; They closed this issue saying 'works as expected', and explain:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;gt; The CurrentUICulture should be implemented and maintained by the add-in.&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;Revit 2017.1.1 has this problem, but Revit 2017.2 hasn't one. Which of them has '&lt;EM&gt;works as expected&lt;/EM&gt;'? If one of them '&lt;EM&gt;works as expected&lt;/EM&gt;' then the second of them '&lt;EM&gt;works as non expected&lt;/EM&gt;'. Am I right? It seems that the person who answered you just didn't want to investigate this problem... &lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;&amp;gt; The CurrentUICulture should be implemented and maintained by the add-in.&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;This is disgusting decision... Who will be able to guarantee that uncontrolled switching of this property won't create problems for other applications which don't expect such behavior? The value of this property shall correspond to value of the '/language' key. &lt;BR /&gt;&lt;BR /&gt;Ok, I understood the reply of ADN. &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Andrey&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 13:05:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6879335#M60657</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-15T13:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why the '/language' key switches CurrentCulture instead of CurrentUICulture?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6879570#M60658</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Andrey,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your input.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You are right, of course.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Maybe the development team is also &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Anyway, I added your note to the development team on the issue &lt;U&gt;&lt;STRONG&gt;REVIT-107819&lt;/STRONG&gt;&lt;/U&gt; [the '/language' key switches CurrentCulture and not CurrentUICulture -- 12610584].&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;They are always under a lot of pressure, have a lot to do, and investigate only as far as they absolutely must.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 14:17:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/why-the-language-key-switches-currentculture-instead-of/m-p/6879570#M60658</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-02-15T14:17:26Z</dc:date>
    </item>
  </channel>
</rss>

