I am very new to ASP.NET MVC 4 and I am trying to get an application to use the text from resources files of different countries (Resource.en-us.resx, Resource.es-Es.resx)
I used to have a LocalResource
folder that I was able to access from a Model
like this :
using Concordia_CRM.LocalResource;
[Required]
[Display(Name = "SD_NombreEmpresa", ResourceType = typeof(Resource))]
public string NombreEmpresa { get; set; }
But then I also read some answers mentioning the App_LocalResources
and I have managed to apply those solution to access the texts from a VIEW but now dont know how to change the model to access them.
I have read questions and answers:
How to use app_GlobalResource or app_LocalResource?
How does the App_LocalResources work with MVC?
But have still not found a single approach to access the texts of the Resource file from a VIEW and a MODEL wich is compact and standard
From the model I have tried this
using Concordia_CRM.App_LocalResources <-- but this is not recognized
I can type Resources.Resource.
but nothing else is available there and I dont want to have .resx files inside each view