Bug 174579 - spamd init script has no nls messages
Summary: spamd init script has no nls messages
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: spamassassin
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Warren Togami
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 171491
TreeView+ depends on / blocked
 
Reported: 2005-11-30 12:52 UTC by Rudolf Kastl
Modified: 2007-11-30 22:11 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-05-09 15:50:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
newrpms-spamassassin-init-nls.patch (1.59 KB, patch)
2005-11-30 12:52 UTC, Rudolf Kastl
no flags Details | Diff

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.



Note You need to log in before you can comment on or make changes to this bug.