I am trying to use .resx files for localization in xamarin.mac
Inside AppDelegate I changed the current thread culture:
System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo ("ru");
System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo ("ru");
I also have two resource files inside my application:

But lines are always displayed from the default resource file ... Any solution?
I also use a change in the native language, here is the full AppDelegate constructor:
public AppDelegate ()
{
string [] lang = { "ru", "en" };
NSUserDefaults.StandardUserDefaults.SetValueForKey (NSArray.FromObjects (lang), (Foundation.NSString)"AppleLanguages");
NSUserDefaults.StandardUserDefaults.Synchronize ();
System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInfo ("ru");
System.Threading.Thread.CurrentThread.CurrentCulture = new CultureInfo ("ru");
Resources.Culture = GetCurrentCultureInfo ();
}
BTW, xamarin studio 6.1.1 (build 15) does not allow me to add a .resx resource if I have a resource in my project, a curious mistake!
I created the resource-ru.resx file and renamed it.
source
share