Quantcast
Channel: ResX Resource Manager
Viewing all articles
Browse latest Browse all 2435

Commented Unassigned: Support for csthml / Move to ressource [4778]

$
0
0
It would be nice if ResX Manager could support the extraction of string resources from cshtml files.

Two cases could be addressed :

- HTML/JS String

<meta name="description" content="__RESOURCE_TO_EXTRACT__">

- Razor String

@{
int x = 123;
string y ="__RESOURCE_TO_EXTRACT__";
}

Highlighting the string would give access to the "Move to resource" command like in a cs file.

The html/JS string could be replaced by @Html.Raw(Resx.ID) optionaly, or by default, as it's usually the way you want the string injected in the html/JS.
Comments: ** Comment from web user: thieum22 **

I must be missing something, the option to move string to ressources doesn't appear in my cshtml file(it works in the other kind of files, like cs files):

![Image](https://s7.postimg.org/62gegmx6z/menu_Resx.png)

I'm using VS2015 with update 3 and Resx Manager 1.0.0.94. Here is the config I'm using, didn't change anything apart from the suggested pattern:

![Image](https://s12.postimg.org/5jt6d9jj1/config_Resx.png)

Tested it in VS2017, and the same is happening.


Viewing all articles
Browse latest Browse all 2435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>