title: Xamarin iOS localization using .NET
body: <p>I'm trying to use .NET localization in a portable class library for a Xamarin iOS/Android project.  I've followed the steps at:</p>
  
  <p><a href="https://stackoverflow.com/questions/1142802/how-to-use-localization-in-c-sharp">How to use localization in C#</a></p>
  
  <p>And have code which looks as follows:</p>
  
  <pre><code>string sText = strings.enter_movie_name;
  Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("fr");
  sText = strings.enter_movie_name;
  lblEnterMovieName.Text = sText;
  </code></pre>
  
  <p>I've also tried:</p>
  
  <pre><code>ResourceManager resman = new ResourceManager(typeof(MyApplication.strings));
  string sText = resman.GetString("enter_movie_name", new CultureInfo("fr"));
  </code></pre>
  
  <p>I've created strings.resx with enter_movie_name equal to "Enter movie name:" and strings.fr.resx equal to "Entre la movie name:"</p>
  
  <p>However, sText always ends up as "Enter movie name:".  I can't seem to get the "Entre la movie name:" version out.</p>
  
  <p>I also saw the post at <a href="https://stackoverflow.com/questions/16958508/xamarin-cross-platform-localization">Cross-platform Localization</a> but couldn't work it out.  I also don't want to use the iOS specific version at <a href="https://stackoverflow.com/questions/20128657/localization-on-xamarin-ios">Localization on Xamarin.iOS</a> as I'd like to be able to get at my strings from a platform independent library.</p>
  
  <p>Can anyone point out where I'm going wrong?</p>