Loading...
 
Multi-Language Add-In for Visual Studio

Multi-Language Add-In for Visual Studio


Force resources re-generation

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.

Germany

Use the third button on the toolbar Image and select Native Runtime Support.
Image
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

> 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 smile 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 wink


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

Germany

I ran into that as well. It's fixed in version 4.7x.0019.
Sorry.

Phil


No problem. Thanks for fixing it.