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

Multi-Language Add-In for Visual Studio


One general global resources file for ASP.NET project

Hi Phil
I am evaluating your product for a multilingual ASP.NET project
I am very happy with what I have seen so far
I, however, wanted to use one single global resources file for the whole project
I do not want to use local resources files
I still did not find a way to do it with ASP and HTML files
It looks like the product is creating a local resources file for each of this kind of file

Anyway to configure this? (one single global resources file)
if not, any project to add this feature in the future?

Thanks for your help

Germany

Technically, I think I can do this, because this is more or less how the runtime language switching feature works. All strings are stored in MultiLang.ResX and a function ml_UpdateControls() is added to each page to update the translated properties. What it needs is an option to suppress the generation of the local resource files.

I am currently working on a new version in which I am changing to a different grid component. This sounds like a small change, but it is turning out to be really major change. I will try to put this feature into the new version.

On the other hand, using local resource files is the way that Microsoft handles localization of ASP pages. Using any other mechanism is swimming against the tide, and I can't really recommend it.

Phil

Hi Phil
Thank you for your answer and the solution you're working on
You said
> On the other hand, using local resource files is the way that Microsoft handles localization of ASP pages. Using any other mechanism is swimming against the tide, and I can't really recommend it.>

I was discussing this with my team and none could find any Microsoft explicit recommendation on the web

We found some discussion where people are arguing "One global file versus many local files" but nothing really official from Microsoft

Regards
Med


Germany

Microsoft has provided a way to localize ASP pages by inserting the attribute meta:resourcekey. When this is present it automatically loads strings from a local resource file.

When you are viewing an ASP page in design mode, there is a menu command "Generate Local Resource" in the Tools menu, which automatically adds the meta:resourcekey attribute and generates a local resource file. (Without any help from my Add-In. Maybe I should keep this command secret.smile)

This is basically the Microsoft method of localizing ASP pages. I don't know whether you would call it a recommendation, but I think Microsoft would expect you to use this method unless you have a good reason not to.

There is an overwiew in the topic ASP.NET Web Page Resources Overview in the Visual Studio help (on in the internet) although I admit I havn't read every word of this article.

Phil