Bug Tracker item #2945937, was opened at 2010-02-04 14:22
Message generated for change (Comment added) made by sbajic
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: Stevan Bajic (sbajic)
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: Stevan Bajic (sbajic)
Date: 2010-02-04 15:08
Message:
Халло Андреy :)
If you use DSPAM 3.9.0 then the above hack is not needed. We already
implemented into DSPAM 3.9.0 the possibility to load custom fonts. Look at
configure.pl line 55:
http://dspam.git.sourceforge.net/git/gitweb.cgi?p=dspam/dspam;a=blob;f=webui/cgi-bin/configure.pl.in;hb=HEAD#l51
No need to patch anything. Just download DSPAM 3.9.0 and you are ready to
go.
Let me know if that is enough for you or if you need more changes in order
to get Russian labels in DSPAM WebUI?
--
Kind Regards from Switzerland,
Stevan Bajić
----------------------------------------------------------------------
Comment By: Andrey Ananin (waster2008)
Date: 2010-02-04 14: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
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-devel