martes, julio 05, 2011

Faster Localization on ASP.NET MVC3 with Razor

Some time ago I asked at StackOverflow if someone knew any Visual Studio 2010 add-in for Razor, where I can select a string and send it directly to a Resource file. I did not get any useful answer. So I download the last version I found of the Resource Refactoring Tool, here or here. And I touch a few lines of code so that it supports .cshtml files (Razor). Below you can download the source or/and the installer.
How it works:
Just in your cshtml file, select a string that is inside quotes marks "" or @"", and then click on Refactor -> Extract to resource.

Hope it helps.
Installer            Source

No hay comentarios.: