Hi,
I'm trying to display the graph with a different locale too. But this
solution doesn't work :(
I'm using this local (display with "locale" command) :
LANG=fr_FR.UTF-8
LANGUAGE=
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=
Date display by cmd line date :
mardi 19 juin 2012, 15:49:41 (UTC+0200)
When I use, "rrdtool graph", date format aren't in fr_FR locale :
week instead of sem
mon instead of lun ....
I'am using 1.4.3 version of rrdtool. (i already tried with 1.4.7
version, it doesn't work too)
with debian squeeze.
thx for your help
Yannick.
Le 22/09/2010 23:04, Ricardo Kleemann a écrit :
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" <t...@oetiker.ch>
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
_______________________________________________
rrd-users mailing list
rrd-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users