<div>Hi,</div><div><br></div><div>I&#39;d like to know if anyone has ever experimented with making Drupal use the php gettext extension to retrieve the string translations from a binary gettext file (.mo)?</div><div><br></div>

<div>We have recently made a patch that allows Drupal to do this. We published a blog post about it last week.</div><div><br></div><div>The pre-compile gettext file is created with &quot;msgfmt -o messages.mo drupal-es.po&quot;.</div>

<div><br></div><div>When you place it at sites/whatever/locale/es/LC_MESSAGES/messages.mo, Drupal detects it and uses the gettext function to retrieve the translations from the file.</div><div><br></div><div>It improves performance even in a clean Drupal install.</div>

<div><br></div><div>Of course you loose the flexibility of the string translating interface but for sites with little changes to the translations and where performance is key this helps with hardware resources and scalability.</div>

<div><br></div><div>This week we will be at Barcelona Drupal Days and for the code sprint we&#39;ve planned to make some kind of interface that allows you to generate the .mo file directly from Drupal.</div><div><br></div>

<div>Could this patch be proposed for D8, D7, D6, Pressflow?</div><div><br></div><br clear="all"><br>-- <br>Pedro Lozano <br><a href="mailto:peterlozano@gmail.com" target="_blank">peterlozano@gmail.com</a> | <a href="http://peterlozano.com" target="_blank">http://peterlozano.com</a><br>

<a href="mailto:pedro@al.quimia.net" target="_blank">pedro@al.quimia.net</a> | <a href="http://al.quimia.net" target="_blank">http://al.quimia.net</a><br>+34 ( 667836318 | 956396515 )<br>