[rrd-users] Re: How to set locales

Antonio Emperador antonio at efor.es
Mon Jul 26 09:52:05 MEST 2004


Hi

I modify the rrd_graph.c file in src folder and compile:

- To change the text Week in graph: Rows 58 and 59 (7*24*3600,"Week %V")
- To change the name of month and week days: add above row 2229 before
strftime the text:
    setlocale(LC_ALL,"code_country".

In my case, for spanish language:

57:    {1800,     TMT_HOUR,12,   TMT_DAY,1,     TMT_DAY,2,
24*3600,"%a"},
58:    {3600,     TMT_DAY,1,     TMT_WEEK,1,     TMT_WEEK,1,
7*24*3600,"Semana %V"},
59:    {3*3600,   TMT_WEEK,1,      TMT_MONTH,1,     TMT_WEEK,2,
7*24*3600,"Semana %V"},

... ...

2228: #if HAVE_STRFTIME
2229:        setlocale(LC_ALL,"es_ES");
2230:        strftime(graph_label,99,im->xlab_user.stst,localtime(&tilab));

Regards


Antonio
antonio at efor.es

----- Original Message ----- 
From: "Josef Ender" <modperl at gmx.net>
To: <rrd-users at list.ee.ethz.ch>
Sent: Friday, July 23, 2004 12:27 PM
Subject: [rrd-users] Re: How to set locales


Hello Zdenek

I have the same request. A client would like his graphs in German.
Unfortunately I could not find any solution.

regards, Josi

Zdenek Svarc wrote:

> I would like to have all graphs in my language (Czech). Do you know how to
> set locales (Monday, Thuesday, January, February) showed in graphs?

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi


--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list