Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 9B32D2E0044 for ; Wed, 19 Mar 2008 18:27:31 -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 55154-08 for ; Wed, 19 Mar 2008 18:27:28 -0300 (ADT) Received: from mx3.hub.org (mx3.hub.org [206.223.169.73]) by postgresql.org (Postfix) with ESMTP id ADB2B2E0031 for ; Wed, 19 Mar 2008 18:27:28 -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 33898382F5A for ; Wed, 19 Mar 2008 18:27:28 -0300 (ADT) Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by sd-2317.dedibox.fr (Postfix) with ESMTP id 5A03BA14A; Wed, 19 Mar 2008 22:27:18 +0100 (CET) Message-ID: <47E18498.4060609@lelarge.info> Date: Wed, 19 Mar 2008 22:24:40 +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> In-Reply-To: <47E0B5CD.9030504@lelarge.info> 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/395 X-Sequence-Number: 14514 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 : -

Featured User

+

func_lang("'Featured

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. But my real issue is doing the actual images... I'm not good a this :) -- Guillaume. http://www.postgresqlfr.org http://dalibo.com