title: How can I translate model and attribute names of an Rails Engine?
body: <p>The usual way to translate model and attribute names of a Rails project are:</p>
  
  <pre><code>MyModel.model_name.human
  
  MyModel.human_attribute_name :myattribute
  </code></pre>
  
  <p>or, when you are using a form for MyModel:</p>
  
  <pre><code>form.label :myattribute
  </code></pre>
  
  <p>The locale file <code>config/locales/en.yml</code> looks like this:</p>
  
  <pre><code>en:
    activerecord:
      models:
        mymodel:
          one: TranslatedMyModel
          other: TranslatedMyModels
    attributes:
      mymodel:
        myattribute: translated attribute
  </code></pre>
  
  <p>And this works for a regular Rails project. When the same model would be part of an Engine called <code>MyEngine</code>, the same would be put into <code>config/locales/en.yml</code> of the Engine and prefixed with my_engine:</p>
  
  <pre><code>en:
    my_engine:
        activerecord:
          models:
            mymodel:
              one: TranslatedMyModel
              other: TranslatedMyModels
        attributes:
          mymodel:
            myattribute: translated attribute
  </code></pre>
  
  <p>The my_engine prefix works for various translations, <strong>except</strong> when trying to get model or attribute names via the above mentioned methods.</p>
  
  <p>I have set up a fresh Rails project and Engine with Rails 3.2.11 to test that, but without success.</p>
  
  <p>Does anybody know how to make this work?</p>