Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In terms of performance it's difficult to beat using resource files (.resx) as these are effectively XML files on the server - you don't have round trips to the database to fetch the localisation text.</p> <p>The system uses keys with associated text values, and separate resx files for each supported locale.</p> <p>In order to consume these strings you would use a strongly typed class like this-</p> <pre><code>&lt;h1&gt;@WebResources.Page_Title_String&lt;/h1&gt; &lt;p&gt;@WebResources.Intro_Paragraph&lt;/p&gt; </code></pre> <p>This makes it easy to send your site for translation into different languages as all the strings are in one place and there are plenty of tools available to work with the files inside and outside of Visual Studio. It is even possible to <a href="http://www.guysmithferrier.com/post/2009/09/Automatically-Translating-resx-Files-Using-Microsoft-Translator.aspx" rel="nofollow">translate the file using Bing to give your translator a head start</a>.</p> <p>As this is effectively an XML file, you can easily manipulate it with using Linq to XML to create a web interface to change the text if you want. I have seen at least a couple of commercial products which use this approach both for localisation and customisation of product text.</p> <p>See <a href="http://msdn.microsoft.com/en-us/library/ms227427%28v=vs.100%29.aspx" rel="nofollow">ASP.NET Web Page Resources Overview</a> and <a href="http://msdn.microsoft.com/en-us/library/ms247246%28v=vs.100%29.aspx" rel="nofollow">How to: Create Resource Files for ASP.NET Web Sites</a> for more details for Resource Files.</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. This table or related slice is empty.
    1. 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