*Are all the language strings stored in functions_link_filter.php? I'd like to edit some of these but it could be tiresome if they need ed-edited every time this file is updated.
For the user yes, but the ACP strings are in the ACP file. I think the correct way to customize the strings is to add them to your own language file.
Mods often add a file to /language/en/mods/ containing custom language strings ( 'en' being for english in this case - other language folders would be used for other translations, etc...).
I took the liberty of starting one last night. I think it holds all the language strings used by the current filter.
Code: Select all
* spam_hammer [English]
* @package language
* @author John T. Folden http://thebluewhalepub.com
* @version $Id: spam_hammer.php v1.0 2011/02/23 03:13 John T. Folden $
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* DO NOT CHANGE
if (empty($lang) || !is_array($lang))
$lang = array();
// DEVELOPERS PLEASE NOTE
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine
$lang = array_merge($lang, array(
'NO_PROFILE_FOR_YOU' => 'Antispam: You can\'t have a profile yet. You need to post a few times first.',
'NO_LINK_FOR_YOU' => 'Antispam: You can\'t have off-site URLs in your sig until you post a few times. ',
'NO_WORD_FOR_YOU' => 'Antispam: Suspicious or offensive word detected. We don\'t want to read that! ',
'NO_LINK_TOO_SHORT' => 'Antispam: Sorry, your first post needs to be just a little longer.',
'HELP_LINK' => 'Click for help',
'NO_SLEEPER_SPAM_FOR_YOU' => 'Antispam: account disabled, please contact an admin.',
This should be called from functions_link_filter.php via the command
But I'm not clear on where best to add it to the code.