Force resources re-generation Posted by ornus on Wed 23 of Jun, 2010 02:43 GMT I deleted Form.en.resx and similar files by hand, but keep Form.resx Is there an easy way to force add-in to regenerate the files with the strings I selected for localization? It still shows control and all text in add-in form. Thanks.
Posted by Phil on Wed 23 of Jun, 2010 07:32 GMT Use the third button on the toolbar and select Native Runtime Support. This will bring up a dialog where you can select the languages and components to export. This used to be the only way to generate the resources. Now that I generate the resources automatically, I ought to rename this menu command to something like Regenerate resources. Phil
Posted by davidcie on Wed 23 of Jun, 2010 08:57 GMT > This used to be the only way to generate the resources. > Now that I generate the resources automatically, I ought to > rename this menu command to something like Regenerate resources. Could not agree more Phil, I only re-discovered this option when I came across problems I wasn't able to solve and only did thanks to your email support - in which you instructed me to regenerate resources Now that I know the option I use it quite often if I find some complex controls have missing strings, and it works like a charm
Posted by ornus on Wed 23 of Jun, 2010 17:53 GMT When I do it I sometimes get the following exception: Date: 6/23/2010 1:53:05 PM Vers: 4.71.0018 Win: Microsoft Windows NT 6.1.7600.0 VS: 9.0.1.1 Excep: System.Runtime.InteropServices.COMException Description: Cannot find file "D:\Project\Form.en.resx". Additional Info: Unhandled error Stack Trace: at EnvDTE.ProjectItems.AddFromFile(String FileName) at MultiLang.modResXUtil.AddResxToProjectItems(clsProjectItemArray ResxPitArray, ProjectItems ParentProjectItems, Boolean IsWpf, String ResXFileName, Boolean IsNeutral) in D:\MultiLang.NET\Framework_3_5\MultiLang\Modules\modResXUtil.vb:line 853 at MultiLang.modResXUtil.AddResxToProject(clsProjectItemArray ResxPitArray, ProjectItem ParentItem, Boolean IsWpf, String ResXFileName, Boolean IsNeutral) in D:\MultiLang.NET\Framework_3_5\MultiLang\Modules\modResXUtil.vb:line 893 at MultiLang.modResXUtil.ExportLocalResxForWindowsForms(clsProjectItemArray ResxPitArray, MyCultureInfoCollection& SelectedLanguages, Boolean CleanUpResourceStrings) in D:\MultiLang.NET\Framework_3_5\MultiLang\Modules\modResXUtil.vb:line 394 at MultiLang.ctlToolWindow.ContextMenuExportResources() in D:\MultiLang.NET\Framework_3_5\MultiLang\Controls\ctlToolWindow.vb:line 8460 at MultiLang.ctlToolWindow.ContextMenuResource(Object sender, EventArgs e) in D:\MultiLang.NET\Framework_3_5\MultiLang\Controls\ctlToolWindow.vb:line 8596
Posted by Phil on Wed 23 of Jun, 2010 22:06 GMT I ran into that as well. It's fixed in version 4.7x.0019. Sorry. Phil