<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi,<br>
<br>
I'm trying to display the graph with a different locale too. But
this solution doesn't work :(<br>
<br>
I'm using this local (display with "locale" command) :<br>
LANG=fr_FR.UTF-8<br>
LANGUAGE=<br>
LC_CTYPE="fr_FR.UTF-8"<br>
LC_NUMERIC="fr_FR.UTF-8"<br>
LC_TIME="fr_FR.UTF-8"<br>
LC_COLLATE="fr_FR.UTF-8"<br>
LC_MONETARY="fr_FR.UTF-8"<br>
LC_MESSAGES="fr_FR.UTF-8"<br>
LC_PAPER="fr_FR.UTF-8"<br>
LC_NAME="fr_FR.UTF-8"<br>
LC_ADDRESS="fr_FR.UTF-8"<br>
LC_TELEPHONE="fr_FR.UTF-8"<br>
LC_MEASUREMENT="fr_FR.UTF-8"<br>
LC_IDENTIFICATION="fr_FR.UTF-8"<br>
LC_ALL=<br>
<br>
Date display by cmd line date :<br>
mardi 19 juin 2012, 15:49:41 (UTC+0200)<br>
<br>
When I use, "rrdtool graph", date format aren't in fr_FR locale :<br>
week instead of sem<br>
mon instead of lun ....<br>
<br>
I'am using 1.4.3 version of rrdtool. (i already tried with 1.4.7
version, it doesn't work too)<br>
with debian squeeze.<br>
<br>
thx for your help<br>
<br>
Yannick.<br>
<br>
Le 22/09/2010 23:04, Ricardo Kleemann a écrit :<br>
</div>
<blockquote cite="mid:1285189495.4c9a6f7763c1d@webmail.mywww.net"
type="cite">Thanks!<br>
<br>
I actually had to edit /etc/locale.gen, uncomment pt_BR and then
run locale-gen.<br>
<br>
Now it works. :-)<br>
<br>
<br>
At Wednesday, 09-22-2010 on 13:22 "Tobias Oetiker" <a
class="moz-txt-link-rfc2396E" href="mailto:tobi@oetiker.ch"><tobi@oetiker.ch></a>
wrote:<br>
<blockquote style="border-width: 0pt 0pt 0pt 2px; border-style:
none none none solid; border-color: -moz-use-text-color
-moz-use-text-color -moz-use-text-color rgb(34, 67, 127);
padding: 0px 0px 0px 5px; margin: 0px 0px 0px 5px;">Ricardo,<br>
<br>
Today Ricardo Kleemann wrote:<br>
<br>
> I'm using a system() call.<br>
><br>
> I've done this in the script:<br>
><br>
> $ENV{'LANG'} = "pt_BR";<br>
> $ENV{'TZ'} = "America/Sao_Paulo";<br>
> setlocale(LC_ALL, "pt_BR");<br>
<br>
try<br>
<br>
locale-gen pt_BR<br>
<br>
first<br>
<br>
cheers<br>
tobi<br>
><br>
> And even put this in .htaccess:<br>
> setenv TZ America/Sao_Paulo<br>
> setenv LANG pt_BR<br>
> DefaultLanguage pt-BR<br>
><br>
> The TZ is working. But not the language. I'm trying to get
dates<br>
> displayed in Portuguese but no matter what I do they always
come out<br>
> in English.<br>
><br>
> Ricardo<br>
><br>
> At Wednesday, 09-22-2010 on 11:14 "A Darren Dunham" wrote:<br>
><br>
> On Tue, Sep 21, 2010 at 08:41:58PM -0700, Ricardo Kleemann
wrote:<br>
> > I was trying to display the graph with a different
locale. I don't<br>
> > want to change the local on the server itself, but
within a perl<br>
> > script be able to change such that the graph displays
the time and<br>
> > date text in another language (pt_BR).<br>
><br>
> How are you generating the graph? Are you doing external
calls with<br>
> system() directly, or are you using one of RRDp or RRDs?<br>
><br>
><br>
<br>
-- <br>
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten,
Switzerland<br>
<a class="moz-txt-link-freetext" href="http://it.oetiker.ch">http://it.oetiker.ch</a>
<a class="moz-txt-link-abbreviated"
href="mailto:tobi@oetiker.ch">tobi@oetiker.ch</a> ++41 62 775
9902 / sb: -9900</blockquote>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
rrd-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rrd-users@lists.oetiker.ch">rrd-users@lists.oetiker.ch</a>
<a class="moz-txt-link-freetext" href="https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users">https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users</a>
</pre>
</blockquote>
<br>
<br>
</body>
</html>