Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN Bug Reports - Other Issues
Author Message
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Tue Apr 03, 2007 11:13 am Reply with quote

I've never used the comment moderation and I don't even know exactly how it is supposed to work Smile , but I noticed that in the English language files Insightful is spelled "Insighful".

_________________
Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module 
View user's profile Send private message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Tue Apr 03, 2007 11:48 am Reply with quote

Thank you very much! It would be nice if there was a tool that stripped out the extra stuff from a language file to make it easier to check spelling.

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
Gremmie







PostPosted: Tue Apr 03, 2007 12:56 pm Reply with quote

Well, okay... Wink

Here is a Perl script that does this:

Code:


#!/usr/bin/perl

foreach my $file (@ARGV)
{
   open(IN, "<$file") or die "Could not open $file";
   while (<IN>)
   {
      if (m/^\s*define\s*\((['"])\w+\1\s*,\s*(['"])(.*)\2\s*\)\s*;/)
      {
         print "$3\n";
      }
   }
   close IN;
}


Save it to a file, like say phpdefine.pl. The usage is then:

phpdefine.pl lang-english.php > output.txt

Then you can run a spell check on output.txt.

It doesn't do multi line constants yet. Let me work on that. Wink
 
Susann
Moderator



Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Tue Apr 03, 2007 1:58 pm Reply with quote

Gremmie wrote:
I've never used the comment moderation and I don't even know exactly how it is supposed to work Smile , but I noticed that in the English language files Insightful is spelled "Insighful".


Its just cruft from Mr. Burzi he filled several files with this code inclusive the config.php and he forgot to add the folder and the moderate.gif in some nuke versions.
Check your config.php and you´ll find the stuff for a moderation at the highest stage:

$reasons = array("As Is",
"Offtopic",
"Troll",
"Redundant",
"Insighful",
etc. etc.

Happy moderation !
 
View user's profile Send private message
Gremmie







PostPosted: Tue Apr 03, 2007 3:01 pm Reply with quote

Thanks. Now that you mention it, I do recall seeing those strings in config.php.
 
kguske







PostPosted: Wed Apr 04, 2007 7:35 am Reply with quote

I scanned all the lang-english.php files and couldn't find it, but did update SVN on the config.php correction.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> RN Bug Reports - Other Issues

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©