Sorry,<div><br></div><div>Reference:</div><div><br></div><div>* <a href="http://al.quimia.net/en/blog/improving-drupal-performance-using-native-gettext-for-translations">http://al.quimia.net/en/blog/improving-drupal-performance-using-native-gettext-for-translations</a></div>
<div><br></div><div><br><div class="gmail_quote">On Mon, Jun 13, 2011 at 16:39, Gábor Hojtsy <span dir="ltr"><<a href="mailto:gabor@hojtsy.hu">gabor@hojtsy.hu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
Where have you posted the patch?<br>
<font color="#888888"><br>
Gábor<br>
</font><div><div></div><div class="h5"><br>
On Mon, Jun 13, 2011 at 4:37 PM, Pedro Lozano <<a href="mailto:peterlozano@gmail.com">peterlozano@gmail.com</a>> wrote:<br>
> Hi,<br>
> I'd like to know if anyone has ever experimented with making Drupal use the<br>
> php gettext extension to retrieve the string translations from a binary<br>
> gettext file (.mo)?<br>
> We have recently made a patch that allows Drupal to do this. We published a<br>
> blog post about it last week.<br>
> The pre-compile gettext file is created with "msgfmt -o messages.mo<br>
> drupal-es.po".<br>
> When you place it at sites/whatever/locale/es/LC_MESSAGES/messages.mo,<br>
> Drupal detects it and uses the gettext function to retrieve the translations<br>
> from the file.<br>
> It improves performance even in a clean Drupal install.<br>
> Of course you loose the flexibility of the string translating interface but<br>
> for sites with little changes to the translations and where performance is<br>
> key this helps with hardware resources and scalability.<br>
> This week we will be at Barcelona Drupal Days and for the code sprint we've<br>
> planned to make some kind of interface that allows you to generate the .mo<br>
> file directly from Drupal.<br>
> Could this patch be proposed for D8, D7, D6, Pressflow?<br>
><br>
><br>
> --<br>
> Pedro Lozano<br>
> <a href="mailto:peterlozano@gmail.com">peterlozano@gmail.com</a> | <a href="http://peterlozano.com" target="_blank">http://peterlozano.com</a><br>
> <a href="mailto:pedro@al.quimia.net">pedro@al.quimia.net</a> | <a href="http://al.quimia.net" target="_blank">http://al.quimia.net</a><br>
> +34 ( 667836318 | 956396515 )<br>
><br>
</div></div></blockquote></div><br><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> | +34 667836318<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> | +34 956396515<br><br>
</div>