Re: [R] Fwd: Re: East Asian language

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Fri 15 Jul 2005 - 20:55:16 EST

Gabor Grothendieck <ggrothendieck@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@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Fri Jul 15 20:59:32 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:45 EST