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: 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: Andrey Ananin (waster2008)
Date: 2010-02-04 23:05

Message:
I'll prepare patches. And It seems that current parsing method of headers
of mbox messages is quite wrong because it just read line by line mbox
message and split it on ":" char to key->value. I think it is not good
because From or Subject header, for example, can occupy more than one line
and actually these are more frequent cases in messages.

But can you confirm that tar.gz on

http://sourceforge.net/projects/dspam/files/dspam/dspam-3.9.0/dspam-3.9.0.tar.gz/download

is actual stable 3.9.0 release on 12.01.2010?

As I mentioned I can't find "Adding TTF font support" feature in this
sources. 

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

Comment By: Andrey Ananin (waster2008)
Date: 2010-02-04 17:45

Message:
Привет...8)

Thanks for noting this, it is very useful. But it seems there is an old
configure.pl.in file in current stable DSPAM 3.9.0 tar.gz at Sourceforge
(https://sourceforge.net/projects/dspam/files/dspam/dspam-3.9.0/dspam-3.9.0.tar.gz/download).
But I see that "Adding TTF font support" was added on 2 Jan 2010 befor
release date. Why then downloaded tar.gz still does not have it?

As for webui translation it is full translation and thne should work out
of the box...8)

Also I suggest to add feature to encode MIME headers in history and
quarantine pages. I've already did it for Russian adaptation witn
MIME:Parser and Lingua::DetectCharset perl modules and webui hacks.

Thanks.

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

Comment By: Stevan Bajic (sbajic)
Date: 2010-02-04 17: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 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