[rrd-users] changing locale when displaying graph?

Tobias Oetiker tobi at oetiker.ch
Wed Sep 22 22:22:54 CEST 2010


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 tobi at oetiker.ch ++41 62 775 9902 / sb: -9900



More information about the rrd-users mailing list