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

Multi-Language Add-In for Visual Studio


Questions

Hello!
I am evaluating your software, and I'm interensted about following:
1. Can namespace that is inserted in files be specified somwhere in settings or changed in some other way?
2. Can behavior of attribute translations be modified: I want to use custom display attribute which takes 3 arguments instead of 2, and be in it own namespace?

Germany

1.
The namespace is always MultiLang. In fact this only applies to C# projects. For VB.NET projects, I don't bother with a namespace at all.

(I think that the Visual Studio forms designer does the same. It inserts a namespace directive in C# projects, but not VB.NET.)

I could add an option to define the namespace. I think that it would actually be a three way option:

  • no namespace
  • same namespace as project
  • a specific namespace (different from the project)


Specifying this option once only, during the initialization, would be pretty straightforward, and very little code. The question is, what to do if you change the option later on. To make it work properly, the Add-In should rename the existing namespace and modify any Using/Imports statements. It might also have to add or remove Using/Imports statements.

How important do you think this is?

I personally, don't think it is very important. But I do believe in implementing the features that users actually want.smile

(2)
I think that you can edit the definition by hand, providing:

  • the attribute name starts with ml_
  • the string ID parameter is immediately before the string for which is is used


I haven't tried it out, but I think that is all that the Add-In checks.

(In fact, I think you could have two string parameters, each preceded by a String ID, if you defined the Attribute yourself).

Phil