Gabor Grothendieck <[EMAIL PROTECTED]> writes:

> I am not sure how generally this works but I was able to get it to switch
> back and forth between two languages within  a single R
> session like this:
> 
> > Sys.getenv("LANGUAGE")
> LANGUAGE
>       ""
> > q() # note English prompt; c means continue rather than exiting
> Save workspace image? [y/n/c]: c
> > Sys.putenv(LANGUAGE="it")
> > q() # note Italian prompt
> Salva area di lavoro? [y/n/c]: c
> > Sys.putenv(LANGUAGE="en")
> > q() # now we are back to English
> Save workspace image? [y/n/c]: n

Hmm, doesn't quite seem to work on Fedora:

> Sys.putenv(LANGUAGE="it")
> q()
Save workspace image? [y/n/c]: c
> Sys.setenv(LANGUAGE="it")
Errore: non trovo la funzione "Sys.setenv"
> Sys.putenv(LANGUAGE="en")
> Sys.setenv(LANGUAGE="it")
Errore: non trovo la funzione "Sys.setenv"
> q()
Save workspace image? [y/n/c]: c

So the save prompt is untranslated (but this happens with 

LANG=it_IT R

as well(?!)), but worse, it doesn't seem to want to set the language
back to English.

-- 
   O__  ---- Peter Dalgaard             Ă˜ster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - ([EMAIL PROTECTED])                  FAX: (+45) 35327907

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to