Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Once way of doing so, is to make sure the resources aren't compiled.</p> <p>When you add a resource file (e.g. TextResource.resx) you can access the resources in a type safe manner.</p> <p>For example:</p> <pre><code>ViewBag.Message = Resources.TextResource.MyMessage; </code></pre> <p>After you add a resource file (*.resx), select it in the solution explorer and view its properties. Clear the "Custom Tool" property. By default it contains the value "GlobalResourceProxyGenerator". Just delete this value.</p> <p>This has a downside, however as you can no longer access the resources in a type-safe manner. You'll have to load them using the <a href="http://msdn.microsoft.com/en-us/library/system.web.httpcontext.getglobalresourceobject.aspx" rel="noreferrer">GetGlobalResourceObject</a> and <a href="http://msdn.microsoft.com/en-us/library/system.web.httpcontext.getlocalresourceobject.aspx" rel="noreferrer">GetLocalResourceObject</a> methods of the current HttpContext.</p> <p>For example:</p> <pre><code>ViewBag.Message = this.HttpContext.GetGlobalResourceObject("TextResource", "Hello", CultureInfo.CurrentUICulture); </code></pre> <p>This way you'll be able to manually alter the resource files (*.resx). You could then opt to build an application which can read and modify the contents of the resource files, which are just XML files. </p> <p>For example:</p> <p><a href="http://www.codeproject.com/KB/cs/Editing_a_ResourceFile.aspx" rel="noreferrer">http://www.codeproject.com/KB/cs/Editing_a_ResourceFile.aspx</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload