[rrd-users] Re: Hack for graphics localization and correction of weeks numbers
Thierry Nkaoua
tnka at linux-sottises.net
Sun Apr 7 15:52:53 MEST 2002
Thierry Nkaoua a dit:
> -----------------------------
> add:
>
> setlocale(LC_ALL,"");
>
> just before the strftime call:
>
> strftime(graph_label,99,im->xlab_user.stst,localtime(&tilab));
> --------------------------------
Complement
if you run your rrdtool scripts from a cronjob, the LANG variable may not
be set
you can just replace the previous setlocale by:
setlocale(LC_ALL," fr_FR");
for french, or with your language code. Have a look at:
http://lcweb.loc.gov/standards/iso639-2/langcodes.html
if you do not know your language code :))
regards
--
TNK
www.linux-sottises.net
S'il n'y a pas de solution, c'est qu'il n'y a pas de problème!
--
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