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"); 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? -- Darren _______________________________________________ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
_______________________________________________ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users