Thanks! I actually had to edit /etc/locale.gen, uncomment pt_BR and then run locale-gen.
Now it works. :-) At Wednesday, 09-22-2010 on 13:22 "Tobias Oetiker" wrote: Ricardo, Today Ricardo Kleemann wrote: > I'm using a system() call. > > I've done this in the script: > > $ENV{'LANG'} = "pt_BR"; > $ENV{'TZ'} = "America/Sao_Paulo"; > setlocale(LC_ALL, "pt_BR"); try locale-gen pt_BR first cheers tobi > > And even put this in .htaccess: > setenv TZ America/Sao_Paulo > setenv LANG pt_BR > DefaultLanguage pt-BR > > The TZ is working. But not the language. I'm trying to get dates > displayed in Portuguese but no matter what I do they always come out > in English. > > Ricardo > > At Wednesday, 09-22-2010 on 11:14 "A Darren Dunham" wrote: > > On Tue, Sep 21, 2010 at 08:41:58PM -0700, Ricardo Kleemann wrote: > > I was trying to display the graph with a different locale. I don't > > want to change the local on the server itself, but within a perl > > script be able to change such that the graph displays the time and > > date text in another language (pt_BR). > > How are you generating the graph? Are you doing external calls with > system() directly, or are you using one of RRDp or RRDs? > > -- Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland http://it.oetiker.ch t...@oetiker.ch ++41 62 775 9902 / sb: -9900
_______________________________________________ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users