Bug 174579

Summary: spamd init script has no nls messages
Product: [Fedora] Fedora Reporter: Rudolf Kastl <che666>
Component: spamassassinAssignee: Warren Togami <wtogami>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: felicity, jm, parkerm, perl-devel, reg+redhat, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-05-09 15:50:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 171491    
Attachments:
Description Flags
newrpms-spamassassin-init-nls.patch none

Description Rudolf Kastl 2005-11-30 12:52:23 UTC
Created attachment 121633 [details]
newrpms-spamassassin-init-nls.patch

Comment 1 Rudolf Kastl 2005-11-30 12:52:23 UTC
Description of problem:
spamd init script has no nls messages. patch makes the init script suck a bit
less ;)

Version-Release number of selected component (if applicable):
3.0.3

How reproducible:
always

Steps to Reproduce:
1. start the service
2.
3.
  
Actual results:
get an english starting/stopping message

Expected results:
nls support

Additional info:
some credits would be sweet

Comment 2 Warren Togami 2005-12-01 04:54:56 UTC
I know nothing about this "nls" thing, could you please explain it and how it works?


Comment 3 Rudolf Kastl 2005-12-01 09:56:03 UTC
native language support of the init scripts. actually with my changes it shows
the start and stop messages translated as with most other core components that
have init scripts.

Comment 4 Rudolf Kastl 2005-12-01 10:09:56 UTC
the answer to how it works is here: /etc/init.d/functions



Comment 5 Rudolf Kastl 2005-12-01 10:21:32 UTC
ok to show you how it works exactly. i assume you have en_US set.

open a terminal and do:

. /etc/init.d/functions
export prog="foobar"
echo $"Starting $prog: "
after that you should see the english starting message on your terminal

now lets try it in german :) :
. /etc/init.d/functions
export prog="foobar"
export LC_MESSAGES=de_DE
echo $"Starting $prog: "

explanation enough?


Comment 6 Rudolf Kastl 2005-12-01 10:29:51 UTC
what annoys me is that i cant access the bug i block actually... id love to fix
it aswell then. ;)

Comment 7 Warren Togami 2005-12-01 16:41:47 UTC
Curious, why is your patch against the older version?

Comment 8 Rudolf Kastl 2005-12-01 17:55:03 UTC
cause of this bug:

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=173322

try:
yumdownloader --source spamassassin

only base repo works correctly.

Comment 9 Warren Togami 2005-12-01 23:53:41 UTC
Could you please also report this to spamassassin.apache.org so this can be
fixed in 3.1.x and trunk too?  I could do it, but then I'd steal your credit. =)


Comment 10 Warren Togami 2005-12-02 00:12:30 UTC
Fixed in FC5 and a package heading toward RHEL4.  I am considering pushing a
much newer spamassassin-3.1.x based update to FC3/FC4 later this month so
holding off on that for now.