localize VSTO addin according to the language of the office product
问题 I'm developing a VSTO addin and want it to be localized according to the language version of the office product. In theory, that's how to do it: int lcid = Application.LanguageSettings.get_LanguageID(Office.MsoAppLanguageID.msoLanguageIDUI); System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(lcid); For this to work I need Application to be initialized, of course. So the earliest point where I can execute this code is in the Startup event handler. At