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

Multi-Language Add-In for Visual Studio


Visual Studio 2010

Hello Phil,

We've just installed VS2010 and are wondering if the component will work on it.. What are the release plans for an add-in that do (if the 4.7 doesn't)?

BTW, congratulations on 4.7!!

Regards,
caco

Germany

Hi Caco,

I have already updated the installation so that the Add-In works with Visual Studio 2010 beta 2. I have not done very much testing, but it seemed to work OK.

I don't personally have a subscription to MSDN, but I have ordered a Visual Studio 2010 upgrade version via the Microsoft Store. Although I live in Germany, I ordered it via the Microsoft Store in the UK to get an English version.

To my amazement, they have now informed me that the expected release date has been delayed to May 15. The release date was to have been April 12 and I have not seen any press announcements that it has been delayed. I have the feeling that I am being messed around!

When I finally get the final release, I will make sure that the Add-In works.

Phil


Hi Phil

We also upgraded all of our development boxes. It would be nice if we had this addon working in VS2010

Regards, Tom

Germany

Hi Tom,

version 4.65.0051 in December 2009 has support for VS 2010 beta 2. Unless they have made significant changes to the installation of Add-Ins, it will probably work with the release version.

I am very annoyed with Microsoft at the moment, in particular with the Microsoft Store (UK). Today they finally confirmed my order and sent me a download link which doesn't work! And I couldn't get through to the hotline.

Phil


Hello Phil,

I confirm that the addon works great in VS2010

The only thing that I found was missing is the "locate in multi lang" in the context menu (very useful btw) Can you enable this again?

>I am very annoyed with Microsoft at the moment, in particular with the Microsoft Store (UK). >Today they finally confirmed my order and sent me a download link which doesn't work! And I >couldn't get through to the hotline.

Are you planning to go on the "VS2010 Market Place" (or whatever the marketing bg call it)? Thats great news! This addon will get the love it deserves. Hope you can make a good living out of it.

Regards, Tom


Hello Phil,

Did you fix the context menu in the latest build. I read the change log and didn't see it listed.

All the best, Tom

Germany

Hello Tom,

I haven't actively fixed it, but I have tested it and did work for me.

I have now made three separate versions for Visual Studio 2005, 2008 and 2010. The version for VS 2010 is compiled against .NET Framework 4.0. The previous version was compiled against .NET Framework 2.0. This might make a difference, but I don't really know.

Best regards
Phil


Germany

Hi Tom,

you are right. I have fixed this already, but not yet uploaded a new version. I will try to do it later today.

Phil

Germany

Hi Tom,

I have uploaded a new version (4.72.0009) in which the context menu command should work again.

This version also contains a new feature which might interest you. On the Web tab in the setup dialog, there is a new option Scan code in ASP files (experimental).
Image

If you select this option, then the ASP scan should detect strings in script code embedded into ASP files, either between <script></script> tags, or within <% %> tags.

If you select a string for translation, the Add-In will insert an ml_string() function call, just as in the source code. For C# projects, it will automatically insert a line to import the MultiLang namespace.

I must stress, that this feature is still in development. One thing which does not yet work is hiding stings with the sun/moon icon. In fact, I am not sure how to implement this feature in some cases, in particular in <%# %> or <%= %> tags. Syntactically, I don't think that the //MLHIDE or 'MLHIDE comment will work in these tags, although I think /*MLHIDE*/ would work with C#.

I'm toying with the idea of hiding items by enclosing them in <span> tags, for example <span class='MLHIDE'>...</span>.

I would love to have some feedback from ASP developers about this feature.

By the way, the support at present is strictly server side. It seems obvious to me, that the next step should be javascript support, with some kind of AJAX mechanism to handle client side script code. What do you think about that?

Phil


I confirm 4.72.0009 fixes VS2010


"If you select this option, then the ASP scan should detect strings in script code embedded into ASP files, either between tags, or within tags."

> Thats a nice addition. I haven't missed it but I think that it will complete the addon.


"I must stress, that this feature is still in development. One thing which does not yet work is hiding stings with the sun/moon icon. In fact, I am not sure how to implement this feature in some cases, in particular in or tags. Syntactically, I don't think that the //MLHIDE or 'MLHIDE comment will work in these tags, although I think /*MLHIDE*/ would work with C#."

> is short hand syntax for Response.Write
As you know the asp compiles the aspx/ascx to pure .cs (.bv) file.
The markup is effectivly transformed to .net code (aspx files are a DSL for HTML :-) )
You could see the result of this in the Temporary ASP.NET Files, for example
C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\recytyre_trunk_recytyre.extranet_recytyre.extranet.web\8661ff6b\7bd2d7ef

This is _very_ helpfull in figuring out what your options are in the markup.

is a different beast but you can see what asp.net makes of it in the Temporary ASP.NET Files I guess.


"By the way, the support at present is strictly server side. It seems obvious to me, that the next step should be javascript support, with some kind of AJAX mechanism to handle client side script code. What do you think about that?"

Can you give a use case scenario of this?

Regards, Tom


The special asp characters for "open caret % ..." were lost in my last post. I hope you can figure out where they should go :-)