Version Description
- UPDATE: Complete translation support.
- NEW: Add .pot file for translation.
Download this release
Release Info
Developer | sethta |
Plugin | No Page Comment |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
- lang/no-page-comment.pot +124 -0
- no-page-comment-settings.php +9 -8
- no-page-comment.php +9 -2
- readme.txt +8 -4
lang/no-page-comment.pot
ADDED
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2014 No Page Comment
|
2 |
+
# This file is distributed under the same license as the No Page Comment package.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"Project-Id-Version: No Page Comment 1.0.3\n"
|
6 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/no-page-comment\n"
|
7 |
+
"POT-Creation-Date: 2014-03-02 01:02:56+00:00\n"
|
8 |
+
"MIME-Version: 1.0\n"
|
9 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
+
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
|
12 |
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
+
|
15 |
+
#: no-page-comment-settings.php:31
|
16 |
+
msgid "Settings Updated."
|
17 |
+
msgstr ""
|
18 |
+
|
19 |
+
#: no-page-comment-settings.php:35 no-page-comment.php:152
|
20 |
+
msgid "No Page Comment Settings"
|
21 |
+
msgstr ""
|
22 |
+
|
23 |
+
#: no-page-comment-settings.php:44
|
24 |
+
msgid "Disable comments on new:"
|
25 |
+
msgstr ""
|
26 |
+
|
27 |
+
#: no-page-comment-settings.php:53
|
28 |
+
msgid "Comments"
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#: no-page-comment-settings.php:55
|
32 |
+
msgid "Trackbacks"
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#: no-page-comment-settings.php:63
|
36 |
+
msgid "Update Settings"
|
37 |
+
msgstr ""
|
38 |
+
|
39 |
+
#: no-page-comment-settings.php:70
|
40 |
+
msgid "Modify all current:"
|
41 |
+
msgstr ""
|
42 |
+
|
43 |
+
#: no-page-comment-settings.php:79
|
44 |
+
msgid "Disable All Comments"
|
45 |
+
msgstr ""
|
46 |
+
|
47 |
+
#: no-page-comment-settings.php:80
|
48 |
+
msgid "Enable All Comments"
|
49 |
+
msgstr ""
|
50 |
+
|
51 |
+
#: no-page-comment-settings.php:83
|
52 |
+
msgid "Disable All Trackbacks"
|
53 |
+
msgstr ""
|
54 |
+
|
55 |
+
#: no-page-comment-settings.php:84
|
56 |
+
msgid "Enable All Trackbacks"
|
57 |
+
msgstr ""
|
58 |
+
|
59 |
+
#: no-page-comment-settings.php:101
|
60 |
+
msgid "Other plugins by"
|
61 |
+
msgstr ""
|
62 |
+
|
63 |
+
#: no-page-comment-settings.php:110
|
64 |
+
msgid "Support No Page Comment:"
|
65 |
+
msgstr ""
|
66 |
+
|
67 |
+
#: no-page-comment-settings.php:113
|
68 |
+
msgid "Donate to support the No Page Comment plugin development"
|
69 |
+
msgstr ""
|
70 |
+
|
71 |
+
#: no-page-comment-settings.php:113
|
72 |
+
msgid "Donate"
|
73 |
+
msgstr ""
|
74 |
+
|
75 |
+
#: no-page-comment-settings.php:114
|
76 |
+
msgid "Write a Review about No Page Comment"
|
77 |
+
msgstr ""
|
78 |
+
|
79 |
+
#: no-page-comment-settings.php:114
|
80 |
+
msgid "Write a Review"
|
81 |
+
msgstr ""
|
82 |
+
|
83 |
+
#: no-page-comment-settings.php:115
|
84 |
+
msgid "Fork No Page Comment on Github"
|
85 |
+
msgstr ""
|
86 |
+
|
87 |
+
#: no-page-comment-settings.php:115
|
88 |
+
msgid "Fork No Page Comment"
|
89 |
+
msgstr ""
|
90 |
+
|
91 |
+
#: no-page-comment-settings.php:116
|
92 |
+
msgid "Report an Issue on Github"
|
93 |
+
msgstr ""
|
94 |
+
|
95 |
+
#: no-page-comment-settings.php:116
|
96 |
+
msgid "Report an Issue about No Page Comment"
|
97 |
+
msgstr ""
|
98 |
+
|
99 |
+
#: no-page-comment-settings.php:117
|
100 |
+
msgid "Help Translate No Page Comment"
|
101 |
+
msgstr ""
|
102 |
+
|
103 |
+
#: no-page-comment-settings.php:117
|
104 |
+
msgid "Offer to Translate No Page Comment"
|
105 |
+
msgstr ""
|
106 |
+
|
107 |
+
#: no-page-comment.php:133
|
108 |
+
msgid "Settings"
|
109 |
+
msgstr ""
|
110 |
+
|
111 |
+
#: no-page-comment.php:152
|
112 |
+
msgid "Comment and trackback defaults controlled through"
|
113 |
+
msgstr ""
|
114 |
+
|
115 |
+
#. Plugin Name of the plugin/theme
|
116 |
+
msgid "No Page Comment"
|
117 |
+
msgstr ""
|
118 |
+
|
119 |
+
#. Description of the plugin/theme
|
120 |
+
msgid ""
|
121 |
+
"A plugin that uses javascript to disable comments by default on posts, pages "
|
122 |
+
"and/or custom post types but leave them enabled on others, while still "
|
123 |
+
"giving you the ability to individually set them on a page or post basis."
|
124 |
+
msgstr ""
|
no-page-comment-settings.php
CHANGED
@@ -50,9 +50,9 @@ if ( isset($_POST['update_sta_npc_plugin_settings']) ) {
|
|
50 |
<strong class="post-type"><?php echo $posttype->label; ?></strong>
|
51 |
<div class="inner">
|
52 |
<label for="sta_npc_disable_comments_<?php echo $posttype->name; ?>">
|
53 |
-
<input type="checkbox" id="sta_npc_disable_comments_<?php echo $posttype->name; ?>" name="sta_npc_disable_comments_<?php echo $posttype->name; ?>" value="true" <?php if ( $sta_npc_options['disable_comments_' . $posttype->name] == 'true' ) {
|
54 |
<label for="sta_npc_disable_trackbacks_<?php echo $posttype->name; ?>">
|
55 |
-
<input type="checkbox" id="sta_npc_disable_trackbacks_<?php echo $posttype->name; ?>" name="sta_npc_disable_trackbacks_<?php echo $posttype->name; ?>" value="true" <?php if ( $sta_npc_options['disable_trackbacks_' . $posttype->name] == 'true' ) {
|
56 |
</div>
|
57 |
</div>
|
58 |
<br class="clear">
|
@@ -98,10 +98,10 @@ if ( isset($_POST['update_sta_npc_plugin_settings']) ) {
|
|
98 |
<div class="meta-box-sortables">
|
99 |
|
100 |
<div class="postbox">
|
101 |
-
<h3 style="cursor:default;"><span><?php _e('Other plugins by', $this->plugin_domain ); ?> <a href="http://sethalling.com/" title="
|
102 |
<div class="inside">
|
103 |
<ul>
|
104 |
-
<li style="padding:5px 0;"><a href="http://sethalling.com/plugins/wordpress/wp-faqs-pro" title="
|
105 |
</ul>
|
106 |
</div>
|
107 |
</div>
|
@@ -110,10 +110,11 @@ if ( isset($_POST['update_sta_npc_plugin_settings']) ) {
|
|
110 |
<h3 style="cursor:default;"><span><?php _e('Support No Page Comment:', $this->plugin_domain ); ?></span></h3>
|
111 |
<div class="inside">
|
112 |
<ul>
|
113 |
-
<li style="padding:5px 0;"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5WWP2EDSCAJR4" title="<?php _e('Donate to support the No Page Comment plugin development', $this->plugin_domain ); ?>"><?php _e('Donate', $this->plugin_domain ); ?></a></li>
|
114 |
-
<li style="padding:5px 0;"><a href="http://wordpress.org/support/view/plugin-reviews/no-page-comment#postform" title="<?php _e('Write a Review about No Page Comment', $this->plugin_domain ); ?>"><?php _e('Write a Review', $this->plugin_domain ); ?></a></li>
|
115 |
-
<li style="padding:5px 0;"><a href="https://github.com/sethta/no-page-comment" title="<?php _e('Fork No Page Comment on Github', $this->plugin_domain ); ?>"><?php _e('Fork No Page Comment', $this->plugin_domain ); ?></a></li>
|
116 |
-
<li style="padding:5px 0;"><a href="https://github.com/sethta/no-page-comment/issues" title="<?php _e('Report an Issue on Github', $this->plugin_domain ); ?>"><?php _e('Report an Issue about No Page Comment', $this->plugin_domain ); ?></a></li>
|
|
|
117 |
</ul>
|
118 |
</div>
|
119 |
</div>
|
50 |
<strong class="post-type"><?php echo $posttype->label; ?></strong>
|
51 |
<div class="inner">
|
52 |
<label for="sta_npc_disable_comments_<?php echo $posttype->name; ?>">
|
53 |
+
<input type="checkbox" id="sta_npc_disable_comments_<?php echo $posttype->name; ?>" name="sta_npc_disable_comments_<?php echo $posttype->name; ?>" value="true" <?php if ( $sta_npc_options['disable_comments_' . $posttype->name] == 'true' ) { echo 'checked="checked"'; } ?>> <?php _e('Comments', $this->plugin_domain ); ?></label>
|
54 |
<label for="sta_npc_disable_trackbacks_<?php echo $posttype->name; ?>">
|
55 |
+
<input type="checkbox" id="sta_npc_disable_trackbacks_<?php echo $posttype->name; ?>" name="sta_npc_disable_trackbacks_<?php echo $posttype->name; ?>" value="true" <?php if ( $sta_npc_options['disable_trackbacks_' . $posttype->name] == 'true' ) { echo 'checked="checked"'; } ?>> <?php _e('Trackbacks', $this->plugin_domain ); ?></label>
|
56 |
</div>
|
57 |
</div>
|
58 |
<br class="clear">
|
98 |
<div class="meta-box-sortables">
|
99 |
|
100 |
<div class="postbox">
|
101 |
+
<h3 style="cursor:default;"><span><?php _e('Other plugins by', $this->plugin_domain ); ?> <a href="http://sethalling.com/" title="Seth Alling" style="font-size:15px;">Seth Alling</a>:</span></h3>
|
102 |
<div class="inside">
|
103 |
<ul>
|
104 |
+
<li style="padding:5px 0;"><a href="http://sethalling.com/plugins/wordpress/wp-faqs-pro" title="WP FAQs Pro" target="_blank">WP FAQs Pro</a></li>
|
105 |
</ul>
|
106 |
</div>
|
107 |
</div>
|
110 |
<h3 style="cursor:default;"><span><?php _e('Support No Page Comment:', $this->plugin_domain ); ?></span></h3>
|
111 |
<div class="inside">
|
112 |
<ul>
|
113 |
+
<li style="padding:5px 0;"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5WWP2EDSCAJR4" title="<?php _e('Donate to support the No Page Comment plugin development', $this->plugin_domain ); ?>" target="_blank"><?php _e('Donate', $this->plugin_domain ); ?></a></li>
|
114 |
+
<li style="padding:5px 0;"><a href="http://wordpress.org/support/view/plugin-reviews/no-page-comment#postform" title="<?php _e('Write a Review about No Page Comment', $this->plugin_domain ); ?>" target="_blank"><?php _e('Write a Review', $this->plugin_domain ); ?></a></li>
|
115 |
+
<li style="padding:5px 0;"><a href="https://github.com/sethta/no-page-comment" title="<?php _e('Fork No Page Comment on Github', $this->plugin_domain ); ?>" target="_blank"><?php _e('Fork No Page Comment', $this->plugin_domain ); ?></a></li>
|
116 |
+
<li style="padding:5px 0;"><a href="https://github.com/sethta/no-page-comment/issues" title="<?php _e('Report an Issue on Github', $this->plugin_domain ); ?>" target="_blank"><?php _e('Report an Issue about No Page Comment', $this->plugin_domain ); ?></a></li>
|
117 |
+
<li style="padding:5px 0;"><a href="http://sethalling.com/contact/" title="<?php _e('Help Translate No Page Comment', $this->plugin_domain ); ?>" target="_blank"><?php _e('Offer to Translate No Page Comment', $this->plugin_domain ); ?></a></li>
|
118 |
</ul>
|
119 |
</div>
|
120 |
</div>
|
no-page-comment.php
CHANGED
@@ -3,9 +3,10 @@
|
|
3 |
Plugin Name: No Page Comment
|
4 |
Plugin URI: http://sethalling.com/plugins/no-page-comment
|
5 |
Description: A plugin that uses javascript to disable comments by default on posts, pages and/or custom post types but leave them enabled on others, while still giving you the ability to individually set them on a page or post basis.
|
6 |
-
Version: 1.0.
|
7 |
Author: Seth Alling
|
8 |
Author URI: http://sethalling.com/
|
|
|
9 |
|
10 |
Plugin: Copyright (c) 2011-2014 Seth Alling
|
11 |
|
@@ -43,13 +44,19 @@ if ( ! function_exists( 'sta_npc_activate' ) ) {
|
|
43 |
}
|
44 |
}
|
45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
if ( ! function_exists( 'sta_npc_load' ) ) {
|
47 |
function sta_npc_load() {
|
48 |
if ( ! class_exists( 'STA_NPC_Plugin' ) ) {
|
49 |
class STA_NPC_Plugin {
|
50 |
var $admin_options_name = 'sta_npc_admin_options_name',
|
51 |
$admin_users_name = 'sta_npc_admin_options_name',
|
52 |
-
$plugin_domain = '
|
53 |
public $plugin_name = 'no-page-comment';
|
54 |
public $plugin_file;
|
55 |
public $plugin_dir;
|
3 |
Plugin Name: No Page Comment
|
4 |
Plugin URI: http://sethalling.com/plugins/no-page-comment
|
5 |
Description: A plugin that uses javascript to disable comments by default on posts, pages and/or custom post types but leave them enabled on others, while still giving you the ability to individually set them on a page or post basis.
|
6 |
+
Version: 1.0.3
|
7 |
Author: Seth Alling
|
8 |
Author URI: http://sethalling.com/
|
9 |
+
Text Domain: no-page-comment
|
10 |
|
11 |
Plugin: Copyright (c) 2011-2014 Seth Alling
|
12 |
|
44 |
}
|
45 |
}
|
46 |
|
47 |
+
// Set text domain for translation
|
48 |
+
function sta_load_text_domain() {
|
49 |
+
load_plugin_textdomain( 'no-page-comment', false, basename( dirname( __FILE__ ) ) . '/lang/' );
|
50 |
+
}
|
51 |
+
add_action( 'init', 'sta_load_text_domain' ); // Set text domain for translation
|
52 |
+
|
53 |
if ( ! function_exists( 'sta_npc_load' ) ) {
|
54 |
function sta_npc_load() {
|
55 |
if ( ! class_exists( 'STA_NPC_Plugin' ) ) {
|
56 |
class STA_NPC_Plugin {
|
57 |
var $admin_options_name = 'sta_npc_admin_options_name',
|
58 |
$admin_users_name = 'sta_npc_admin_options_name',
|
59 |
+
$plugin_domain = 'no-page-comment';
|
60 |
public $plugin_name = 'no-page-comment';
|
61 |
public $plugin_file;
|
62 |
public $plugin_dir;
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
|
3 |
Contributors: sethta
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5WWP2EDSCAJR4
|
5 |
-
Tags: admin, comments, custom post type,
|
6 |
Requires at least: 3.1
|
7 |
-
Tested up to: 3.8
|
8 |
Stable tag: trunk
|
9 |
|
10 |
Disable comments by default on new pages and custom post types, while still giving you the ability to individually set them on a page or post basis.
|
@@ -69,7 +69,7 @@ Of course, although *it is highly recommended that you backup your blog's databa
|
|
69 |
|
70 |
= How can I help support No Page Comment? =
|
71 |
|
72 |
-
[Donations](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5WWP2EDSCAJR4 "Donate to support the No Page Comment Plugin development") are always accepted, but I am also looking for help from others who want to make this plugin better. Please [fork the plugin on Github](https://github.com/sethta/no-page-comment "Fork No Page Comment on Github") and feel free to [report any issues](https://github.com/sethta/no-page-comment/issues "Report an Issue about No Page Comment on Github").
|
73 |
|
74 |
== Screenshots ==
|
75 |
|
@@ -77,11 +77,15 @@ Of course, although *it is highly recommended that you backup your blog's databa
|
|
77 |
|
78 |
== Changelog ==
|
79 |
|
|
|
|
|
|
|
|
|
80 |
= 1.0.2 =
|
81 |
* FIX: Stop plugin CSS from loading on other admin pages.
|
82 |
|
83 |
= 1.0.1 =
|
84 |
-
* FIX:
|
85 |
|
86 |
= 1.0 =
|
87 |
* UPDATE: Rewrite plugin to decrease code bloat
|
2 |
|
3 |
Contributors: sethta
|
4 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5WWP2EDSCAJR4
|
5 |
+
Tags: admin, comments, custom post type, discussion, pages, posts, attachment, attachments, media, settings, tools, trackbacks
|
6 |
Requires at least: 3.1
|
7 |
+
Tested up to: 3.8.1
|
8 |
Stable tag: trunk
|
9 |
|
10 |
Disable comments by default on new pages and custom post types, while still giving you the ability to individually set them on a page or post basis.
|
69 |
|
70 |
= How can I help support No Page Comment? =
|
71 |
|
72 |
+
[Donations](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5WWP2EDSCAJR4 "Donate to support the No Page Comment Plugin development") are always accepted, but I am also looking for help from others who want to make this plugin better. Please [fork the plugin on Github](https://github.com/sethta/no-page-comment "Fork No Page Comment on Github") and feel free to [report any issues](https://github.com/sethta/no-page-comment/issues "Report an Issue about No Page Comment on Github"). Also, I am looking for people who are interested in translating No Page Comment into other languages. Please [contact me](http://sethalling.com/contact/ "Contact Seth Alling") me if you are interested.
|
73 |
|
74 |
== Screenshots ==
|
75 |
|
77 |
|
78 |
== Changelog ==
|
79 |
|
80 |
+
= 1.0.3 =
|
81 |
+
* UPDATE: Complete translation support.
|
82 |
+
* NEW: Add .pot file for translation.
|
83 |
+
|
84 |
= 1.0.2 =
|
85 |
* FIX: Stop plugin CSS from loading on other admin pages.
|
86 |
|
87 |
= 1.0.1 =
|
88 |
+
* FIX: Add missing files from failed SVN commit.
|
89 |
|
90 |
= 1.0 =
|
91 |
* UPDATE: Rewrite plugin to decrease code bloat
|