Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 7C01B9FB7F8 for ; Mon, 7 May 2007 08:22:03 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 23171-03 for ; Mon, 7 May 2007 08:21:55 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by postgresql.org (Postfix) with ESMTP id A4B4D9FB7E1 for ; Mon, 7 May 2007 08:21:55 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id a73so1191945pye for ; Mon, 07 May 2007 04:21:54 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mAarC1rtvio1t7PNihLdvfA/Z3nzG4vp8yE54N2gC4h1htIlM1mlMBe6QiLcE+Zlq/hlUz1k2tQOzamCVOoI0P9kXGKQeu0ywoDW9UEGK/1ra1OgceRcnfgWE8lJI0O9XyaAeM3YfKzKvPRHiOU0cG3uxKz1m8ocJQMfoh77XnE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=j+FbykD6wcNol7L7/dt9Q1lqnUlUwAGtLzDkZ3hNQ05xTGDwuvBOtwg4g2IKN1TsiUp1cWUzj6KVdCVakIf0rcIAwOa8c8DZXNeIr//7pM07AY8y4G06geHMgTXXSo6yCJJEuyNgEQcjKtM+Grmq+hID0RcstllDnv0or9OiOi8= Received: by 10.35.66.1 with SMTP id t1mr11117103pyk.1178536913627; Mon, 07 May 2007 04:21:53 -0700 (PDT) Received: by 10.35.85.17 with HTTP; Mon, 7 May 2007 04:21:53 -0700 (PDT) Message-ID: Date: Mon, 7 May 2007 14:21:53 +0300 From: "Adrian Maier" To: "PostgreSQL www" Subject: Re: How to make the website use a translated po file ? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <463BB2ED.2030206@lelarge.info> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/41 X-Sequence-Number: 11975 On 5/5/07, Adrian Maier wrote: > On 5/5/07, Guillaume Lelarge wrote: > > Hi Adrian, > > > > Adrian Maier a =E9crit : > > > I have copied the translated portal.mo to the portal/intl/ro_RO/LC_ME= SSAGES > > > directory. And I have set the preferred language to "Romanian" in the= web > > > browser. > > > What else needs to be done so that the menus get displayed using the > > > translated texts ? > > > > > > > You need to make sure that Romanian is the language required by your > > browser. If you use Firefox, here is what I did. On the location bar, > > type "about:config". In the filter, type "accept_lang". Double click on > > the value of "intl.accept_languages" and add at the beginning "ro,". > > Click OK. Reload your local page. > > I have done that, except that i've changed the languages from > Tools->Options->Advanced->Languages . > > The page contents is displayed according to the first language that > appears in browser's list , but the navigation menus are still displaye= d > in English. > > The same problem happens when setting the language to French > ( i've unpacked Guillaume's frenchwebsite2.tar.bz2 on my copy of the > pgsql site ). > > Guillaume, do you happen have a minute to see with your browser settings > whether the menus are displayed corectly in French on my server > http://pgsql.newsoftcontrol.ro ? > This would help with finding out where is the problem : on the server or = in my > browser . > > Also, are you using Firefox translated in French , or do you have the lo= cale > set to French? On my client machine everything is in English , but this > shouldn't matter ... I have found a solution: the directory where i put the French portal.mo has to be intl/fr , not intl/fr_FR . Similarly, the Romanian translation works if i put it in portal/intl/ro/LC_MESSAGES . Cheers, Adrian Maier