Xymon Mailing List Archive search

localize hobbit

3 messages in this thread

list Jon Bjorn Njalsson · Wed, 13 Apr 2005 18:57:59 +0000 ·
I know this post has very little to do with hobbit's functionality but
mabe you can help me. I´m trying to translate a few words in hobbit that
are displayed under trends. So far I have been able to change everything
but week (week 09, week10 ..etc. Does anyone know how to change this
text into uge (danish) or vika (icelandic) ?

rgds
-- 
Jon Bjorn Njalsson <user-5c8e7718045c@xymon.invalid>
list Henrik Størner · Wed, 13 Apr 2005 21:14:37 +0200 ·
quoted from Jon Bjorn Njalsson
On Wed, Apr 13, 2005 at 06:57:59PM +0000, Jon Bjorn Njalsson wrote:
I know this post has very little to do with hobbit's functionality but
mabe you can help me. I?m trying to translate a few words in hobbit that
are displayed under trends. So far I have been able to change everything
but week (week 09, week10 ..etc. Does anyone know how to change this
text into uge (danish) or vika (icelandic) ?
I think you'll need to look into the RRDtool library to change that.

<checking> Yes, the rrdtool-1.0.49/src/rrd_graph.c has a table near
the top where this text is defined.
<snip>
    {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"},
<snap>

It may be possible to change this by defining an "x-axis" parameter
for the rrdgraph() function (you could do this in hobbitgraph.c), but
the man-page describes this as being "complex". So I haven't tried
doing it.


Henrik
list Jon Bjorn Njalsson · Thu, 14 Apr 2005 09:41:14 +0000 ·
That was the first thing I changed. I just forgot to recompile hobbit
afterwards. It´s working now. thanks.

JB
quoted from Henrik Størner

On mið, 2005-04-13 at 21:14 +0200, Henrik Stoerner wrote:
On Wed, Apr 13, 2005 at 06:57:59PM +0000, Jon Bjorn Njalsson wrote:
I know this post has very little to do with hobbit's functionality but
mabe you can help me. I?m trying to translate a few words in hobbit that
are displayed under trends. So far I have been able to change everything
but week (week 09, week10 ..etc. Does anyone know how to change this
text into uge (danish) or vika (icelandic) ?
I think you'll need to look into the RRDtool library to change that.

<checking> Yes, the rrdtool-1.0.49/src/rrd_graph.c has a table near
the top where this text is defined.
<snip>
    {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"},
<snap>

It may be possible to change this by defining an "x-axis" parameter
for the rrdgraph() function (you could do this in hobbitgraph.c), but
the man-page describes this as being "complex". So I haven't tried
doing it.


Henrik

-- 

Jon Bjorn Njalsson <user-5c8e7718045c@xymon.invalid>