public inbox for [email protected]
help / color / mirror / Atom feedHow to make the website use a translated po file ?
6+ messages / 2 participants
[nested] [flat]
* How to make the website use a translated po file ?
@ 2007-05-04 20:31 Adrian Maier <[email protected]>
2007-05-04 22:25 ` Re: How to make the website use a translated po file ? Guillaume Lelarge <[email protected]>
0 siblings, 1 reply; 6+ messages in thread
From: Adrian Maier @ 2007-05-04 20:31 UTC (permalink / raw)
To: pgsql-www
Hello ,
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 ?
I have read the recent thread started by Guillame Lelarge who had trouble
with the same issue . But it's still unclear what needs to be done to
"activate" a translated po .
Cheers,
Adrian Maier
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: How to make the website use a translated po file ?
2007-05-04 20:31 How to make the website use a translated po file ? Adrian Maier <[email protected]>
@ 2007-05-04 22:25 ` Guillaume Lelarge <[email protected]>
2007-05-05 05:40 ` Re: How to make the website use a translated po file ? Adrian Maier <[email protected]>
0 siblings, 1 reply; 6+ messages in thread
From: Guillaume Lelarge @ 2007-05-04 22:25 UTC (permalink / raw)
To: Adrian Maier <[email protected]>; +Cc: pgsql-www
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.
Regards.
--
Guillaume.
<!-- http://abs.traduc.org/
http://lfs.traduc.org/
http://docs.postgresqlfr.org/ -->
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: How to make the website use a translated po file ?
2007-05-04 20:31 How to make the website use a translated po file ? Adrian Maier <[email protected]>
2007-05-04 22:25 ` Re: How to make the website use a translated po file ? Guillaume Lelarge <[email protected]>
@ 2007-05-05 05:40 ` Adrian Maier <[email protected]>
2007-05-07 11:21 ` Re: How to make the website use a translated po file ? Adrian Maier <[email protected]>
0 siblings, 1 reply; 6+ messages in thread
From: Adrian Maier @ 2007-05-05 05:40 UTC (permalink / raw)
To: pgsql-www
On 5/5/07, Guillaume Lelarge <[email protected]> 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 ...
Cheers,
Adrian Maier
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: How to make the website use a translated po file ?
2007-05-04 20:31 How to make the website use a translated po file ? Adrian Maier <[email protected]>
2007-05-04 22:25 ` Re: How to make the website use a translated po file ? Guillaume Lelarge <[email protected]>
2007-05-05 05:40 ` Re: How to make the website use a translated po file ? Adrian Maier <[email protected]>
@ 2007-05-07 11:21 ` Adrian Maier <[email protected]>
2007-05-07 12:37 ` Re: How to make the website use a translated po file ? Guillaume Lelarge <[email protected]>
0 siblings, 1 reply; 6+ messages in thread
From: Adrian Maier @ 2007-05-07 11:21 UTC (permalink / raw)
To: pgsql-www
On 5/5/07, Adrian Maier <[email protected]> wrote:
> On 5/5/07, Guillaume Lelarge <[email protected]> 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 .
Cheers,
Adrian Maier
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: How to make the website use a translated po file ?
2007-05-04 20:31 How to make the website use a translated po file ? Adrian Maier <[email protected]>
2007-05-04 22:25 ` Re: How to make the website use a translated po file ? Guillaume Lelarge <[email protected]>
2007-05-05 05:40 ` Re: How to make the website use a translated po file ? Adrian Maier <[email protected]>
2007-05-07 11:21 ` Re: How to make the website use a translated po file ? Adrian Maier <[email protected]>
@ 2007-05-07 12:37 ` Guillaume Lelarge <[email protected]>
2007-05-07 13:16 ` Re: How to make the website use a translated po file ? Guillaume Lelarge <[email protected]>
0 siblings, 1 reply; 6+ messages in thread
From: Guillaume Lelarge @ 2007-05-07 12:37 UTC (permalink / raw)
To: Adrian Maier <[email protected]>; +Cc: pgsql-www
Adrian Maier a écrit :
> On 5/5/07, Adrian Maier <[email protected]> wrote:
>> On 5/5/07, Guillaume Lelarge <[email protected]> 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.
<!-- http://abs.traduc.org/
http://lfs.traduc.org/
http://docs.postgresqlfr.org/ -->
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: How to make the website use a translated po file ?
2007-05-04 20:31 How to make the website use a translated po file ? Adrian Maier <[email protected]>
2007-05-04 22:25 ` Re: How to make the website use a translated po file ? Guillaume Lelarge <[email protected]>
2007-05-05 05:40 ` Re: How to make the website use a translated po file ? Adrian Maier <[email protected]>
2007-05-07 11:21 ` Re: How to make the website use a translated po file ? Adrian Maier <[email protected]>
2007-05-07 12:37 ` Re: How to make the website use a translated po file ? Guillaume Lelarge <[email protected]>
@ 2007-05-07 13:16 ` Guillaume Lelarge <[email protected]>
0 siblings, 0 replies; 6+ messages in thread
From: Guillaume Lelarge @ 2007-05-07 13:16 UTC (permalink / raw)
To: Adrian Maier <[email protected]>; +Cc: pgsql-www
Adrian Maier a écrit :
> On 5/7/07, Guillaume Lelarge <[email protected]> wrote:
>>
>> 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.
>
> I hadn't added the aliases for 'fr' and 'ro' . This explains why
> it wasn't working for me.
>
>
> Thanks Guillaume !
>
You're welcome :)
--
Guillaume.
<!-- http://abs.traduc.org/
http://lfs.traduc.org/
http://docs.postgresqlfr.org/ -->
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2007-05-07 13:16 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-05-04 20:31 How to make the website use a translated po file ? Adrian Maier <[email protected]>
2007-05-04 22:25 ` Guillaume Lelarge <[email protected]>
2007-05-05 05:40 ` Adrian Maier <[email protected]>
2007-05-07 11:21 ` Adrian Maier <[email protected]>
2007-05-07 12:37 ` Guillaume Lelarge <[email protected]>
2007-05-07 13:16 ` Guillaume Lelarge <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox