[rrd-users] Re: Hack for graphics localization and correction of weeks numbers

Tobias Oetiker oetiker at ee.ethz.ch
Tue Apr 9 07:28:31 MEST 2002


Today Thierry Nkaoua wrote:

>
> Javier Chirino a dit:
> > hi
> > I want to change the language the my graphics to spanish
> > I made the changes in the /src/rrd_graph.c,
> > in the graphics the words week change by "semana",  but the language
> > for this day and mounth still in english.
> >
> > I need change something else ?
>
> Hi
>
> I posted a complement to my first post... have a look in your mailbox or in
> the archive
> replace
> setlocale(LC_ALL,"");
> by
> setlocale(LC_ALL,"es_ES");
> for Spanish

Folks,

get a grip ... the trick is so set the LC_ALL environemnt variable
and then call

setlocale(LC_ALL,""); as this will set things up ..

tobi
>
> it is for linux systems that support localization
>
> regards
>

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker, ETZ J97, ETH, 8092 Zurich, Switzerland
 / // _ \/ _ \/ / phoneto:+41(0)1-632-5286  faxto:+41(0)1-632-1517
/_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://google.com/search?q=tobi


--
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