Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id F0F192E003D for ; Sat, 22 Mar 2008 17:59:27 -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 27774-03 for ; Sat, 22 Mar 2008 17:59:25 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id 44A5A2E0037 for ; Sat, 22 Mar 2008 17:59:25 -0300 (ADT) Received: from perhan.alvh.no-ip.org (200-126-66-43.bk5-dsl.surnet.cl [200.126.66.43]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id m2MKxkct003032 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 22 Mar 2008 13:59:49 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 5313547BFE; Sat, 22 Mar 2008 17:59:14 -0300 (CLST) Date: Sat, 22 Mar 2008 17:59:14 -0300 From: Alvaro Herrera To: Guillaume Lelarge Cc: Magnus Hagander , PostgreSQL www Subject: Re: Patch to make some strings available to translations Message-ID: <20080322205914.GF13206@alvh.no-ip.org> 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> <47E18DFA.5030003@lelarge.info> <47E52413.1030407@lelarge.info> <47E52489.7030608@lelarge.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47E52489.7030608@lelarge.info> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Sat, 22 Mar 2008 13:59:50 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/499 X-Sequence-Number: 14618 Guillaume Lelarge wrote: >> I guess I was wrong. You'll find a patch attached that implements a >> func_image function via a call to setCallbackFunction. >> >> I can also send a complete patch (the previous one which adds >> translation to some texts, and this patch). Suggestion: check if the image exists in the translated version, serve the english version if not. That way you only need to produce alternate images for those that need translation. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.