Thanks Gábor,<div><br></div><div>I already submitted the patch yesrterday. <a href="http://drupal.org/node/1187084">http://drupal.org/node/1187084</a></div><div><br></div><div>Bests,</div><div><br><div class="gmail_quote">
On Tue, Jun 14, 2011 at 08:36, 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 Pedro,<br>
<br>
The way to get improvements to Drupal core is to post your suggestion<br>
for improvement on the <a href="http://drupal.org" target="_blank">drupal.org</a> issue queue. It is not like that<br>
Drupal core maintainers pick improvements from blogs of different<br>
people :) Please post your patch with a summary of your performance<br>
findings and pros/cons so it can be discussed on <a href="http://drupal.org" target="_blank">drupal.org</a>. Let us<br>
know about the link to your <a href="http://drupal.org" target="_blank">drupal.org</a> issue.<br>
<br>
Thanks for your work,<br>
<font color="#888888">Gábor<br>
</font><div><div></div><div class="h5"><br>
On Mon, Jun 13, 2011 at 4:45 PM, Pedro Lozano <<a href="mailto:pedro@al.quimia.net">pedro@al.quimia.net</a>> wrote:<br>
> Sorry,<br>
> Reference:<br>
> * <a href="http://al.quimia.net/en/blog/improving-drupal-performance-using-native-gettext-for-translations" target="_blank">http://al.quimia.net/en/blog/improving-drupal-performance-using-native-gettext-for-translations</a><br>
><br>
> On Mon, Jun 13, 2011 at 16:39, Gábor Hojtsy <<a href="mailto:gabor@hojtsy.hu">gabor@hojtsy.hu</a>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> Where have you posted the patch?<br>
>><br>
>> Gábor<br>
>><br>
>> On Mon, Jun 13, 2011 at 4:37 PM, Pedro Lozano <<a href="mailto:peterlozano@gmail.com">peterlozano@gmail.com</a>><br>
>> wrote:<br>
>> > Hi,<br>
>> > I'd like to know if anyone has ever experimented with making Drupal use<br>
>> > 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<br>
>> > 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<br>
>> > 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<br>
>> > but<br>
>> > for sites with little changes to the translations and where performance<br>
>> > 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<br>
>> > we've<br>
>> > planned to make some kind of interface that allows you to generate the<br>
>> > .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>
><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> | <a href="tel:%2B34%20667836318" value="+34667836318">+34 667836318</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> | <a href="tel:%2B34%C2%A0956396515" value="+34956396515">+34 956396515</a><br>
><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><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>
</div>