I found this resource to be very useful
This is a wrapper around HttpContext.Current.GetGlobalResourceString and HttpContext.Current.GetLocalResourceString , which allows you to call resources like this ...
// default global resource Html.Resource("GlobalResource, ResourceName") // global resource with optional arguments for formatting Html.Resource("GlobalResource, ResourceName", "foo", "bar") // default local resource Html.Resource("ResourceName") // local resource with optional arguments for formatting Html.Resource("ResourceName", "foo", "bar")
The only problem I encountered is that the controllers do not have access to local resouce strings.
user10479 Sep 16 '08 at 0:00 2008-09-16 00:00
source share