Posts: 3
Threads: 1
Joined: Jun 2012
21-Jun-2012, 07:26 PM
Hi there! This is a great script. Thanks so much for developing it and making it open source.
My question: I've been poking around in different files, and I can't find where I would change the text that appears in the error box, specifically, I would like to change, "Sorry but 1 error was found when processing your comment."
Can you advise? Thanks so much!
-Sara
Posts: 2,895
Threads: 59
Joined: Jun 2010
Hi Sara,
You're welcome. The best way to find out where to edit the wording is to use the Text Finder tool in the admin panel (Tools -> Text Finder).
Try a search for "processing your comment" without the quotes. You should get 2 results.
The first result is for when there is a single error (like the one you posted) and the second result is for when there are multiple errors.
Have
you completed
the interview?
Posts: 3
Threads: 1
Joined: Jun 2012
Thanks, Steven! So it looks like I'll need to upgrade to the newest version (v2.0)? I'm a little behind at 1.8, and not seeing that menu option.
-Sara
Posts: 2,895
Threads: 59
Joined: Jun 2010
Sorry I assumed because you were new to the forum that you were using the latest version.
In that case, I'll just tell you how.
In /comments/includes/language/english/processor.php, it's these four lines:
PHP Code:
<?php
define ('CMTX_ERROR_NUMBER_PART_1', 'Sorry but ');
define ('CMTX_ERRORS_NUMBER_PART_1', 'Sorry but ');
define ('CMTX_ERROR_NUMBER_PART_2', ' error was found when processing your comment.');
define ('CMTX_ERRORS_NUMBER_PART_2', ' errors were found when processing your comment.');
The 1st and 3rd lines are used for a single error, and the 2nd and 4th lines are for multiple errors.
Have
you completed
the interview?