Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 3C7D32E0161 for ; Sun, 16 Mar 2008 19:32:57 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 74134-09 for ; Sun, 16 Mar 2008 19:32:42 -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 postgresql.org (Postfix) with ESMTP id 9E2C42E0269 for ; Sun, 16 Mar 2008 19:32:31 -0300 (ADT) Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by sd-2317.dedibox.fr (Postfix) with ESMTP id 42D562466; Sun, 16 Mar 2008 23:32:29 +0100 (CET) Message-ID: <47DD9F5C.1060101@lelarge.info> Date: Sun, 16 Mar 2008 23:29:48 +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> In-Reply-To: <47DD4BAA.5000402@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/368 X-Sequence-Number: 14487 Magnus Hagander a écrit : > Guillaume Lelarge wrote: >> [...] >> Second, base_href is set to http://www.postgresql.org/, making any >> links go to the official website. I'm wondering why we didn't use the >> value of $_SETTINGS['hosted_url'] for example as it can be a local >> setting. > > This is intentional. If you end up on wwwmaster by a link, you should > automatically be sent back to the www mirrors. > > You can control this by setting the ISMASTER variable from your apache > configuration. Set it to "1" and there will be no base href set. For > example, the config on wwwmaster has: > > # When accessed locally, don't set BASE HREF, because that would break > # the static mirrors. When accessed dynamically, set it so we don't > # load the dynamic server with static requests. > SetEnvIf Remote_Addr "^(127|217\.196\.146\.204)" ISMASTER=1 > > > In the apache config. > OK, works great with this. > > Any comments ? better ways to solve these ? > > I assume it's a typo that you included a patch for .htaccess there? If > not, then that part certainly looks wrong :-) > You're right, it's a typo. Sorry about this. > I assume you have tested that once these things are changed, > translations of them actually work? I'm particularly wondering about the > parts where there are template tags inside the translation. > Actually, I didn't check all strings. Strictly speaking about the parts with template tags, I did it because I've seen other parts with template tags within a func_lang function call. I'll check more deeply... but I think it will be harder because many of them depend on the search functionality. Anyways, I'm working on it... Thanks for your comments. -- Guillaume. http://www.postgresqlfr.org http://dalibo.com