[R] Fwd: Re: East Asian language
Peter Dalgaard
p.dalgaard at biostat.ku.dk
Fri Jul 15 12:55:16 CEST 2005
Gabor Grothendieck <ggrothendieck at gmail.com> 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
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help
mailing list