[rrd-users] Default Language

Felipe Piccirilo piccirilo at gruponet.com.br
Wed Feb 16 20:46:39 MET 2005


	Why that when I use other language then english configured in LC_ALL/LC_TIME and generated a monthly graph the weeks are printed in english and not in my current language configured?

	I was looking at the rrd_graph.c code, and I saw that in lines 58 and 59 (rrdtool-1.0.49) are:

{3600, TMT_DAY,1, TMT_WEEK,1, TMT_WEEK,1, 7*24*3600,"Week %V"},
{3*3600, TMT_WEEK,1, TMT_MONTH,1,TMT_WEEK,2,7*24*3600,"Week %V"},

I shouldn't have to be like:

{3600, TMT_DAY,1, TMT_WEEK,1, TMT_WEEK,1, 7*24*3600,_("Week %V")},
{3*3600, TMT_WEEK,1, TMT_MONTH,1,TMT_WEEK,2,7*24*3600,_("Week %V")},

or something like that to the gettext() function could translate the Week to my current language?

any ideas????

best regards,

Felipe Piccirilo  
piccirilo at gruponet.com.br
System Analyst
GrupoNet Tecnologia Ltda

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