Hello Sirs,
I had fall into problem with localizing Navisworks plugin. I need to translate c# plugin string resources into Russian language. I got Russian strings in ribbon buttons, but I can't get it in simple windows form that created after pressing the ribbon button. I tried several ways: put, for example, button identifier "button1.Text" into Form1.ru.resx and plugin_ru-RU.name without any success. Form is appeared with english text although ribbon button text is Russian string that comes from *.name file. Also I tried standard c# way:
CultureInfo ci = new CultureInfo("ru-RU"); Thread.CurrentThread.CurrentUICulture = ci; ResourceManager rm = new ResourceManager("Plugin1.Localization", Assembly.GetExecutingAssembly()); MessageBox.Show(rm.GetString("String1")); MessageBox.Show(rm.GetString("String1",ci));
without success too...
Would you be so kind to explain how to make localization in Naviswoks plugin in the right way?
With regards, Sergey.