title: Change localization at execution WPF
body: <p>I have a WPF application that I want it to be two languages. I duplicated my <code>Resources.resx</code> and built my two languages like this:</p>
  
  <p><img src="https://i.stack.imgur.com/2DOyD.png" alt="enter image description here"></p>
  
  <p>So when I first load my <code>MainApplication</code>  I do this:</p>
  
  <pre><code>Properties.Resources.Culture = new CultureInfo("es-ES");
  </code></pre>
  
  <p>before the </p>
  
  <pre><code>InitializeComponent();
  </code></pre>
  
  <p>So everything is loaded in the desired language. Now I want to go the obvious step further, and I designed a <code>Select language</code> on my application:</p>
  
  <p><img src="https://i.stack.imgur.com/i1ZzI.png" alt="enter image description here"></p>
  
  <p>Any idea on how to reload the interface for the different languages at <strong>execution time</strong>?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I found <a href="http://www.codeproject.com/Articles/22967/WPF-Runtime-Localization?msg=4490202#xx4490202xx" rel="nofollow noreferrer">this</a> link, and seems to work. But I have a problem. When I try to find the <code>Resources x:key</code> it launches an error... It says <code>ResourceReferenceKeyNotFoundException</code>. Go <a href="https://stackoverflow.com/questions/14750583/resourcereferencekeynotfoundexception-declared-on-dictionary-xaml">here</a> to check my mistake.</p>