Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 2B83D2E003D for ; Wed, 19 Mar 2008 19:07:28 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 78246-01 for ; Wed, 19 Mar 2008 19:07:25 -0300 (ADT) Received: from mx3.hub.org (mx3.hub.org [206.223.169.73]) by postgresql.org (Postfix) with ESMTP id 5CC192E0031 for ; Wed, 19 Mar 2008 19:07:25 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sd-2317.dedibox.fr (sd-2317.dedibox.fr [88.191.17.192]) by mx3.hub.org (Postfix) with ESMTP id 03432382C17 for ; Wed, 19 Mar 2008 19:07:24 -0300 (ADT) Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by sd-2317.dedibox.fr (Postfix) with ESMTP id 23D2B211F; Wed, 19 Mar 2008 23:07:19 +0100 (CET) Message-ID: <47E18DFA.5030003@lelarge.info> Date: Wed, 19 Mar 2008 23:04:42 +0100 From: Guillaume Lelarge User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: Magnus Hagander CC: PostgreSQL www Subject: Re: Patch to make some strings available to translations References: <47DAF7E3.8070502@lelarge.info> <47DD4BAA.5000402@hagander.net> <47DD9F5C.1060101@lelarge.info> <47E0B5CD.9030504@lelarge.info> <47E18498.4060609@lelarge.info> <47E18CDB.60303@hagander.net> In-Reply-To: <47E18CDB.60303@hagander.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/396 X-Sequence-Number: 14515 Magnus Hagander a écrit : > Guillaume Lelarge wrote: >> Guillaume Lelarge a écrit : >>> [...] >>> Next work... translatable images. >>> >> >> I found a way to get translatables images but I can't stop thinking >> this is an ugly *ugly* hack. Here is my idea : using the func_lang on >> the href part of the img tag. For example, here is a part of the patch : >> >> -

> src="/layout/images/en/hdr_featureduser.png" width="104" height="10" >> alt="Featured User" />

>> +

> src=func_lang("'/layout/images/en/hdr_featureduser.png'") width="104" >> height="10" alt=func_lang("'Featured User'") />

>> >> This way, each translation can add a specific path and a specific >> filename. Perhaps, we can only use the path. In my tests, I use >> /layout/images/fr instead of /layout/images/en. >> >> Do you have any comments on this dirty idea ? :) if you think this is >> something doable, I can quickly build a small patch. > > I don't like it at all. > Yep, I guess it couldn't be that simple :) > I think we need something like func_image('hdr_featureduser.png'), and > then have the framework take care of that one. > Which means we need to modify the framework ? that'll be a much bigger work than what I intended to do. Anyways, I'll get a look at it. >> But my real issue is doing the actual images... I'm not good a this :) > > That's another problem. It requires non-free fonts... See the archives :-( > Yes, I remember this. > Perhaps this is a good time to try to find a free font that can do what > we need. > +1 -- Guillaume. http://www.postgresqlfr.org http://dalibo.com