Changeset 6672


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

[extension] - rv_akismet - add localisation

Location:
extensions/rv_akismet
Files:
14 added
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_akismet/admin.php

    r6506 r6672  
    11<?php
    22if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
     3
     4load_language('plugin.lang', AKIS_PATH);
    35
    46function test_akismet()
  • extensions/rv_akismet/admin.tpl

    r6506 r6672  
    11
    2 <p>This plugin verifies if your comments are spam using the <a href="http://www.akismet.com" target="_blank">akismet online service</a>.</p>
     2<p>{'This plugin verifies if your comments are spam using the <a href="http://www.akismet.com" target="_blank">akismet online service'|@translate}</a>.</p>
    33
    4 <p>Akismet has caught <b>{$AKISMET_SPAM_COMMENTS} spam comments</b> out of {$AKISMET_CHECKED_COMMENTS} comments (<a href="{$AKISMET_RESET_STATS_URL}">reset counters</a>).
     4<p>{'Akismet has caught'|@translate} <b>{$AKISMET_SPAM_COMMENTS} {'spam comments'|@translate}</b> {'out of'|@translate} {$AKISMET_CHECKED_COMMENTS} {'comments'|@translate} (<a href="{$AKISMET_RESET_STATS_URL}">{'reset counters'|@translate}</a>).
    55{if ! empty($AKISMET_API_KEY)}
    6 More statistics on <a href="http://{$AKISMET_API_KEY}.web.akismet.com/1.0/user-stats.php?blog={$AKISMET_BLOG_URL|@escape:url}" target="_new">akismet site</a>.
     6{'More statistics on'|@translate} <a href="http://{$AKISMET_API_KEY}.web.akismet.com/1.0/user-stats.php?blog={$AKISMET_BLOG_URL|@escape:url}" target="_new">{'akismet site'|@translate}</a>.
    77{/if}
    88</p>
    99<form method="post" class="properties">
    1010<fieldset>
    11   <legend>Akismet configuration</legend>
     11  <legend>{'Akismet configuration'|@translate}</legend>
    1212  <ul>
    1313 
    1414  <li>
    1515  <label>
    16     Akismet API Key:
     16    {'Akismet API Key:'|@translate}
    1717    <input type="text" size="48" name="akismet_api_key" value="{$AKISMET_API_KEY}" />
    1818  </label>
    19     <br/>Signup for a personal usage key here: <a href="http://akismet.com/personal/" target="_blank">http://akismet.com/personal/</a>.
     19    <br/>{'Signup for a personal usage key here:'|@translate} <a href="http://akismet.com/personal/" target="_blank">http://akismet.com/personal/</a>.
    2020  </li>
    2121 
     
    2424  <li>
    2525  <label>
    26     Action when spam is detected:
     26    {'Action when spam is detected:'|@translate}
    2727    <select name="akismet_spam_action">
    2828        {html_options values='moderate,reject'|@explode output='moderate,reject'|@explode selected=$AKISMET_SPAM_ACTION }
     
    3636</fieldset>
    3737</form>
    38 <p><a href="{$AKISMET_TEST_URL}">Test your configuration</a>.</p>
     38<p><a href="{$AKISMET_TEST_URL}">{'Test your configuration'|@translate}</a>.</p>
  • 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.