title: How to localise a CakePHP plugin?
body: <p>I'm developing a CakePHP plugin which should support multiple languages. The procedure for i18n localisation is documented <a href="http://book.cakephp.org/view/1228/Internationalization-Localization" rel="noreferrer">here</a>, but plugins aren't explicitly covered. Is this structure below supposed to work? Because it isn't for me at the moment, but I might be overlooking something.</p>
  
  <pre><code>/myapp/
    /plugins/
      /myplugin/
        /locale/
          default.pot
          /nld/
            /LC_MESSAGES/
              default.mo
              default.po
  </code></pre>
  
  <p>And calling the translation in the plugin controller like so:</p>
  
  <pre><code>Configure::write('Config.language', 'nld');
  </code></pre>
  
  <p>In my plugin views the localisation function is formatted like this:</p>
  
  <pre><code>__('MyPluginName', 'MyDefaultString')
  </code></pre>
  
  <p>Some of the posts on CakePHP and the localisation of plugins mention that all locales should go in to <code>/myapp/locale/</code>, instead of the plugin directory, but wouldn't that defy the purpose of the modular plugin structure? The entries I've read are from 2008 (<a href="http://groups.google.com/group/cakephp-edge/browse_thread/thread/cd91bea5f5edad84" rel="noreferrer">this one</a> for example), so I hope this isn't the case anymore.</p>
  
  <p>Could anybody provide me with some more details on localising a Cake plugin, perhaps even a small step by step tutorial?</p>