title: How to register a Pylons translator object?
body: <p>I've got an application that runs in several processes (one webserver and few processes that are used for heavy calculations). The goal is to make these calculation processes return localized errors. In order to do that, I've made a dictionary that will be used by Babel:</p>
  
  <pre><code>errors = {
      'ERR_REQUEST_FORMAT': (1, _('ERR_REQUEST_FORMAT')),
      'ERR_REQUEST_TYPE': (2, _('ERR_REQUEST_TYPE')),
  }
  </code></pre>
  
  <p>But when I try to to launch the application, I get</p>
  
  <pre><code>TypeError: No object (name: translator) has been registered for this thread
  </code></pre>
  
  <p>What is the right way to load the translator object? </p>
  
  <p>Thanks in advance, Ivan.</p>