Tech List

[index] [prev] [next] [options] [help]
See the Mailing Lists Page for how to subscribe and unsubscribe.

eprints_tech messages

Please note: this page shows emails that have been sent to the eprints_tech mailing list. Some of these may be spam emails we have failed to filter.

Re: [EP-tech] multi-language

From: Jean-Marie Le Bechec <Jean-Marie.Lebechec AT inp-toulouse.fr>
Date: Tue, 13 Jan 2004 09:44:59 +0100


Threading: [EP-tech] multi-language from Jean-Marie.Lebechec AT inp-toulouse.fr
      • This Message

yes my browser accept cookies (IE, Opera) and i see the cookie in my cache 
changing fr<-->en. Also, i have no problem to change the language with 
other multiligual eprints site..

Actually, after having to modify demoeprints.xml (<archivename 
language="en">demoeprints</archivename>
<archivename language="fr">demoeprint 
french</archivename>, etc..), 
generate_view, etc, and reload in my browser, I see only the French 
version and if id do "http://demoeprints/perl/set_lang?langid=en", i 
always see the French version with "demoeprint french" in my home 
page...

Should I reinstall apache/mod_perl?

thank you.

Le Mon, 12 Jan 2004 18:53:47 +0000, Christopher Gutteridge 
<cjg AT ecs.soton.ac.uk> a écrit:

> OK. Version 2.2 requires cookies to set this preference.
>
> Version 2.3 will, if no cookie is set, look at your browser preferences 
> (which is what I shoud have done in the first place...)
>
> Does your browser accept cookies?
>
> Everything you did sounds spot on.
>
> On 7 Jan 2004, at 09:03, Jean-Marie Le Bechec wrote:
>
>> hello,
>>
>> I want to configure a multi-lingual site for eprints. I followed the 
>> documentation of Viviane Bouletreau :
>>
>> * addition of static content : /defaultcfg/static/fr/*
>>
>> * $c->{multi_language_options} = 1; in ArchiveConfig.pm
>>
>> * <lang id="fr" supported="yes" 
>French</lang> in languages.xml
>>
>> * modification in demoeprints.xml
>>
>>     <archive id="demoeprints">
>>      ...
>>     <language>fr</language>
>>     <language>en</language>
>>     ...
>>     <defaultlanguage>en</defaultlanguage>
>>     ...
>>     <archivename 
language="en">demoeprints</archivename>
>>     <archivename 
language="fr">demoeprintsaaaaaaa</archivename>
>>
>> * bin/generate_static demoeprints
>> Starting language fr...
>> /opt/eprints2/archives/demoeprints/html/fr/contact.html
>> /opt/eprints2/archives/demoeprints/html/fr/error401.html
>> /opt/eprints2/archives/demoeprints/html/fr/index.html
>> /opt/eprints2/archives/demoeprints/html/fr/information.html
>> /opt/eprints2/archives/demoeprints/html/fr/vlit.html
>> /opt/eprints2/archives/demoeprints/html/fr/help/index.html
>> ...done fr
>> Starting language en...
>> /opt/eprints2/archives/demoeprints/html/en/contact.html
>> /opt/eprints2/archives/demoeprints/html/en/error401.html
>> /opt/eprints2/archives/demoeprints/html/en/index.html
>> /opt/eprints2/archives/demoeprints/html/en/information.html
>> /opt/eprints2/archives/demoeprints/html/en/vlit.html
>> /opt/eprints2/archives/demoeprints/html/en/help/index.html
>>
>> * stop/start httpd
>>
>> ok
>>
>> * http://demoeprints.inp-toulouse.fr/perl/set_lang?langid=fr in my 
>> browser
>>
>> and  i have :
>>
>> "Language Changed
>> Preferred language set to French
>> The default language of this archive is English."
>>
>> * go to home page..
>>
>> * reload the web page (cache)
>>
>> and .... nothing... If i understand well, I should see "Welcome 
to 
>> demoeprintsaaaaaaa" ?
>>
>> In my local cache, i have a cookie "Lang: fr"
>>
>> where is the problem ? How to debug ?
>>
>> Thanks for your help
>>
>>
>>
>> -- ***********************************************
>> Jean Marie Le Bechec
>> lebechec AT inp-toulouse.fr
>>
>> Institut National Polytechnique de Toulouse
>> 6 allée Emile Monso - bp 4038 -
>> 34038 Toulouse cedex 4
>>
>> Tél : 05 62 24 21 30
>> ***********************************************
>>
>
> Christopher Gutteridge - cjg AT ecs.soton.ac.uk - 023 8059 4833
>



-- 
***********************************************
Jean Marie Le Bechec
lebechec AT inp-toulouse.fr

Institut National Polytechnique de Toulouse
6 allée Emile Monso - bp 4038 -
34038 Toulouse cedex 4

Tél : 05 62 24 21 30
***********************************************


[index] [prev] [next] [options] [help]