Ignore:
Timestamp:
Jul 7, 2010, 7:53:58 AM (14 years ago)
Author:
ddtddt
Message:

[extension] - rv_akismet - add localisation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_akismet/main.inc.php

    r6506 r6672  
    77Author URI: http://www.modusoptimus.com
    88*/
     9
     10define('AKIS_DIR' , basename(dirname(__FILE__)));
     11define('AKIS_PATH' , PHPWG_PLUGINS_PATH . AKIS_DIR . '/');
    912
    1013add_event_handler('user_comment_check', 'akismet_user_comment_check_wrapper', EVENT_HANDLER_PRIORITY_NEUTRAL+10, 2);
     
    1720        if ( empty($conf['akismet_api_key']) and in_array($page['page'], array('intro','plugins_list')) )
    1821        {
    19                 $page['errors'][] = 'You need to define the Akismet api key';
     22                load_language('plugin.lang', AKIS_PATH);
     23                $page['errors'][] = l10n('You need to define the Akismet api key');
    2024        }
    2125        $admin_url = get_admin_plugin_menu_link(dirname(__FILE__).'/admin.php');
Note: See TracChangeset for help on using the changeset viewer.