title: Multilingual website solution without using resource files
body: <p>I need to add localization to a website that uses some legacy code (mixture of classic ASP with ASP.net). Using resource files is not an option unfortunately...</p>
  
  <p>The way I was advised to do it, would be to pull the strings from the DB, save it using a simple dictionary and cache it:</p>
  
  <pre><code>System.Collections.Generic.Dictionary&lt;string, string&gt; transl
  </code></pre>
  
  <p>I was thinking of another way, why not create a tool that loads the strings from the db and creates a file with the dictionary.</p>
  
  <pre><code>transl["main1"] = "Main text...";
  transl["main2"] = "some moretext...";
  transl["PM"]    = "Private message";
  </code></pre>
  
  <p>And then include it using the old</p>
  
  <pre><code>&lt;!--#INCLUDE virtual="strings.aspx"--&gt;
  </code></pre>
  
  <p>I understand that this is a very ugly and old way of doing it, but I have no other option. Would my approach be better, performance wise?</p>