Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ripped from a google search result: <a href="http://bytes.com/topic/net/answers/468556-change-currentuiculture-controls-doesnt-refresh" rel="nofollow">http://bytes.com/topic/net/answers/468556-change-currentuiculture-controls-doesnt-refresh</a></p> <blockquote> <p>Change "CurrentUICulture" will not automatically take effect in all UI control.</p> <p>Change "CurrentUICulture" just affect some APIs which are releated to localization. For example, "System.Resources.ResourceManager.GetString(.. .)", then it will use the current "CurrentUICulture" to load suitable string resources.</p> <p>For Windows.Form UI control, you need to reload all the resource strings after change the "CurrentUICulture".</p> </blockquote> <p>Assuming your resources are actually localized (note that you have to do this manually - nothing will do it for you automatically), you might be able to set the UI culture before showing your first Window. E.g. in <code>Main</code>.</p> <p><strong>Edit:</strong></p> <p>Also, make sure you set the <code>CurrentUICulture</code> on the UI thread.</p> <p>Here's some example code for how to refresh your UI (again, stolen from the link at the top of this answer):</p> <pre><code>System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(lang); //my selected lang from menu ReloadControlString(); //... private void ReloadControlString() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FormMain)); this.menuApp.Text = resources.GetString("menuApp.Text"); } </code></pre> <p>You can probably grab some of this from <code>InitializeComponent()</code>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload