[Moin-devel] CVS: MoinMoin/stats hitcounts.py,1.4,1.5 pagesize.py,1.2,1.3
J?rgen Hermann
jhermann at users.sourceforge.net
Sat Feb 2 04:19:04 EST 2002
Update of /cvsroot/moin/MoinMoin/stats
In directory usw-pr-cvs1:/tmp/cvs-serv25055/stats
Modified Files:
hitcounts.py pagesize.py
Log Message:
I18N of charts
Index: hitcounts.py
===================================================================
RCS file: /cvsroot/moin/MoinMoin/stats/hitcounts.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** hitcounts.py 2002/02/02 05:58:54 1.4
--- hitcounts.py 2002/02/02 12:18:48 1.5
***************
*** 92,104 ****
c.addData(ChartData(views, color='green'))
c.addData(ChartData(edits, color='red'))
! title = ''
! if config.sitename: title = "%s: " % config.sitename
! title = title + 'Page hits and edits'
! if filterpage: title = "%s for %s" % (title, filterpage)
c.option(
! annotation = (len(days)-1, Color('black'), "green=view\nred=edit"),
! title = title,
! xtitle = 'date',
! ytitle = '# of hits',
title_font = c.GDC_GIANT,
#thumblabel = 'THUMB', thumbnail = 1, thumbval = 10,
--- 92,104 ----
c.addData(ChartData(views, color='green'))
c.addData(ChartData(edits, color='red'))
! chart_title = ''
! if config.sitename: chart_title = "%s: " % config.sitename
! chart_title = chart_title + _('Page hits and edits')
! if filterpage: chart_title = _("%(chart_title)s for %(filterpage)s") % locals()
c.option(
! annotation = (len(days)-1, Color('black'), _("green=view\nred=edit")),
! title = chart_title,
! xtitle = _('date'),
! ytitle = _('# of hits'),
title_font = c.GDC_GIANT,
#thumblabel = 'THUMB', thumbnail = 1, thumbval = 10,
Index: pagesize.py
===================================================================
RCS file: /cvsroot/moin/MoinMoin/stats/pagesize.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** pagesize.py 2002/02/02 05:32:15 1.2
--- pagesize.py 2002/02/02 12:18:48 1.3
***************
*** 91,100 ****
title = ''
if config.sitename: title = "%s: " % config.sitename
! title = title + 'Page Size Distribution'
c.option(
annotation = (bisect.bisect(bounds, upper_bound), Color('black'), "%d %s" % sizes[-1]),
title = title,
! xtitle = 'page size upper bound [bytes]',
! ytitle = '# of pages of this size',
title_font = c.GDC_GIANT,
threed_depth = 2.0,
--- 91,100 ----
title = ''
if config.sitename: title = "%s: " % config.sitename
! title = title + _('Page Size Distribution')
c.option(
annotation = (bisect.bisect(bounds, upper_bound), Color('black'), "%d %s" % sizes[-1]),
title = title,
! xtitle = _('page size upper bound [bytes]'),
! ytitle = _('# of pages of this size'),
title_font = c.GDC_GIANT,
threed_depth = 2.0,
More information about the Moin-devel
mailing list