title: Liferay - How to i18n model-resources?
body: <p>How can I translate my custom model-resources?
  Given the following <code>default.xml</code>:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;model-resource&gt;
      &lt;model-name&gt;de.foo.db.model.FooBar&lt;/model-name&gt;
      &lt;portlet-ref&gt;
          &lt;portlet-name&gt;myportlet&lt;/portlet-name&gt;
      &lt;/portlet-ref&gt;
      &lt;permissions&gt;
          &lt;supports&gt;
              &lt;action-key&gt;DECLINE_OWNER&lt;/action-key&gt;
              &lt;action-key&gt;DECLINE_DEPARTMENT&lt;/action-key&gt;
          &lt;/supports&gt;
          &lt;site-member-defaults/&gt;
          &lt;guest-defaults/&gt;
          &lt;guest-unsupported&gt;
              &lt;action-key&gt;DECLINE_OWNER&lt;/action-key&gt;
              &lt;action-key&gt;DECLINE_DEPARTMENT&lt;/action-key&gt;
          &lt;/guest-unsupported&gt;
          &lt;owner-defaults/&gt;
      &lt;/permissions&gt;
  &lt;/model-resource&gt;
  </code></pre>
  
  <p>When I want to define these permissions for a role <code>Control-panel-&gt; roles-&gt; myRole-&gt; define permissions</code>
  they get listed as:</p>
  
  <ul>
  <li>model.resource.de.foo.db.model.FooBar:action.DECLINE_OWNER</li>
  <li>model.resource.de.foo.db.model.FooBar:action.DECLINE_DEPARTMENT</li>
  </ul>
  
  <p>But I'd like them to show up as:</p>
  
  <ul>
  <li>FooBar: Decline own element</li>
  <li>FooBar: Decline element for own department</li>
  </ul>
  
  <p>I'm running Liferay 6.2 EE.</p>