Thursday, 15 September 2011

asp.net - How to apply a localization to a javascript string -


I have specified a string for a JavaScript string object, such as:

  var Word = "Please input correct actions"   

I want this string to be in control by a resource file in ASP.NET project. Does it provide functions to switch strings using ASP.NET syntax to switch strings?

  & lt;%% Resources: Registration, correct version% & gt;   

Thanks.

There are various l18n projects for javascript, like

if your ASP project Rezax files are and you want them as Javascript or JSON files; Or you can change a resource file as follows:

  $ curl - data-binary @ messages.resx \ http://localise.biz/api/convert/resx/messages Json < / Code>  

(for example, in curl, which I think you might not have if you're on Windows)

No comments:

Post a Comment