Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 4BB289FB2FD for ; Mon, 7 May 2007 09:38:08 -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 47287-02 for ; Mon, 7 May 2007 09:38:02 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sd-2317.dedibox.fr (sd-2317.dedibox.fr [88.191.17.192]) by postgresql.org (Postfix) with ESMTP id 4051E9FB2E3 for ; Mon, 7 May 2007 09:38:02 -0300 (ADT) Received: from sd-2317.dedibox.fr (localhost.localdomain [127.0.0.1]) by sd-2317.dedibox.fr (Postfix) with ESMTP id BBADD1015A; Mon, 7 May 2007 14:45:34 +0200 (CEST) Received: from [192.168.10.64] (ASte-Genev-Bois-153-1-97-145.w86-218.abo.wanadoo.fr [86.218.123.145]) by sd-2317.dedibox.fr (Postfix) with ESMTP id E0C262602; Mon, 7 May 2007 14:45:33 +0200 (CEST) Message-ID: <463F1D9F.4000703@lelarge.info> Date: Mon, 07 May 2007 14:37:51 +0200 From: Guillaume Lelarge User-Agent: Thunderbird 2.0.0.0 (X11/20070326) MIME-Version: 1.0 To: Adrian Maier CC: PostgreSQL www Subject: Re: How to make the website use a translated po file ? References: <463BB2ED.2030206@lelarge.info> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.561 tagged_above=0 required=5 tests=AWL=-0.527, BAYES_40=-0.185, INFO_TLD=1.273 X-Spam-Level: X-Archive-Number: 200705/42 X-Sequence-Number: 11976 Adrian Maier a écrit : > On 5/5/07, Adrian Maier wrote: >> On 5/5/07, Guillaume Lelarge wrote: >> > Hi Adrian, >> > >> > Adrian Maier a écrit : >> > > I have copied the translated portal.mo to the >> portal/intl/ro_RO/LC_MESSAGES >> > > 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 >> displayed >> 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 >> locale >> 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 . > Sorry, I forgot to reply to your previous mail. Did you tweak system/global/languages.php ? because I added an alias for fr_FR in the $GLOBALS['_LANGUAGE_ALIASES'] array. Here is the new declaration : $GLOBALS['_LANGUAGE_ALIASES'] = array( 'br' => 'pt_BR', 'en' => 'en_US', 'fr' => 'fr_FR', 'ru' => 'ru_RU', 'tr' => 'tr_TR' ); With romanian, it will be like this one : $GLOBALS['_LANGUAGE_ALIASES'] = array( 'br' => 'pt_BR', 'en' => 'en_US', 'fr' => 'fr_FR', 'ro' => 'ro_RO', 'ru' => 'ru_RU', 'tr' => 'tr_TR' ); This way, you'll be able to use the ro_RO directory. Regards. -- Guillaume.