Plugin Directory

Changeset 2461659


Ignore:
Timestamp:
01/24/2021 07:21:53 AM (5 years ago)
Author:
brahmnan
Message:

version 1.0.1

Location:
clear-comments
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • clear-comments/tags/1.0.1/clear-comments.php

    r2461369 r2461659  
    66  Author: Brahman  <fb@emelianovip.ru>
    77  Author URI: https://emelianovip.ru
    8   Version: 1.0.0
     8  Version: 1.0.1
    99  License: GPLv2
    1010 */
     
    2727    add_action( 'init', array( 'EPV_ClearComments_Admin', 'init' ) );
    2828        add_action( 'admin_enqueue_scripts', 'clear_comments_admin_styles' );
    29         load_plugin_textdomain( "clear-comments", false, basename( dirname( __FILE__ ) ) . '/languages' );
     29        add_action( 'plugins_loaded', 'clear_comments_load_plugin_textdomain' );       
     30}
     31
     32function clear_comments_load_plugin_textdomain() {
     33    load_plugin_textdomain( 'clear-comments', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' );
    3034}
    3135
  • clear-comments/tags/1.0.1/includes/options.php

    r2461369 r2461659  
    3939        </div>     
    4040        <div class="form-field">
    41             <label for="clear_comm_keywords_white"><?php print _("Еnter exclusion keywords, one word per line", "clear-comments") ?></label>
     41            <label for="clear_comm_keywords_white"><?php print __("Еnter exclusion keywords, one word per line", "clear-comments") ?></label>
    4242        </div>
    4343        <br />
  • clear-comments/tags/1.0.1/languages/clear-comments-ru_RU.po

    r2461369 r2461659  
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: 2021-01-20 07:07+0000\n"
    6 "PO-Revision-Date: 2021-01-21 07:09+0000\n"
     6"PO-Revision-Date: 2021-01-24 07:09+0000\n"
    77"Last-Translator: \n"
    88"Language-Team: Русский\n"
     
    1717"X-Domain: clear-comments"
    1818
    19 #: includes/options.php:9
     19#: includes/options.php:27
    2020msgid "Black list"
    2121msgstr "Чёрный список"
     
    2626
    2727#. Name of the plugin
    28 #: class.clear-comments-admin.php:19 includes/main.php:3 includes/main.php:15
    29 #: includes/main.php:18
     28#: class.clear-comments-admin.php:25 includes/options.php:2
     29#: includes/overview.php:2 includes/test.php:2
    3030msgid "Clear comments"
    3131msgstr "Чистые комментарии"
    3232
    33 #: includes/test.php:7
     33#: includes/test.php:5
    3434msgid "Comment text"
    3535msgstr "Текст комментария"
    3636
    37 #: includes/test.php:28
     37#: includes/test.php:43
    3838msgid "Found keywords"
    3939msgstr "Найденные слова"
    4040
    41 #. URI of the plugin
    4241#. Author URI of the plugin
    4342msgid "https://emelianovip.ru"
    4443msgstr "https://emelianovip.ru"
    4544
    46 #: includes/test.php:32
     45#. URI of the plugin
     46msgid "https://emelianovip.ru/2021/01/21/318/"
     47msgstr "https://emelianovip.ru/2021/01/21/318/"
     48
     49#: includes/test.php:47
    4750msgid "Keywords list"
    4851msgstr "Список ключевых слов"
    4952
    50 #: includes/overview.php:15
     53#: includes/overview.php:19
    5154msgid "Last comments"
    5255msgstr "Последние комментарии"
    5356
    54 #: includes/overview.php:4
     57#: includes/overview.php:8
    5558msgid "No cleared comments"
    5659msgstr "Нет очищенных комментариев"
    5760
    58 #: includes/main.php:15 includes/main.php:29
     61#: class.clear-comments-admin.php:76 includes/options.php:2
    5962msgid "Options"
    6063msgstr "Настройки"
    6164
    62 #: includes/main.php:3 includes/main.php:28
     65#: class.clear-comments-admin.php:75 includes/overview.php:2
    6366msgid "Overview"
    6467msgstr "Обзор"
    6568
    66 #: includes/test.php:30
     69#: includes/test.php:45
    6770msgid "Result text"
    6871msgstr "Результат"
    6972
    70 #: includes/options.php:29
     73#: includes/options.php:46
    7174msgid "Save"
    7275msgstr "Сохранить"
    7376
    74 #: includes/test.php:16
     77#: includes/test.php:31
    7578msgid "Submit"
    7679msgstr "Отправить"
    7780
    78 #: class.clear-comments-admin.php:27 class.clear-comments-admin.php:33
     81#: class.clear-comments-admin.php:33 class.clear-comments-admin.php:39
    7982msgid "Success"
    8083msgstr "Успешно"
    8184
    82 #: includes/main.php:18 includes/main.php:30
     85#: class.clear-comments-admin.php:77 includes/test.php:2
    8386msgid "Test"
    8487msgstr "Тест"
     
    8891msgstr "Этот плагин заменяет слова из стоп-листа звёздочками ***"
    8992
    90 #: includes/options.php:20
     93#: includes/options.php:36
    9194msgid "White list"
    9295msgstr "Белый список"
    9396
    94 #: includes/test.php:12
     97#: includes/test.php:25
    9598msgid "Write a test comment"
    9699msgstr "Напишите тестовый комментарий"
    97100
    98 #: includes/options.php:25
     101#: includes/options.php:41
    99102msgid "Еnter exclusion keywords, one word per line"
    100103msgstr "Введите ключевые слова-исключения, по одному слову в строке"
    101104
    102 #: includes/options.php:15
     105#: includes/options.php:33
    103106msgid "Еnter keywords, one word per line"
    104107msgstr "Введите ключевые слова, по одному слову в строке"
  • clear-comments/tags/1.0.1/languages/clear-comments.pot

    r2461369 r2461659  
    44"Project-Id-Version: Clear comments\n"
    55"Report-Msgid-Bugs-To: \n"
    6 "POT-Creation-Date: 2021-01-21 07:08+0000\n"
     6"POT-Creation-Date: 2021-01-24 07:07+0000\n"
    77"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    88"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1717"X-Domain: clear-comments"
    1818
    19 #: includes/options.php:9
     19#: includes/options.php:27
    2020msgid "Black list"
    2121msgstr ""
     
    2626
    2727#. Name of the plugin
    28 #: class.clear-comments-admin.php:19 includes/main.php:3 includes/main.php:15
    29 #: includes/main.php:18
     28#: class.clear-comments-admin.php:25 includes/options.php:2
     29#: includes/overview.php:2 includes/test.php:2
    3030msgid "Clear comments"
    3131msgstr ""
    3232
    33 #: includes/test.php:7
     33#: includes/test.php:5
    3434msgid "Comment text"
    3535msgstr ""
    3636
    37 #: includes/test.php:28
     37#: includes/test.php:43
    3838msgid "Found keywords"
    3939msgstr ""
    4040
    41 #. URI of the plugin
    4241#. Author URI of the plugin
    4342msgid "https://emelianovip.ru"
    4443msgstr ""
    4544
    46 #: includes/test.php:32
     45#. URI of the plugin
     46msgid "https://emelianovip.ru/2021/01/21/318/"
     47msgstr ""
     48
     49#: includes/test.php:47
    4750msgid "Keywords list"
    4851msgstr ""
    4952
    50 #: includes/overview.php:15
     53#: includes/overview.php:19
    5154msgid "Last comments"
    5255msgstr ""
    5356
    54 #: includes/overview.php:4
     57#: includes/overview.php:8
    5558msgid "No cleared comments"
    5659msgstr ""
    5760
    58 #: includes/main.php:15 includes/main.php:29
     61#: class.clear-comments-admin.php:76 includes/options.php:2
    5962msgid "Options"
    6063msgstr ""
    6164
    62 #: includes/main.php:3 includes/main.php:28
     65#: class.clear-comments-admin.php:75 includes/overview.php:2
    6366msgid "Overview"
    6467msgstr ""
    6568
    66 #: includes/test.php:30
     69#: includes/test.php:45
    6770msgid "Result text"
    6871msgstr ""
    6972
    70 #: includes/options.php:29
     73#: includes/options.php:46
    7174msgid "Save"
    7275msgstr ""
    7376
    74 #: includes/test.php:16
     77#: includes/test.php:31
    7578msgid "Submit"
    7679msgstr ""
    7780
    78 #: class.clear-comments-admin.php:27 class.clear-comments-admin.php:33
     81#: class.clear-comments-admin.php:33 class.clear-comments-admin.php:39
    7982msgid "Success"
    8083msgstr ""
    8184
    82 #: includes/main.php:18 includes/main.php:30
     85#: class.clear-comments-admin.php:77 includes/test.php:2
    8386msgid "Test"
    8487msgstr ""
     
    8891msgstr ""
    8992
    90 #: includes/options.php:20
     93#: includes/options.php:36
    9194msgid "White list"
    9295msgstr ""
    9396
    94 #: includes/test.php:12
     97#: includes/test.php:25
    9598msgid "Write a test comment"
    9699msgstr ""
    97100
    98 #: includes/options.php:25
     101#: includes/options.php:41
    99102msgid "Еnter exclusion keywords, one word per line"
    100103msgstr ""
    101104
    102 #: includes/options.php:15
     105#: includes/options.php:33
    103106msgid "Еnter keywords, one word per line"
    104107msgstr ""
  • clear-comments/tags/1.0.1/readme.txt

    r2461369 r2461659  
    55Requires PHP: 5.3
    66Tested up to: 5.6
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3939
    4040* All processed comments in which stop words were found will be displayed in the "Overvew" tab.
     41
     42== Changelog ==
     43
     44= 1.0.1 =
     45* Loading the translate using action plugins_loaded
  • clear-comments/trunk/clear-comments.php

    r2461369 r2461659  
    66  Author: Brahman  <fb@emelianovip.ru>
    77  Author URI: https://emelianovip.ru
    8   Version: 1.0.0
     8  Version: 1.0.1
    99  License: GPLv2
    1010 */
     
    2727    add_action( 'init', array( 'EPV_ClearComments_Admin', 'init' ) );
    2828        add_action( 'admin_enqueue_scripts', 'clear_comments_admin_styles' );
    29         load_plugin_textdomain( "clear-comments", false, basename( dirname( __FILE__ ) ) . '/languages' );
     29        add_action( 'plugins_loaded', 'clear_comments_load_plugin_textdomain' );       
     30}
     31
     32function clear_comments_load_plugin_textdomain() {
     33    load_plugin_textdomain( 'clear-comments', FALSE, basename( dirname( __FILE__ ) ) . '/languages/' );
    3034}
    3135
  • clear-comments/trunk/includes/options.php

    r2461369 r2461659  
    3939        </div>     
    4040        <div class="form-field">
    41             <label for="clear_comm_keywords_white"><?php print _("Еnter exclusion keywords, one word per line", "clear-comments") ?></label>
     41            <label for="clear_comm_keywords_white"><?php print __("Еnter exclusion keywords, one word per line", "clear-comments") ?></label>
    4242        </div>
    4343        <br />
  • clear-comments/trunk/languages/clear-comments-ru_RU.po

    r2461369 r2461659  
    44"Report-Msgid-Bugs-To: \n"
    55"POT-Creation-Date: 2021-01-20 07:07+0000\n"
    6 "PO-Revision-Date: 2021-01-21 07:09+0000\n"
     6"PO-Revision-Date: 2021-01-24 07:09+0000\n"
    77"Last-Translator: \n"
    88"Language-Team: Русский\n"
     
    1717"X-Domain: clear-comments"
    1818
    19 #: includes/options.php:9
     19#: includes/options.php:27
    2020msgid "Black list"
    2121msgstr "Чёрный список"
     
    2626
    2727#. Name of the plugin
    28 #: class.clear-comments-admin.php:19 includes/main.php:3 includes/main.php:15
    29 #: includes/main.php:18
     28#: class.clear-comments-admin.php:25 includes/options.php:2
     29#: includes/overview.php:2 includes/test.php:2
    3030msgid "Clear comments"
    3131msgstr "Чистые комментарии"
    3232
    33 #: includes/test.php:7
     33#: includes/test.php:5
    3434msgid "Comment text"
    3535msgstr "Текст комментария"
    3636
    37 #: includes/test.php:28
     37#: includes/test.php:43
    3838msgid "Found keywords"
    3939msgstr "Найденные слова"
    4040
    41 #. URI of the plugin
    4241#. Author URI of the plugin
    4342msgid "https://emelianovip.ru"
    4443msgstr "https://emelianovip.ru"
    4544
    46 #: includes/test.php:32
     45#. URI of the plugin
     46msgid "https://emelianovip.ru/2021/01/21/318/"
     47msgstr "https://emelianovip.ru/2021/01/21/318/"
     48
     49#: includes/test.php:47
    4750msgid "Keywords list"
    4851msgstr "Список ключевых слов"
    4952
    50 #: includes/overview.php:15
     53#: includes/overview.php:19
    5154msgid "Last comments"
    5255msgstr "Последние комментарии"
    5356
    54 #: includes/overview.php:4
     57#: includes/overview.php:8
    5558msgid "No cleared comments"
    5659msgstr "Нет очищенных комментариев"
    5760
    58 #: includes/main.php:15 includes/main.php:29
     61#: class.clear-comments-admin.php:76 includes/options.php:2
    5962msgid "Options"
    6063msgstr "Настройки"
    6164
    62 #: includes/main.php:3 includes/main.php:28
     65#: class.clear-comments-admin.php:75 includes/overview.php:2
    6366msgid "Overview"
    6467msgstr "Обзор"
    6568
    66 #: includes/test.php:30
     69#: includes/test.php:45
    6770msgid "Result text"
    6871msgstr "Результат"
    6972
    70 #: includes/options.php:29
     73#: includes/options.php:46
    7174msgid "Save"
    7275msgstr "Сохранить"
    7376
    74 #: includes/test.php:16
     77#: includes/test.php:31
    7578msgid "Submit"
    7679msgstr "Отправить"
    7780
    78 #: class.clear-comments-admin.php:27 class.clear-comments-admin.php:33
     81#: class.clear-comments-admin.php:33 class.clear-comments-admin.php:39
    7982msgid "Success"
    8083msgstr "Успешно"
    8184
    82 #: includes/main.php:18 includes/main.php:30
     85#: class.clear-comments-admin.php:77 includes/test.php:2
    8386msgid "Test"
    8487msgstr "Тест"
     
    8891msgstr "Этот плагин заменяет слова из стоп-листа звёздочками ***"
    8992
    90 #: includes/options.php:20
     93#: includes/options.php:36
    9194msgid "White list"
    9295msgstr "Белый список"
    9396
    94 #: includes/test.php:12
     97#: includes/test.php:25
    9598msgid "Write a test comment"
    9699msgstr "Напишите тестовый комментарий"
    97100
    98 #: includes/options.php:25
     101#: includes/options.php:41
    99102msgid "Еnter exclusion keywords, one word per line"
    100103msgstr "Введите ключевые слова-исключения, по одному слову в строке"
    101104
    102 #: includes/options.php:15
     105#: includes/options.php:33
    103106msgid "Еnter keywords, one word per line"
    104107msgstr "Введите ключевые слова, по одному слову в строке"
  • clear-comments/trunk/languages/clear-comments.pot

    r2461369 r2461659  
    44"Project-Id-Version: Clear comments\n"
    55"Report-Msgid-Bugs-To: \n"
    6 "POT-Creation-Date: 2021-01-21 07:08+0000\n"
     6"POT-Creation-Date: 2021-01-24 07:07+0000\n"
    77"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    88"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1717"X-Domain: clear-comments"
    1818
    19 #: includes/options.php:9
     19#: includes/options.php:27
    2020msgid "Black list"
    2121msgstr ""
     
    2626
    2727#. Name of the plugin
    28 #: class.clear-comments-admin.php:19 includes/main.php:3 includes/main.php:15
    29 #: includes/main.php:18
     28#: class.clear-comments-admin.php:25 includes/options.php:2
     29#: includes/overview.php:2 includes/test.php:2
    3030msgid "Clear comments"
    3131msgstr ""
    3232
    33 #: includes/test.php:7
     33#: includes/test.php:5
    3434msgid "Comment text"
    3535msgstr ""
    3636
    37 #: includes/test.php:28
     37#: includes/test.php:43
    3838msgid "Found keywords"
    3939msgstr ""
    4040
    41 #. URI of the plugin
    4241#. Author URI of the plugin
    4342msgid "https://emelianovip.ru"
    4443msgstr ""
    4544
    46 #: includes/test.php:32
     45#. URI of the plugin
     46msgid "https://emelianovip.ru/2021/01/21/318/"
     47msgstr ""
     48
     49#: includes/test.php:47
    4750msgid "Keywords list"
    4851msgstr ""
    4952
    50 #: includes/overview.php:15
     53#: includes/overview.php:19
    5154msgid "Last comments"
    5255msgstr ""
    5356
    54 #: includes/overview.php:4
     57#: includes/overview.php:8
    5558msgid "No cleared comments"
    5659msgstr ""
    5760
    58 #: includes/main.php:15 includes/main.php:29
     61#: class.clear-comments-admin.php:76 includes/options.php:2
    5962msgid "Options"
    6063msgstr ""
    6164
    62 #: includes/main.php:3 includes/main.php:28
     65#: class.clear-comments-admin.php:75 includes/overview.php:2
    6366msgid "Overview"
    6467msgstr ""
    6568
    66 #: includes/test.php:30
     69#: includes/test.php:45
    6770msgid "Result text"
    6871msgstr ""
    6972
    70 #: includes/options.php:29
     73#: includes/options.php:46
    7174msgid "Save"
    7275msgstr ""
    7376
    74 #: includes/test.php:16
     77#: includes/test.php:31
    7578msgid "Submit"
    7679msgstr ""
    7780
    78 #: class.clear-comments-admin.php:27 class.clear-comments-admin.php:33
     81#: class.clear-comments-admin.php:33 class.clear-comments-admin.php:39
    7982msgid "Success"
    8083msgstr ""
    8184
    82 #: includes/main.php:18 includes/main.php:30
     85#: class.clear-comments-admin.php:77 includes/test.php:2
    8386msgid "Test"
    8487msgstr ""
     
    8891msgstr ""
    8992
    90 #: includes/options.php:20
     93#: includes/options.php:36
    9194msgid "White list"
    9295msgstr ""
    9396
    94 #: includes/test.php:12
     97#: includes/test.php:25
    9598msgid "Write a test comment"
    9699msgstr ""
    97100
    98 #: includes/options.php:25
     101#: includes/options.php:41
    99102msgid "Еnter exclusion keywords, one word per line"
    100103msgstr ""
    101104
    102 #: includes/options.php:15
     105#: includes/options.php:33
    103106msgid "Еnter keywords, one word per line"
    104107msgstr ""
  • clear-comments/trunk/readme.txt

    r2461369 r2461659  
    55Requires PHP: 5.3
    66Tested up to: 5.6
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3939
    4040* All processed comments in which stop words were found will be displayed in the "Overvew" tab.
     41
     42== Changelog ==
     43
     44= 1.0.1 =
     45* Loading the translate using action plugins_loaded
Note: See TracChangeset for help on using the changeset viewer.