Article View: news.software.readers
Article #174387Re: [Dialog] Automatic choice of language in a script
From: Bertel Lund Hansen
Date: Tue, 27 Sep 2005 10:41
Date: Tue, 27 Sep 2005 10:41
39 lines
2441 bytes
2441 bytes
Korbinian Abenthum skrev:
> http://www.40tude.com/DIALOG/wiki/index.php/ScriptFup2Warning_include
Just to be on the safe side I also correct the link:
http://www.40tude.com/dialog/wiki/index.php/ScriptFup2Warning_include
> It's not thoroughly tested ATM, and it's not quite easy to configure. If you
> notice anything or got problems, please let me know.
Thanks a lot. I have run a few tests, and it works like I wanted.
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:
var
newsgroupPatterns : TStringList;
Ftext, Xtext : String;
[...]
// Language Version 2: Deutsch
Ftext := 'Follow-Up nach: $F'+CFW_NEWLINE+'Antworten werden dazu gesendet, wenn man es nicht รคndert.'+CFW_NEWLINE;
Xtext := 'Crossposted nach: $N'+CFW_NEWLINE;
newsgroupPatterns := TStringList.Create;
newsgroupPatterns.Add( 'de.' ); //Group Pattern 1
CFW_AddLanguage (newsgroupPatterns, true, Ftext, Xtext, Xtext+Ftext);
This way one only has to edit the output in one place. I also made
sure that all messages end with an empty line. I haven't checked
if that will conflict with other settings.
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?
--
Bertel
http://bertel.lundhansen.dk/ http://fiduso.dk/
Technical Details
Message-ID:
<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!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed101.telia.com!nf02.dk.telia.net!news104.dk.telia.net!not-for-mailReferences:
<1j9uz2hbgx43u.hsbeolg8va1c.dlg@40tude.net> <270905.033656.nsr.52@news.abenthum.de>Show Full Headers
Complete Article Headers
Message-ID: <1fkthkkvreqc5.15m9sdrz6jqxh.dlg@40tude.net> Subject: Re: [Dialog] Automatic choice of language in a script Date: Tue, 27 Sep 2005 12:41:23 +0200 From: Bertel Lund Hansen <nospamfilius@lundhansen.dk> References: <1j9uz2hbgx43u.hsbeolg8va1c.dlg@40tude.net> <270905.033656.nsr.52@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!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed101.telia.com!nf02.dk.telia.net!news104.dk.telia.net!not-for-mail Newsgroups: news.software.readers User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Lines: 39 NNTP-Posting-Host: 212.10.89.83 X-Trace: news.stofanet.dk 1127817276 8100 212.10.89.83:32784 X-Complaints-To: Telia Stofa Abuse <abuse@stofa.dk>