Bug Tracker item #2945937, was opened at 2010-02-04 16:22
Message generated for change (Comment added) made by waster2008
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2945937&group_id=250683

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: webui
Group: v3.9.0
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Andrey Ananin (waster2008)
Assigned to: Nobody/Anonymous (nobody)
Summary: Russian webui translation

Initial Comment:
Hello, just finished Russian translation of DSPAM webui and attach it here. We 
use it in our production environment for our clients.

Installation notes:

As perl gd use default font for load text in graphs I had to change 
admingraph.cgi and graph.cgi to display fonts correctly also:

1. Change line 96 in admingraph.cgi 

$mygraph->set_legend_font(GD::gdMediumBoldFont);

to

$mygraph->set_x_label_font('/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf',
 8);
$mygraph->set_y_label_font('/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf',
 8);
$mygraph->set_legend_font('/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf',
 10);

2. Change line 77 in admingraph.cgi 

$mygraph->set_legend_font(GD::gdMediumBoldFont);

to

$mygraph->set_x_label_font('/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf',
 8);
$mygraph->set_y_label_font('/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf',
 8);
$mygraph->set_legend_font('/usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf',
 10);

3, Make sure that /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf exist 
or in Debian you can install necessary font package via 'apt-get install 
ttf-dejavu'

Thanks.

----------------------------------------------------------------------

>Comment By: Andrey Ananin (waster2008)
Date: 2010-02-04 16:31

Message:
Sorry, change line 77 in graph.cgi 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1126467&aid=2945937&group_id=250683

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Dspam-devel mailing list
Dspam-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-devel

Reply via email to