🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #174391

Re: [Dialog] Automatic choice of language in a script

#174391
From: Korbinian Abenthum
Date: Tue, 27 Sep 2005 12:39
35 lines
2704 bytes
Bertel Lund Hansen wrote:

> http://www.40tude.com/dialog/wiki/index.php/ScriptFup2Warning_include

> I made a few changes. Here is an example. In the beginning I
> declare two variables so I can use them to hold two texts:

[...]

Of course. I figured it'd be best to keep it as flexible as possible.

>     newsgroupPatterns.Add( 'de.' );

You realize that this pattern matches non German speaking groups, too?
Like alt.suicide.holiday

> I also made sure that all messages end with an empty line. I haven't
> checked if that will conflict with other settings.

It shouldn't.

> I made an unimportant change by copying the include-file directly into
> the program file. I don't quite understand why you split it up?

Because it's easier if you have more than one OnBeforeSending script, like a
Boxquote, Footnote, Now-Playing and Generate-MID script. It's not exactly
easy for non-programmers to merge these scripts into one, and users couldn't
remove a script without help.
If you keep all scripts in separate include file, you only have insert two
lines into your OnBeforeSending script. That way, people can usually merge
any number of scripts on their own.

-- 
"You send hired knives to kill a fourteenyear-old girl and still
 quibble about honor?"                            (Eddard Stark)
Technical Details
Message-ID: <270905.143909.nsr.54@news.abenthum.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news4.google.com!news.glorb.com!dotsrc.org!news.dotsrc.org!not-for-mail
References: <1j9uz2hbgx43u.hsbeolg8va1c.dlg@40tude.net> <270905.033656.nsr.52@news.abenthum.de> <1fkthkkvreqc5.15m9sdrz6jqxh.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Message-ID: <270905.143909.nsr.54@news.abenthum.de>
Subject: Re: [Dialog] Automatic choice of language in a script
Date: Tue, 27 Sep 2005 14:39:09 +0200
From: Korbinian Abenthum <korbinian@gmx.de>
References: <1j9uz2hbgx43u.hsbeolg8va1c.dlg@40tude.net> <270905.033656.nsr.52@news.abenthum.de> <1fkthkkvreqc5.15m9sdrz6jqxh.dlg@40tude.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news4.google.com!news.glorb.com!dotsrc.org!news.dotsrc.org!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.15.35 Hamster/2.0.7.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Face: &[gF$*:|'M7pwKut]{LOz!&65BT96:Wn\M"V6Qa#q%~9^z8XhJfmh?.)VB{,
 p]Z`6q@e()!g1ghrG7.atG.DXfzulkKE%u~|D7?e6^-yN4GvZJuvz%$LZBA6`dJTo,
 MYUO%I*0us[.v/AT,
Lines: 35
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 217.250.2.50
X-Trace: news.sunsite.dk DXC=DYOiKn2dJk=\:k25BLkF8; YSB=nbEKnk; QPh<:FOcTl:=8;
 LP`]<H561iAjoL\i^9?k[QR184; _b83h7Uh4J\M[4a7CJTUOjdn4SX; 2oQBXA@:
X-Complaints-To: staff@sunsite.dk