Version Description
- 2018-01-18
- Editor.php: Heading for City should really be City.
- Improve and add translator comments.
Download this release
Release Info
Developer | mpol |
Plugin | Gwolle Guestbook |
Version | 2.3.8 |
Comparing to | |
See all releases |
Code changes from version 2.3.7 to 2.3.8
- add-on/gb-add-on.php +6 -5
- admin/gb-page-add-on.php +3 -0
- admin/gb-page-editor.php +12 -5
- admin/gb-page-entries.php +12 -0
- admin/gb-page-export.php +2 -2
- admin/gb-page-gwolle-gb.php +6 -1
- admin/gb-page-import.php +10 -3
- admin/tabs/gb-antispamtab.php +5 -0
- admin/tabs/gb-readingtab.php +1 -0
- gwolle-gb.php +3 -3
- readme.txt +8 -4
add-on/gb-add-on.php
CHANGED
@@ -44,7 +44,7 @@ function gwolle_gb_addon_translation_strings() {
|
|
44 |
esc_html__('Delete', 'gwolle-gb');
|
45 |
|
46 |
// function gwolle_gb_entry_metabox_lines_social_media( $gb_metabox, $entry ) {
|
47 |
-
/* translators: Commercial Add-On: Post on Social Media */
|
48 |
esc_attr__('Post on', 'gwolle-gb');
|
49 |
|
50 |
// function gwolle_gb_entry_metabox_lines_email( $gb_metabox, $entry ) {
|
@@ -64,13 +64,13 @@ function gwolle_gb_addon_translation_strings() {
|
|
64 |
esc_html__('Average Star Rating', 'gwolle-gb');
|
65 |
|
66 |
// function gwolle_gb_addon_deps_admin_notice() {
|
67 |
-
/* translators: Commercial Add-On */
|
68 |
esc_html__( 'Gwolle Guestbook: The Add-On requires Gwolle Guestbook. Go to your %sPlugins%s page to install or activate Gwolle Guestbook.', 'gwolle-gb' );
|
69 |
-
/* translators: Commercial Add-On */
|
70 |
esc_html__( 'Gwolle Guestbook: The Add-On requires Gwolle Guestbook version %s. You have version %s. Go to your %sPlugins%s page to update Gwolle Guestbook.', 'gwolle-gb' );
|
71 |
|
72 |
// function gwolle_gb_addon_page_settingstab_empty() {
|
73 |
-
/* translators: Commercial Add-On */
|
74 |
esc_html__( 'Please place them on the %ssupport forum%s. I will see what I can do.', 'gwolle-gb' );
|
75 |
|
76 |
// function gwolle_gb_addon_page_settingstab_form() {
|
@@ -80,7 +80,7 @@ function gwolle_gb_addon_translation_strings() {
|
|
80 |
esc_html_e('The slug of the field is where your data is attached to. Only change the slug if you know what you are doing.', 'gwolle-gb');
|
81 |
/* translators: Commercial Add-On */
|
82 |
esc_html_e('The name of the field is what you will see in the label and placeholder in the form.', 'gwolle-gb');
|
83 |
-
/* translators: Commercial Add-On */
|
84 |
esc_html_e('Top', 'gwolle-gb');
|
85 |
/* translators: Commercial Add-On */
|
86 |
esc_html_e('Slug:', 'gwolle-gb');
|
@@ -169,6 +169,7 @@ function gwolle_gb_addon_translation_strings() {
|
|
169 |
esc_html_e('+ Add new string.', 'gwolle-gb');
|
170 |
|
171 |
// function gwolle_gb_addon_starrating_average_html()
|
|
|
172 |
__( 'Average Rating: <strong>%s out of %s</strong> (%s votes)', 'gwolle-gb' );
|
173 |
|
174 |
}
|
44 |
esc_html__('Delete', 'gwolle-gb');
|
45 |
|
46 |
// function gwolle_gb_entry_metabox_lines_social_media( $gb_metabox, $entry ) {
|
47 |
+
/* translators: Commercial Add-On: Post it on Social Media */
|
48 |
esc_attr__('Post on', 'gwolle-gb');
|
49 |
|
50 |
// function gwolle_gb_entry_metabox_lines_email( $gb_metabox, $entry ) {
|
64 |
esc_html__('Average Star Rating', 'gwolle-gb');
|
65 |
|
66 |
// function gwolle_gb_addon_deps_admin_notice() {
|
67 |
+
/* translators: Commercial Add-On. %s is a link. */
|
68 |
esc_html__( 'Gwolle Guestbook: The Add-On requires Gwolle Guestbook. Go to your %sPlugins%s page to install or activate Gwolle Guestbook.', 'gwolle-gb' );
|
69 |
+
/* translators: Commercial Add-On. %s is a version number. */
|
70 |
esc_html__( 'Gwolle Guestbook: The Add-On requires Gwolle Guestbook version %s. You have version %s. Go to your %sPlugins%s page to update Gwolle Guestbook.', 'gwolle-gb' );
|
71 |
|
72 |
// function gwolle_gb_addon_page_settingstab_empty() {
|
73 |
+
/* translators: Commercial Add-On. %s is a link. */
|
74 |
esc_html__( 'Please place them on the %ssupport forum%s. I will see what I can do.', 'gwolle-gb' );
|
75 |
|
76 |
// function gwolle_gb_addon_page_settingstab_form() {
|
80 |
esc_html_e('The slug of the field is where your data is attached to. Only change the slug if you know what you are doing.', 'gwolle-gb');
|
81 |
/* translators: Commercial Add-On */
|
82 |
esc_html_e('The name of the field is what you will see in the label and placeholder in the form.', 'gwolle-gb');
|
83 |
+
/* translators: Commercial Add-On. At the top of the form. */
|
84 |
esc_html_e('Top', 'gwolle-gb');
|
85 |
/* translators: Commercial Add-On */
|
86 |
esc_html_e('Slug:', 'gwolle-gb');
|
169 |
esc_html_e('+ Add new string.', 'gwolle-gb');
|
170 |
|
171 |
// function gwolle_gb_addon_starrating_average_html()
|
172 |
+
/* translators: Commercial Add-On. %s is the value/number of votes. */
|
173 |
__( 'Average Rating: <strong>%s out of %s</strong> (%s votes)', 'gwolle-gb' );
|
174 |
|
175 |
}
|
admin/gb-page-add-on.php
CHANGED
@@ -87,6 +87,7 @@ function gwolle_gb_addon_buy() {
|
|
87 |
<h3><?php esc_html_e('Buy the Add-On.', 'gwolle-gb'); ?></h3>
|
88 |
<p><?php
|
89 |
$link = '<a href="http://www.mojomarketplace.com/item/gwolle-gb-add-on" target="_blank">';
|
|
|
90 |
echo sprintf( esc_html__( 'You can buy this add-on at the %sMOJO Marketplace%s for only $ 9.', 'gwolle-gb' ), $link, '</a>' ); ?><br />
|
91 |
<?php esc_html_e('Support for the add-on is also at the MOJO Marketplace website.','gwolle-gb'); ?>
|
92 |
</p>
|
@@ -99,12 +100,14 @@ function gwolle_gb_addon_demo() {
|
|
99 |
<h3><?php esc_html_e('Demo with the Add-On.', 'gwolle-gb'); ?></h3>
|
100 |
<p><?php
|
101 |
$link = '<a href="http://demo.zenoweb.nl/wordpress-plugins/gwolle-guestbook-the-add-on/" target="_blank">';
|
|
|
102 |
echo sprintf( esc_html__( 'The demo site of this plugin is available with the add-on enabled at %sthe demo site%s.', 'gwolle-gb' ), $link, '</a>' ); ?>
|
103 |
</p>
|
104 |
|
105 |
<h3><?php esc_html_e('Demo without the Add-On.', 'gwolle-gb'); ?></h3>
|
106 |
<p><?php
|
107 |
$link = '<a href="http://demo.zenoweb.nl/wordpress-plugins/gwolle-gb/" target="_blank">';
|
|
|
108 |
echo sprintf( esc_html__( 'For comparison you can also see the %sdemo site without the add-on%s enabled.', 'gwolle-gb' ), $link, '</a>' ); ?>
|
109 |
</p>
|
110 |
<?php
|
87 |
<h3><?php esc_html_e('Buy the Add-On.', 'gwolle-gb'); ?></h3>
|
88 |
<p><?php
|
89 |
$link = '<a href="http://www.mojomarketplace.com/item/gwolle-gb-add-on" target="_blank">';
|
90 |
+
/* translators: %s is a link */
|
91 |
echo sprintf( esc_html__( 'You can buy this add-on at the %sMOJO Marketplace%s for only $ 9.', 'gwolle-gb' ), $link, '</a>' ); ?><br />
|
92 |
<?php esc_html_e('Support for the add-on is also at the MOJO Marketplace website.','gwolle-gb'); ?>
|
93 |
</p>
|
100 |
<h3><?php esc_html_e('Demo with the Add-On.', 'gwolle-gb'); ?></h3>
|
101 |
<p><?php
|
102 |
$link = '<a href="http://demo.zenoweb.nl/wordpress-plugins/gwolle-guestbook-the-add-on/" target="_blank">';
|
103 |
+
/* translators: %s is a link */
|
104 |
echo sprintf( esc_html__( 'The demo site of this plugin is available with the add-on enabled at %sthe demo site%s.', 'gwolle-gb' ), $link, '</a>' ); ?>
|
105 |
</p>
|
106 |
|
107 |
<h3><?php esc_html_e('Demo without the Add-On.', 'gwolle-gb'); ?></h3>
|
108 |
<p><?php
|
109 |
$link = '<a href="http://demo.zenoweb.nl/wordpress-plugins/gwolle-gb/" target="_blank">';
|
110 |
+
/* translators: %s is a link */
|
111 |
echo sprintf( esc_html__( 'For comparison you can also see the %sdemo site without the add-on%s enabled.', 'gwolle-gb' ), $link, '</a>' ); ?>
|
112 |
</p>
|
113 |
<?php
|
admin/gb-page-editor.php
CHANGED
@@ -17,6 +17,7 @@ function gwolle_gb_page_editor() {
|
|
17 |
}
|
18 |
|
19 |
gwolle_gb_admin_enqueue();
|
|
|
20 |
|
21 |
$gwolle_gb_errors = '';
|
22 |
$gwolle_gb_messages = '';
|
@@ -348,11 +349,12 @@ function gwolle_gb_page_editor() {
|
|
348 |
<?php
|
349 |
add_meta_box('gwolle_gb_editor_postbox_content', esc_html__('Guestbook entry','gwolle-gb'), 'gwolle_gb_editor_postbox_content', 'gwolle_gb_editor', 'normal');
|
350 |
add_meta_box('gwolle_gb_editor_postbox_website', esc_html__('Website', 'gwolle-gb'), 'gwolle_gb_editor_postbox_website', 'gwolle_gb_editor', 'normal');
|
351 |
-
add_meta_box('gwolle_gb_editor_postbox_author', esc_html__('
|
352 |
add_meta_box('gwolle_gb_editor_postbox_admin_reply', esc_html__('Admin Reply', 'gwolle-gb'), 'gwolle_gb_editor_postbox_admin_reply', 'gwolle_gb_editor', 'normal');
|
353 |
|
354 |
$active = is_plugin_active( 'gwolle-gb-addon/gwolle-gb-addon.php' ); // true or false
|
355 |
-
|
|
|
356 |
add_meta_box('gwolle_gb_editor_postbox_preview', esc_html__('Preview','gwolle-gb'), 'gwolle_gb_addon_editor_postbox_preview', 'gwolle_gb_editor', 'normal');
|
357 |
}
|
358 |
if ( $active && function_exists( 'gwolle_gb_addon_editor_metabox_meta' ) ) {
|
@@ -385,6 +387,7 @@ function gwolle_gb_editor_postbox_content( $entry ) {
|
|
385 |
<textarea rows="10" name="gwolle_gb_content" id="gwolle_gb_content" class="wp-exclude-emoji" tabindex="1" placeholder="<?php esc_html_e('Message', 'gwolle-gb'); ?>"><?php echo gwolle_gb_sanitize_output( $entry->get_content(), 'content' ); ?></textarea>
|
386 |
<?php
|
387 |
if (get_option('gwolle_gb-showLineBreaks', 'false') == 'false') {
|
|
|
388 |
echo '<p>' . sprintf( esc_html__('Line breaks will not be visible to the visitors due to your %ssettings%s.', 'gwolle-gb'), '<a href="admin.php?page=' . GWOLLE_GB_FOLDER . '/settings.php">', '</a>' ) . '</p>';
|
389 |
}
|
390 |
$form_setting = gwolle_gb_get_setting( 'form' );
|
@@ -424,12 +427,15 @@ function gwolle_gb_editor_postbox_content( $entry ) {
|
|
424 |
function gwolle_gb_editor_postbox_website( $entry ) {
|
425 |
?>
|
426 |
<input type="url" name="gwolle_gb_author_website" tabindex="2" value="<?php echo gwolle_gb_sanitize_output( $entry->get_author_website() ); ?>" id="author_website" placeholder="<?php esc_attr_e('Website', 'gwolle-gb'); ?>" />
|
427 |
-
<p><?php
|
|
|
|
|
|
|
428 |
<?php
|
429 |
}
|
430 |
|
431 |
|
432 |
-
function
|
433 |
?>
|
434 |
<input type="text" name="gwolle_gb_author_origin" tabindex="3" class="wp-exclude-emoji" placeholder="<?php esc_attr_e('City', 'gwolle-gb'); ?>" value="<?php echo gwolle_gb_sanitize_output( $entry->get_author_origin() ); ?>" id="author_origin" />
|
435 |
<?php
|
@@ -474,7 +480,8 @@ function gwolle_gb_editor_postbox_admin_reply( $entry ) {
|
|
474 |
|
475 |
<?php
|
476 |
if (get_option('gwolle_gb-showLineBreaks', 'false') == 'false') {
|
477 |
-
|
|
|
478 |
}
|
479 |
}
|
480 |
|
17 |
}
|
18 |
|
19 |
gwolle_gb_admin_enqueue();
|
20 |
+
gwolle_gb_register();
|
21 |
|
22 |
$gwolle_gb_errors = '';
|
23 |
$gwolle_gb_messages = '';
|
349 |
<?php
|
350 |
add_meta_box('gwolle_gb_editor_postbox_content', esc_html__('Guestbook entry','gwolle-gb'), 'gwolle_gb_editor_postbox_content', 'gwolle_gb_editor', 'normal');
|
351 |
add_meta_box('gwolle_gb_editor_postbox_website', esc_html__('Website', 'gwolle-gb'), 'gwolle_gb_editor_postbox_website', 'gwolle_gb_editor', 'normal');
|
352 |
+
add_meta_box('gwolle_gb_editor_postbox_author', esc_html__('City', 'gwolle-gb'), 'gwolle_gb_editor_postbox_author_origin', 'gwolle_gb_editor', 'normal');
|
353 |
add_meta_box('gwolle_gb_editor_postbox_admin_reply', esc_html__('Admin Reply', 'gwolle-gb'), 'gwolle_gb_editor_postbox_admin_reply', 'gwolle_gb_editor', 'normal');
|
354 |
|
355 |
$active = is_plugin_active( 'gwolle-gb-addon/gwolle-gb-addon.php' ); // true or false
|
356 |
+
$entry_id = $entry->get_id();
|
357 |
+
if ( $active && function_exists( 'gwolle_gb_addon_editor_postbox_preview' ) && $entry_id > 0 ) {
|
358 |
add_meta_box('gwolle_gb_editor_postbox_preview', esc_html__('Preview','gwolle-gb'), 'gwolle_gb_addon_editor_postbox_preview', 'gwolle_gb_editor', 'normal');
|
359 |
}
|
360 |
if ( $active && function_exists( 'gwolle_gb_addon_editor_metabox_meta' ) ) {
|
387 |
<textarea rows="10" name="gwolle_gb_content" id="gwolle_gb_content" class="wp-exclude-emoji" tabindex="1" placeholder="<?php esc_html_e('Message', 'gwolle-gb'); ?>"><?php echo gwolle_gb_sanitize_output( $entry->get_content(), 'content' ); ?></textarea>
|
388 |
<?php
|
389 |
if (get_option('gwolle_gb-showLineBreaks', 'false') == 'false') {
|
390 |
+
/* translators: %s is a link */
|
391 |
echo '<p>' . sprintf( esc_html__('Line breaks will not be visible to the visitors due to your %ssettings%s.', 'gwolle-gb'), '<a href="admin.php?page=' . GWOLLE_GB_FOLDER . '/settings.php">', '</a>' ) . '</p>';
|
392 |
}
|
393 |
$form_setting = gwolle_gb_get_setting( 'form' );
|
427 |
function gwolle_gb_editor_postbox_website( $entry ) {
|
428 |
?>
|
429 |
<input type="url" name="gwolle_gb_author_website" tabindex="2" value="<?php echo gwolle_gb_sanitize_output( $entry->get_author_website() ); ?>" id="author_website" placeholder="<?php esc_attr_e('Website', 'gwolle-gb'); ?>" />
|
430 |
+
<p><?php
|
431 |
+
/* translators: %s is a code element */
|
432 |
+
echo sprintf( esc_html__('Example: %shttp://www.example.com/%s', 'gwolle-gb'), '<code>', '</code>' ); ?>
|
433 |
+
</p>
|
434 |
<?php
|
435 |
}
|
436 |
|
437 |
|
438 |
+
function gwolle_gb_editor_postbox_author_origin( $entry ) {
|
439 |
?>
|
440 |
<input type="text" name="gwolle_gb_author_origin" tabindex="3" class="wp-exclude-emoji" placeholder="<?php esc_attr_e('City', 'gwolle-gb'); ?>" value="<?php echo gwolle_gb_sanitize_output( $entry->get_author_origin() ); ?>" id="author_origin" />
|
441 |
<?php
|
480 |
|
481 |
<?php
|
482 |
if (get_option('gwolle_gb-showLineBreaks', 'false') == 'false') {
|
483 |
+
/* translators: %s is a link */
|
484 |
+
echo '<p>' . sprintf( esc_html__('Line breaks will not be visible to the visitors due to your %ssettings%s.', 'gwolle-gb'), '<a href="admin.php?page=' . GWOLLE_GB_FOLDER . '/settings.php">', '</a>' ) . '</p>';
|
485 |
}
|
486 |
}
|
487 |
|
admin/gb-page-entries.php
CHANGED
@@ -243,31 +243,42 @@ function gwolle_gb_page_entries() {
|
|
243 |
|
244 |
/* Construct Message */
|
245 |
if ( $action == 'check' ) {
|
|
|
246 |
$gwolle_gb_messages .= '<p>' . sprintf( _n('%s entry checked.','%s entries checked.', $entries_handled, 'gwolle-gb'), $entries_handled ). '</p>';
|
247 |
} else if ( $action == 'uncheck' ) {
|
|
|
248 |
$gwolle_gb_messages .= '<p>' . sprintf( _n('%s entry unchecked.','%s entries unchecked.', $entries_handled, 'gwolle-gb'), $entries_handled ). '</p>';
|
249 |
} else if ( $action == 'spam' ) {
|
|
|
250 |
$gwolle_gb_messages .= '<p>' . sprintf( _n('%s entry marked as spam and submitted to Akismet as spam (if Akismet was enabled).','%s entries marked as spam and submitted to Akismet as spam (if Akismet was enabled).', $entries_handled, 'gwolle-gb'), $entries_handled ). '</p>';
|
251 |
} else if ( $action == 'no-spam' ) {
|
|
|
252 |
$gwolle_gb_messages .= '<p>' . sprintf( _n('%s entry marked as not spam and submitted to Akismet as ham (if Akismet was enabled).','%s entries marked as not spam and submitted to Akismet as ham (if Akismet was enabled).', $entries_handled, 'gwolle-gb'), $entries_handled ). '</p>';
|
253 |
} else if ( $action == 'akismet' ) {
|
254 |
if ( $akismet_spam > 0 ) {
|
|
|
255 |
$gwolle_gb_messages .= '<p>' . sprintf( _n('%s entry considered spam and marked as such.','%s entries considered spam and marked as such.', $akismet_spam, 'gwolle-gb'), $akismet_spam ). '</p>';
|
256 |
}
|
257 |
if ( $akismet_not_spam > 0 ) {
|
|
|
258 |
$gwolle_gb_messages .= '<p>' . sprintf( _n('%s entry considered not spam and marked as such.','%s entries considered not spam and marked as such.', $akismet_not_spam, 'gwolle-gb'), $akismet_not_spam ). '</p>';
|
259 |
}
|
260 |
if ( $akismet_already_spam > 0 ) {
|
|
|
261 |
$gwolle_gb_messages .= '<p>' . sprintf( _n('%s entry already considered spam and not changed.','%s entries already considered spam and not changed.', $akismet_already_spam, 'gwolle-gb'), $akismet_already_spam ). '</p>';
|
262 |
}
|
263 |
if ( $akismet_already_not_spam > 0 ) {
|
|
|
264 |
$gwolle_gb_messages .= '<p>' . sprintf( _n('%s entry already considered not spam and not changed.','%s entries already considered not spam and not changed.', $akismet_already_not_spam, 'gwolle-gb'), $akismet_already_not_spam ). '</p>';
|
265 |
}
|
266 |
} else if ( $action == 'trash' ) {
|
|
|
267 |
$gwolle_gb_messages .= '<p>' . sprintf( _n('%s entry moved to trash.','%s entries moved to trash.', $entries_handled, 'gwolle-gb'), $entries_handled ). '</p>';
|
268 |
} else if ( $action == 'untrash' ) {
|
|
|
269 |
$gwolle_gb_messages .= '<p>' . sprintf( _n('%s entry recovered from trash.','%s entries recovered from trash.', $entries_handled, 'gwolle-gb'), $entries_handled ). '</p>';
|
270 |
} else if ( $action == 'remove' ) {
|
|
|
271 |
$gwolle_gb_messages .= '<p>' . sprintf( _n('%s entry removed permanently.','%s entries removed permanently.', $entries_handled, 'gwolle-gb'), $entries_handled ). '</p>';
|
272 |
}
|
273 |
}
|
@@ -278,6 +289,7 @@ function gwolle_gb_page_entries() {
|
|
278 |
if ( isset($_POST['show']) && in_array($_POST['show'], array('spam', 'trash')) ) {
|
279 |
$delstatus = $_POST['show'];
|
280 |
$deleted = gwolle_gb_del_entries( $delstatus );
|
|
|
281 |
$gwolle_gb_messages .= '<p>' . sprintf( _n('%s entry removed permanently.','%s entries removed permanently.', $deleted, 'gwolle-gb'), $deleted ). '</p>';
|
282 |
}
|
283 |
}
|
243 |
|
244 |
/* Construct Message */
|
245 |
if ( $action == 'check' ) {
|
246 |
+
/* translators: %s is the number of entries */
|
247 |
$gwolle_gb_messages .= '<p>' . sprintf( _n('%s entry checked.','%s entries checked.', $entries_handled, 'gwolle-gb'), $entries_handled ). '</p>';
|
248 |
} else if ( $action == 'uncheck' ) {
|
249 |
+
/* translators: %s is the number of entries */
|
250 |
$gwolle_gb_messages .= '<p>' . sprintf( _n('%s entry unchecked.','%s entries unchecked.', $entries_handled, 'gwolle-gb'), $entries_handled ). '</p>';
|
251 |
} else if ( $action == 'spam' ) {
|
252 |
+
/* translators: %s is the number of entries */
|
253 |
$gwolle_gb_messages .= '<p>' . sprintf( _n('%s entry marked as spam and submitted to Akismet as spam (if Akismet was enabled).','%s entries marked as spam and submitted to Akismet as spam (if Akismet was enabled).', $entries_handled, 'gwolle-gb'), $entries_handled ). '</p>';
|
254 |
} else if ( $action == 'no-spam' ) {
|
255 |
+
/* translators: %s is the number of entries */
|
256 |
$gwolle_gb_messages .= '<p>' . sprintf( _n('%s entry marked as not spam and submitted to Akismet as ham (if Akismet was enabled).','%s entries marked as not spam and submitted to Akismet as ham (if Akismet was enabled).', $entries_handled, 'gwolle-gb'), $entries_handled ). '</p>';
|
257 |
} else if ( $action == 'akismet' ) {
|
258 |
if ( $akismet_spam > 0 ) {
|
259 |
+
/* translators: %s is the number of entries */
|
260 |
$gwolle_gb_messages .= '<p>' . sprintf( _n('%s entry considered spam and marked as such.','%s entries considered spam and marked as such.', $akismet_spam, 'gwolle-gb'), $akismet_spam ). '</p>';
|
261 |
}
|
262 |
if ( $akismet_not_spam > 0 ) {
|
263 |
+
/* translators: %s is the number of entries */
|
264 |
$gwolle_gb_messages .= '<p>' . sprintf( _n('%s entry considered not spam and marked as such.','%s entries considered not spam and marked as such.', $akismet_not_spam, 'gwolle-gb'), $akismet_not_spam ). '</p>';
|
265 |
}
|
266 |
if ( $akismet_already_spam > 0 ) {
|
267 |
+
/* translators: %s is the number of entries */
|
268 |
$gwolle_gb_messages .= '<p>' . sprintf( _n('%s entry already considered spam and not changed.','%s entries already considered spam and not changed.', $akismet_already_spam, 'gwolle-gb'), $akismet_already_spam ). '</p>';
|
269 |
}
|
270 |
if ( $akismet_already_not_spam > 0 ) {
|
271 |
+
/* translators: %s is the number of entries */
|
272 |
$gwolle_gb_messages .= '<p>' . sprintf( _n('%s entry already considered not spam and not changed.','%s entries already considered not spam and not changed.', $akismet_already_not_spam, 'gwolle-gb'), $akismet_already_not_spam ). '</p>';
|
273 |
}
|
274 |
} else if ( $action == 'trash' ) {
|
275 |
+
/* translators: %s is the number of entries */
|
276 |
$gwolle_gb_messages .= '<p>' . sprintf( _n('%s entry moved to trash.','%s entries moved to trash.', $entries_handled, 'gwolle-gb'), $entries_handled ). '</p>';
|
277 |
} else if ( $action == 'untrash' ) {
|
278 |
+
/* translators: %s is the number of entries */
|
279 |
$gwolle_gb_messages .= '<p>' . sprintf( _n('%s entry recovered from trash.','%s entries recovered from trash.', $entries_handled, 'gwolle-gb'), $entries_handled ). '</p>';
|
280 |
} else if ( $action == 'remove' ) {
|
281 |
+
/* translators: %s is the number of entries */
|
282 |
$gwolle_gb_messages .= '<p>' . sprintf( _n('%s entry removed permanently.','%s entries removed permanently.', $entries_handled, 'gwolle-gb'), $entries_handled ). '</p>';
|
283 |
}
|
284 |
}
|
289 |
if ( isset($_POST['show']) && in_array($_POST['show'], array('spam', 'trash')) ) {
|
290 |
$delstatus = $_POST['show'];
|
291 |
$deleted = gwolle_gb_del_entries( $delstatus );
|
292 |
+
/* translators: %s is the number of entries */
|
293 |
$gwolle_gb_messages .= '<p>' . sprintf( _n('%s entry removed permanently.','%s entries removed permanently.', $deleted, 'gwolle-gb'), $deleted ). '</p>';
|
294 |
}
|
295 |
}
|
admin/gb-page-export.php
CHANGED
@@ -67,9 +67,9 @@ function gwolle_gb_export_postbox() {
|
|
67 |
} else {
|
68 |
?>
|
69 |
<p>
|
70 |
-
<?php echo sprintf( _n( '%s entry was found and will be exported.', '%s entries were found and will be exported.', $count, 'gwolle-gb' ), $count ); ?>
|
71 |
<br />
|
72 |
-
<?php echo sprintf( _n( 'The download will happen in a CSV file in %s part.', 'The download will happen in a CSV file in %s parts.', $parts, 'gwolle-gb' ), $parts ); ?>
|
73 |
</p>
|
74 |
<p>
|
75 |
<?php esc_html_e('The exporter will preserve the following data per entry:', 'gwolle-gb'); ?>
|
67 |
} else {
|
68 |
?>
|
69 |
<p>
|
70 |
+
<?php /* translators: %s is the number of entries */ echo sprintf( _n( '%s entry was found and will be exported.', '%s entries were found and will be exported.', $count, 'gwolle-gb' ), $count ); ?>
|
71 |
<br />
|
72 |
+
<?php /* translators: %s is the number of file parts */ echo sprintf( _n( 'The download will happen in a CSV file in %s part.', 'The download will happen in a CSV file in %s parts.', $parts, 'gwolle-gb' ), $parts ); ?>
|
73 |
</p>
|
74 |
<p>
|
75 |
<?php esc_html_e('The exporter will preserve the following data per entry:', 'gwolle-gb'); ?>
|
admin/gb-page-gwolle-gb.php
CHANGED
@@ -30,7 +30,7 @@ function gwolle_gb_welcome() {
|
|
30 |
|
31 |
add_meta_box('gwolle_gb_help', esc_html__('Help', 'gwolle-gb'), 'gwolle_gb_overview_help', 'gwolle_gb_welcome', 'right');
|
32 |
add_meta_box('gwolle_gb_support', esc_html__('Support and Translations', 'gwolle-gb'), 'gwolle_gb_overview_support', 'gwolle_gb_welcome', 'right');
|
33 |
-
add_meta_box('gwolle_gb_donate', esc_html__('Review', 'gwolle-gb'), 'gwolle_gb_overview_donate', 'gwolle_gb_welcome', 'right');
|
34 |
|
35 |
?>
|
36 |
<div class="wrap gwolle_gb">
|
@@ -191,6 +191,7 @@ function gwolle_gb_overview_notification() {
|
|
191 |
|
192 |
// Check if function mail() exists. If not, display a hint to the user.
|
193 |
if ( ! function_exists('mail') ) {
|
|
|
194 |
echo '<p class="setting-description">' .
|
195 |
sprintf( esc_html__('Sorry, but the function %smail()%s required to notify you by mail is not enabled in your PHP configuration. You might want to install a WordPress plugin that uses SMTP instead of %smail()%s. Or you can contact your hosting provider.','gwolle-gb'), '<code>', '</code>', '<code>', '</code>' )
|
196 |
. '</p>';
|
@@ -294,6 +295,7 @@ function gwolle_gb_overview_support() {
|
|
294 |
<h3><?php esc_html_e('Support.', 'gwolle-gb'); ?></h3>
|
295 |
<p><?php
|
296 |
$support = '<a href="https://wordpress.org/support/plugin/gwolle-gb" target="_blank">';
|
|
|
297 |
echo sprintf( esc_html__( 'If you have a problem or a feature request, please post it on the %ssupport forum at wordpress.org%s.', 'gwolle-gb' ), $support, '</a>' ); ?>
|
298 |
<?php esc_html_e('I will do my best to respond as soon as possible.', 'gwolle-gb'); ?><br />
|
299 |
<?php esc_html_e('If you send me an email, I will not reply. Please use the support forum.', 'gwolle-gb'); ?>
|
@@ -302,9 +304,11 @@ function gwolle_gb_overview_support() {
|
|
302 |
<h3><?php esc_html_e('Translations.', 'gwolle-gb'); ?></h3>
|
303 |
<p><?php
|
304 |
$link = '<a href="https://translate.wordpress.org/projects/wp-plugins/gwolle-gb" target="_blank">';
|
|
|
305 |
echo sprintf( esc_html__( 'Translations can be added very easily through %sGlotPress%s.', 'gwolle-gb' ), $link, '</a>' ); echo '<br />';
|
306 |
echo sprintf( esc_html__( "You can start translating strings there for your locale. They need to be validated though, so if there's no validator yet, and you want to apply for being validator (PTE), please post it on the %ssupport forum%s.", 'gwolle-gb' ), $support, '</a>' ); echo '<br />';
|
307 |
$make = '<a href="https://make.wordpress.org/polyglots/" target="_blank">';
|
|
|
308 |
echo sprintf( esc_html__( 'I will make a request on %smake/polyglots%s to have you added as validator for this plugin/locale.', 'gwolle-gb' ), $make, '</a>' ); ?>
|
309 |
</p>
|
310 |
<?php
|
@@ -316,6 +320,7 @@ function gwolle_gb_overview_donate() {
|
|
316 |
<h3><?php esc_html_e('Review this plugin.', 'gwolle-gb'); ?></h3>
|
317 |
<p><?php
|
318 |
$review = '<a href="https://wordpress.org/support/view/plugin-reviews/gwolle-gb?rate=5#postform" target="_blank">';
|
|
|
319 |
echo sprintf( esc_html__( 'If this plugin has any value to you, then please leave a review at %sthe plugin page%s at wordpress.org.', 'gwolle-gb' ), $review, '</a>' ); ?>
|
320 |
</p>
|
321 |
<?php
|
30 |
|
31 |
add_meta_box('gwolle_gb_help', esc_html__('Help', 'gwolle-gb'), 'gwolle_gb_overview_help', 'gwolle_gb_welcome', 'right');
|
32 |
add_meta_box('gwolle_gb_support', esc_html__('Support and Translations', 'gwolle-gb'), 'gwolle_gb_overview_support', 'gwolle_gb_welcome', 'right');
|
33 |
+
add_meta_box('gwolle_gb_donate', /* translators: Reviews on the plugin page at WordPress.org */ esc_html__('Review', 'gwolle-gb'), 'gwolle_gb_overview_donate', 'gwolle_gb_welcome', 'right');
|
34 |
|
35 |
?>
|
36 |
<div class="wrap gwolle_gb">
|
191 |
|
192 |
// Check if function mail() exists. If not, display a hint to the user.
|
193 |
if ( ! function_exists('mail') ) {
|
194 |
+
/* translators: %s is for the code element */
|
195 |
echo '<p class="setting-description">' .
|
196 |
sprintf( esc_html__('Sorry, but the function %smail()%s required to notify you by mail is not enabled in your PHP configuration. You might want to install a WordPress plugin that uses SMTP instead of %smail()%s. Or you can contact your hosting provider.','gwolle-gb'), '<code>', '</code>', '<code>', '</code>' )
|
197 |
. '</p>';
|
295 |
<h3><?php esc_html_e('Support.', 'gwolle-gb'); ?></h3>
|
296 |
<p><?php
|
297 |
$support = '<a href="https://wordpress.org/support/plugin/gwolle-gb" target="_blank">';
|
298 |
+
/* translators: %s is a link */
|
299 |
echo sprintf( esc_html__( 'If you have a problem or a feature request, please post it on the %ssupport forum at wordpress.org%s.', 'gwolle-gb' ), $support, '</a>' ); ?>
|
300 |
<?php esc_html_e('I will do my best to respond as soon as possible.', 'gwolle-gb'); ?><br />
|
301 |
<?php esc_html_e('If you send me an email, I will not reply. Please use the support forum.', 'gwolle-gb'); ?>
|
304 |
<h3><?php esc_html_e('Translations.', 'gwolle-gb'); ?></h3>
|
305 |
<p><?php
|
306 |
$link = '<a href="https://translate.wordpress.org/projects/wp-plugins/gwolle-gb" target="_blank">';
|
307 |
+
/* translators: %s is a link */
|
308 |
echo sprintf( esc_html__( 'Translations can be added very easily through %sGlotPress%s.', 'gwolle-gb' ), $link, '</a>' ); echo '<br />';
|
309 |
echo sprintf( esc_html__( "You can start translating strings there for your locale. They need to be validated though, so if there's no validator yet, and you want to apply for being validator (PTE), please post it on the %ssupport forum%s.", 'gwolle-gb' ), $support, '</a>' ); echo '<br />';
|
310 |
$make = '<a href="https://make.wordpress.org/polyglots/" target="_blank">';
|
311 |
+
/* translators: %s is a link */
|
312 |
echo sprintf( esc_html__( 'I will make a request on %smake/polyglots%s to have you added as validator for this plugin/locale.', 'gwolle-gb' ), $make, '</a>' ); ?>
|
313 |
</p>
|
314 |
<?php
|
320 |
<h3><?php esc_html_e('Review this plugin.', 'gwolle-gb'); ?></h3>
|
321 |
<p><?php
|
322 |
$review = '<a href="https://wordpress.org/support/view/plugin-reviews/gwolle-gb?rate=5#postform" target="_blank">';
|
323 |
+
/* translators: %s is a link */
|
324 |
echo sprintf( esc_html__( 'If this plugin has any value to you, then please leave a review at %sthe plugin page%s at wordpress.org.', 'gwolle-gb' ), $review, '</a>' ); ?>
|
325 |
</p>
|
326 |
<?php
|
admin/gb-page-import.php
CHANGED
@@ -101,7 +101,7 @@ function gwolle_gb_import_postbox_dms() {
|
|
101 |
|
102 |
if ( isset($foundTables[0]) && in_array( $wpdb->prefix . 'dmsguestbook', $foundTables[0] ) ) { ?>
|
103 |
<div>
|
104 |
-
<?php echo sprintf( _n('%s entry was found and will be imported.',' %s entries were found and will be imported.', $count, 'gwolle-gb'), $count ); ?>
|
105 |
</div>
|
106 |
<div>
|
107 |
<?php esc_html_e('The importer will preserve the following data per entry:', 'gwolle-gb'); ?>
|
@@ -115,7 +115,7 @@ function gwolle_gb_import_postbox_dms() {
|
|
115 |
<li><?php esc_html_e('"is spam" flag', 'gwolle-gb'); ?></li>
|
116 |
<li><?php esc_html_e('"is checked" flag', 'gwolle-gb'); ?></li>
|
117 |
</ul>
|
118 |
-
<?php echo sprintf( esc_html__('However, data such as HTML formatting is not supported by Gwolle-GB and %swill not%s be imported.', 'gwolle-gb'), '<strong>', '</strong>' ); ?>
|
119 |
<br />
|
120 |
<?php esc_html_e('The importer does not delete any data, so you can go back whenever you want.', 'gwolle-gb'); ?>
|
121 |
</div>
|
@@ -160,7 +160,7 @@ function gwolle_gb_import_postbox_wp() {
|
|
160 |
<li><?php esc_html_e('Message', 'gwolle-gb'); ?></li>
|
161 |
<li><?php esc_html_e('"approved" status', 'gwolle-gb'); ?></li>
|
162 |
</ul>
|
163 |
-
<?php echo sprintf( esc_html__('However, data such as HTML formatting is not supported by Gwolle-GB and %swill not%s be imported.', 'gwolle-gb'), '<strong>', '</strong>' ); ?>
|
164 |
<br />
|
165 |
<?php esc_html_e('Spam comments will not be imported.', 'gwolle-gb'); ?>
|
166 |
<br />
|
@@ -194,6 +194,7 @@ function gwolle_gb_import_postbox_wp() {
|
|
194 |
if ( $num_comments == 0 ) {
|
195 |
continue;
|
196 |
} else {
|
|
|
197 |
$comments = sprintf( _n('%s Comment','%s Comments', $num_comments, 'gwolle-gb'), $num_comments );
|
198 |
}
|
199 |
|
@@ -230,6 +231,7 @@ function gwolle_gb_import_postbox_wp() {
|
|
230 |
if ( $num_comments == 0 ) {
|
231 |
continue;
|
232 |
} else {
|
|
|
233 |
$comments = sprintf( _n('%s Comment', '%s Comments', $num_comments, 'gwolle-gb'), $num_comments );
|
234 |
}
|
235 |
|
@@ -362,9 +364,11 @@ function gwolle_gb_page_import_post() {
|
|
362 |
gwolle_gb_add_message( '<p>' . esc_html__("I'm sorry, but I wasn't able to import entries from DMSGuestbook successfully.", 'gwolle-gb') . '</p>', true, false);
|
363 |
} else if ( $saved == 1 || $saved > 1 ) {
|
364 |
do_action( 'gwolle_gb_save_entry_admin' );
|
|
|
365 |
gwolle_gb_add_message( '<p>' . sprintf( _n('%s entry imported successfully from DMSGuestbook.','%s entries imported successfully from DMSGuestbook.', $saved, 'gwolle-gb'), $saved ) . '</p>', false, false);
|
366 |
}
|
367 |
} else {
|
|
|
368 |
gwolle_gb_add_message( '<p>' . sprintf( esc_html__("%sNothing to import.%s The guestbook you've chosen does not contain any entries.", 'gwolle-gb'), '<strong>', '</strong>' ) . '</p>', true, false);
|
369 |
}
|
370 |
} else {
|
@@ -440,9 +444,11 @@ function gwolle_gb_page_import_post() {
|
|
440 |
gwolle_gb_add_message( '<p>' . esc_html__("I'm sorry, but I wasn't able to import comments from that page successfully.", 'gwolle-gb') . '</p>', true, false);
|
441 |
} else if ( $saved == 1 || $saved > 1 ) {
|
442 |
do_action( 'gwolle_gb_save_entry_admin' );
|
|
|
443 |
gwolle_gb_add_message( '<p>' . sprintf( _n('%s entry imported successfully from WordPress comments.','%s entries imported successfully from WordPress comments.', $saved, 'gwolle-gb'), $saved ) . '</p>', false, false);
|
444 |
}
|
445 |
} else {
|
|
|
446 |
gwolle_gb_add_message( '<p>' . sprintf( esc_html__('%sNothing to import.%s There seem to be no comments on this page, post or at all.', 'gwolle-gb'), '<strong>', '</strong>' ) . '</p>', true, false);
|
447 |
}
|
448 |
} else {
|
@@ -601,6 +607,7 @@ function gwolle_gb_page_import_post() {
|
|
601 |
gwolle_gb_add_message( '<p>' . esc_html__("I'm sorry, but I wasn't able to import entries from the CSV file.", 'gwolle-gb') . '</p>', true, false);
|
602 |
} else if ( $row == 1 || $row > 1 ) {
|
603 |
do_action( 'gwolle_gb_save_entry_admin' );
|
|
|
604 |
gwolle_gb_add_message( '<p>' . sprintf( _n('%s entry imported successfully from the CSV file.','%s entries imported successfully from the CSV file.', $row, 'gwolle-gb'), $row ) . '</p>', false, false);
|
605 |
}
|
606 |
|
101 |
|
102 |
if ( isset($foundTables[0]) && in_array( $wpdb->prefix . 'dmsguestbook', $foundTables[0] ) ) { ?>
|
103 |
<div>
|
104 |
+
<?php /* translators: %s is the number of entries */ echo sprintf( _n('%s entry was found and will be imported.',' %s entries were found and will be imported.', $count, 'gwolle-gb'), $count ); ?>
|
105 |
</div>
|
106 |
<div>
|
107 |
<?php esc_html_e('The importer will preserve the following data per entry:', 'gwolle-gb'); ?>
|
115 |
<li><?php esc_html_e('"is spam" flag', 'gwolle-gb'); ?></li>
|
116 |
<li><?php esc_html_e('"is checked" flag', 'gwolle-gb'); ?></li>
|
117 |
</ul>
|
118 |
+
<?php /* translators: %s is for bold text */ echo sprintf( esc_html__('However, data such as HTML formatting is not supported by Gwolle-GB and %swill not%s be imported.', 'gwolle-gb'), '<strong>', '</strong>' ); ?>
|
119 |
<br />
|
120 |
<?php esc_html_e('The importer does not delete any data, so you can go back whenever you want.', 'gwolle-gb'); ?>
|
121 |
</div>
|
160 |
<li><?php esc_html_e('Message', 'gwolle-gb'); ?></li>
|
161 |
<li><?php esc_html_e('"approved" status', 'gwolle-gb'); ?></li>
|
162 |
</ul>
|
163 |
+
<?php /* translators: %s is for bold text */ echo sprintf( esc_html__('However, data such as HTML formatting is not supported by Gwolle-GB and %swill not%s be imported.', 'gwolle-gb'), '<strong>', '</strong>' ); ?>
|
164 |
<br />
|
165 |
<?php esc_html_e('Spam comments will not be imported.', 'gwolle-gb'); ?>
|
166 |
<br />
|
194 |
if ( $num_comments == 0 ) {
|
195 |
continue;
|
196 |
} else {
|
197 |
+
/* translators: %s is the number of comments */
|
198 |
$comments = sprintf( _n('%s Comment','%s Comments', $num_comments, 'gwolle-gb'), $num_comments );
|
199 |
}
|
200 |
|
231 |
if ( $num_comments == 0 ) {
|
232 |
continue;
|
233 |
} else {
|
234 |
+
/* translators: %s is the number of comments */
|
235 |
$comments = sprintf( _n('%s Comment', '%s Comments', $num_comments, 'gwolle-gb'), $num_comments );
|
236 |
}
|
237 |
|
364 |
gwolle_gb_add_message( '<p>' . esc_html__("I'm sorry, but I wasn't able to import entries from DMSGuestbook successfully.", 'gwolle-gb') . '</p>', true, false);
|
365 |
} else if ( $saved == 1 || $saved > 1 ) {
|
366 |
do_action( 'gwolle_gb_save_entry_admin' );
|
367 |
+
/* translators: %s is the number of entries */
|
368 |
gwolle_gb_add_message( '<p>' . sprintf( _n('%s entry imported successfully from DMSGuestbook.','%s entries imported successfully from DMSGuestbook.', $saved, 'gwolle-gb'), $saved ) . '</p>', false, false);
|
369 |
}
|
370 |
} else {
|
371 |
+
/* translators: %s is for bold text */
|
372 |
gwolle_gb_add_message( '<p>' . sprintf( esc_html__("%sNothing to import.%s The guestbook you've chosen does not contain any entries.", 'gwolle-gb'), '<strong>', '</strong>' ) . '</p>', true, false);
|
373 |
}
|
374 |
} else {
|
444 |
gwolle_gb_add_message( '<p>' . esc_html__("I'm sorry, but I wasn't able to import comments from that page successfully.", 'gwolle-gb') . '</p>', true, false);
|
445 |
} else if ( $saved == 1 || $saved > 1 ) {
|
446 |
do_action( 'gwolle_gb_save_entry_admin' );
|
447 |
+
/* translators: %s is the number of entries */
|
448 |
gwolle_gb_add_message( '<p>' . sprintf( _n('%s entry imported successfully from WordPress comments.','%s entries imported successfully from WordPress comments.', $saved, 'gwolle-gb'), $saved ) . '</p>', false, false);
|
449 |
}
|
450 |
} else {
|
451 |
+
/* translators: %s is for bold text */
|
452 |
gwolle_gb_add_message( '<p>' . sprintf( esc_html__('%sNothing to import.%s There seem to be no comments on this page, post or at all.', 'gwolle-gb'), '<strong>', '</strong>' ) . '</p>', true, false);
|
453 |
}
|
454 |
} else {
|
607 |
gwolle_gb_add_message( '<p>' . esc_html__("I'm sorry, but I wasn't able to import entries from the CSV file.", 'gwolle-gb') . '</p>', true, false);
|
608 |
} else if ( $row == 1 || $row > 1 ) {
|
609 |
do_action( 'gwolle_gb_save_entry_admin' );
|
610 |
+
/* translators: %s is the number of entries */
|
611 |
gwolle_gb_add_message( '<p>' . sprintf( _n('%s entry imported successfully from the CSV file.','%s entries imported successfully from the CSV file.', $row, 'gwolle-gb'), $row ) . '</p>', false, false);
|
612 |
}
|
613 |
|
admin/tabs/gb-antispamtab.php
CHANGED
@@ -98,6 +98,7 @@ function gwolle_gb_page_settingstab_antispam() {
|
|
98 |
esc_html_e('This will add a Nonce to the form. It is a way to check for a human user. If it does not validate, the entry will be marked as spam.', 'gwolle-gb');
|
99 |
echo '<br />';
|
100 |
$link_wp = '<a href="https://codex.wordpress.org/Wordpress_Nonce_Implementation" target="_blank">';
|
|
|
101 |
echo sprintf( esc_html__( 'If you want to know more about what a Nonce is and how it works, please read about it on the %sWordPress Codex%s.', 'gwolle-gb' ), $link_wp, '</a>' );
|
102 |
echo '<br />';
|
103 |
esc_html_e('If your website uses caching, it is possible that you get false-positives in your spamfolder. If this is the case, you could either disable the Nonce, or disable caching for the guestbook page.', 'gwolle-gb');
|
@@ -121,6 +122,7 @@ function gwolle_gb_page_settingstab_antispam() {
|
|
121 |
<?php
|
122 |
esc_html_e('This will scan entries for long words, which can be considered abusive. If there is a word with long text found, it will be automatically set to unchecked and you will need to moderate it manually.', 'gwolle-gb');
|
123 |
echo '<br />';
|
|
|
124 |
echo sprintf( esc_html__( 'The content has a limit set to %s characters, the author name to %s characters.', 'gwolle-gb' ), '100', '60' );
|
125 |
?>
|
126 |
</span>
|
@@ -147,6 +149,7 @@ function gwolle_gb_page_settingstab_antispam() {
|
|
147 |
esc_html_e("Akismet helps you to fight spam. It's free and easy to install. Download and install it today to stop spam in your guestbook.", 'gwolle-gb');
|
148 |
} elseif ( ! $wordpress_api_key) {
|
149 |
// No WordPress API key is defined and set in the database.
|
|
|
150 |
echo sprintf( esc_html__("Sorry, wasn't able to locate your %sWordPress API key%s. You can enter it at the %sAkismet configuration page%s.", 'gwolle-gb'), '<strong>', '</strong>', '<a href="options-general.php?page=akismet-key-config">', '</a>' );
|
151 |
} else {
|
152 |
// Akismet is installed and activated and a WordPress API key exists (we just assume it is valid).
|
@@ -182,6 +185,7 @@ function gwolle_gb_page_settingstab_antispam() {
|
|
182 |
_e('Stop Forum Spam is an external service that acts as a spamfilter for guestbook entries.', 'gwolle-gb') . '<br />';
|
183 |
echo '<br />';
|
184 |
$link_wp = '<a href="https://www.stopforumspam.com" target="_blank">';
|
|
|
185 |
echo sprintf( esc_html__( 'If you want to know more about Stop Forum Spam and how it works, please read about it on their %swebsite%s.', 'gwolle-gb' ), $link_wp, '</a>' );
|
186 |
?>
|
187 |
</span>
|
@@ -214,6 +218,7 @@ function gwolle_gb_page_settingstab_antispam() {
|
|
214 |
<br /><br />
|
215 |
<?php
|
216 |
$link_wp = '<a href="https://wordpress.org/plugins/really-simple-captcha/" title="' . esc_attr__('Really Simple CAPTCHA plugin at wordpress.org', 'gwolle-gb') . '" target="_blank">';
|
|
|
217 |
echo sprintf( esc_html__('For the CAPTCHA you need the plugin %sReally Simple CAPTCHA%s installed and activated.', 'gwolle-gb'), $link_wp, '</a>' );
|
218 |
if ( class_exists('ReallySimpleCaptcha') ) {
|
219 |
echo '<br />';
|
98 |
esc_html_e('This will add a Nonce to the form. It is a way to check for a human user. If it does not validate, the entry will be marked as spam.', 'gwolle-gb');
|
99 |
echo '<br />';
|
100 |
$link_wp = '<a href="https://codex.wordpress.org/Wordpress_Nonce_Implementation" target="_blank">';
|
101 |
+
/* translators: %s is a link */
|
102 |
echo sprintf( esc_html__( 'If you want to know more about what a Nonce is and how it works, please read about it on the %sWordPress Codex%s.', 'gwolle-gb' ), $link_wp, '</a>' );
|
103 |
echo '<br />';
|
104 |
esc_html_e('If your website uses caching, it is possible that you get false-positives in your spamfolder. If this is the case, you could either disable the Nonce, or disable caching for the guestbook page.', 'gwolle-gb');
|
122 |
<?php
|
123 |
esc_html_e('This will scan entries for long words, which can be considered abusive. If there is a word with long text found, it will be automatically set to unchecked and you will need to moderate it manually.', 'gwolle-gb');
|
124 |
echo '<br />';
|
125 |
+
/* translators: %s is the number of characters */
|
126 |
echo sprintf( esc_html__( 'The content has a limit set to %s characters, the author name to %s characters.', 'gwolle-gb' ), '100', '60' );
|
127 |
?>
|
128 |
</span>
|
149 |
esc_html_e("Akismet helps you to fight spam. It's free and easy to install. Download and install it today to stop spam in your guestbook.", 'gwolle-gb');
|
150 |
} elseif ( ! $wordpress_api_key) {
|
151 |
// No WordPress API key is defined and set in the database.
|
152 |
+
/* translators: First 2 %s are a strong element. Second %s is for a link. */
|
153 |
echo sprintf( esc_html__("Sorry, wasn't able to locate your %sWordPress API key%s. You can enter it at the %sAkismet configuration page%s.", 'gwolle-gb'), '<strong>', '</strong>', '<a href="options-general.php?page=akismet-key-config">', '</a>' );
|
154 |
} else {
|
155 |
// Akismet is installed and activated and a WordPress API key exists (we just assume it is valid).
|
185 |
_e('Stop Forum Spam is an external service that acts as a spamfilter for guestbook entries.', 'gwolle-gb') . '<br />';
|
186 |
echo '<br />';
|
187 |
$link_wp = '<a href="https://www.stopforumspam.com" target="_blank">';
|
188 |
+
/* translators: %s is a link */
|
189 |
echo sprintf( esc_html__( 'If you want to know more about Stop Forum Spam and how it works, please read about it on their %swebsite%s.', 'gwolle-gb' ), $link_wp, '</a>' );
|
190 |
?>
|
191 |
</span>
|
218 |
<br /><br />
|
219 |
<?php
|
220 |
$link_wp = '<a href="https://wordpress.org/plugins/really-simple-captcha/" title="' . esc_attr__('Really Simple CAPTCHA plugin at wordpress.org', 'gwolle-gb') . '" target="_blank">';
|
221 |
+
/* translators: %s is a link */
|
222 |
echo sprintf( esc_html__('For the CAPTCHA you need the plugin %sReally Simple CAPTCHA%s installed and activated.', 'gwolle-gb'), $link_wp, '</a>' );
|
223 |
if ( class_exists('ReallySimpleCaptcha') ) {
|
224 |
echo '<br />';
|
admin/tabs/gb-readingtab.php
CHANGED
@@ -105,6 +105,7 @@ function gwolle_gb_page_settingstab_reading() {
|
|
105 |
?> />
|
106 |
<label for="showSmilies"><?php esc_html_e('Display smileys as images.', 'gwolle-gb'); ?></label>
|
107 |
<br />
|
|
|
108 |
<span class="setting-description"><?php echo sprintf( esc_html__("Replaces smileys in entries like :) with their image %s. Uses the WP smiley replacer, so check on that one if you'd like to add new/more smileys.", 'gwolle-gb'), convert_smilies(':)')); ?></span>
|
109 |
</td>
|
110 |
</tr>
|
105 |
?> />
|
106 |
<label for="showSmilies"><?php esc_html_e('Display smileys as images.', 'gwolle-gb'); ?></label>
|
107 |
<br />
|
108 |
+
<?php /* translators: %s is a smiley image */ ?>
|
109 |
<span class="setting-description"><?php echo sprintf( esc_html__("Replaces smileys in entries like :) with their image %s. Uses the WP smiley replacer, so check on that one if you'd like to add new/more smileys.", 'gwolle-gb'), convert_smilies(':)')); ?></span>
|
110 |
</td>
|
111 |
</tr>
|
gwolle-gb.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Gwolle Guestbook
|
4 |
Plugin URI: http://zenoweb.nl
|
5 |
Description: Gwolle Guestbook is not just another guestbook for WordPress. The goal is to provide an easy and slim way to integrate a guestbook into your WordPress powered site. Don't use your 'comment' section the wrong way - install Gwolle Guestbook and have a real guestbook.
|
6 |
-
Version: 2.3.
|
7 |
Author: Marcel Pol
|
8 |
Author URI: http://zenoweb.nl
|
9 |
License: GPLv2 or later
|
@@ -13,7 +13,7 @@ Domain Path: /lang/
|
|
13 |
|
14 |
/*
|
15 |
Copyright 2009 - 2010 Wolfgang Timme (email: gwolle@wolfgangtimme.de)
|
16 |
-
Copyright 2014 -
|
17 |
|
18 |
This program is free software; you can redistribute it and/or modify
|
19 |
it under the terms of the GNU General Public License as published by
|
@@ -32,7 +32,7 @@ Domain Path: /lang/
|
|
32 |
|
33 |
|
34 |
// Plugin Version
|
35 |
-
define('GWOLLE_GB_VER', '2.3.
|
36 |
|
37 |
|
38 |
/*
|
3 |
Plugin Name: Gwolle Guestbook
|
4 |
Plugin URI: http://zenoweb.nl
|
5 |
Description: Gwolle Guestbook is not just another guestbook for WordPress. The goal is to provide an easy and slim way to integrate a guestbook into your WordPress powered site. Don't use your 'comment' section the wrong way - install Gwolle Guestbook and have a real guestbook.
|
6 |
+
Version: 2.3.8
|
7 |
Author: Marcel Pol
|
8 |
Author URI: http://zenoweb.nl
|
9 |
License: GPLv2 or later
|
13 |
|
14 |
/*
|
15 |
Copyright 2009 - 2010 Wolfgang Timme (email: gwolle@wolfgangtimme.de)
|
16 |
+
Copyright 2014 - 2018 Marcel Pol (email: marcel@timelord.nl)
|
17 |
|
18 |
This program is free software; you can redistribute it and/or modify
|
19 |
it under the terms of the GNU General Public License as published by
|
32 |
|
33 |
|
34 |
// Plugin Version
|
35 |
+
define('GWOLLE_GB_VER', '2.3.8');
|
36 |
|
37 |
|
38 |
/*
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Gwolle, mpol
|
|
3 |
Tags: guestbook, guest book, livre d'or, Gästebuch, libro de visitas
|
4 |
Requires at least: 3.7
|
5 |
Tested up to: 4.9
|
6 |
-
Stable tag: 2.3.
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Gwolle Guestbook is the WordPress guestbook you've just been looking for. Beautiful and easy.
|
@@ -61,9 +61,8 @@ If you send me an email, I will not reply. Please use the support forum.
|
|
61 |
= Translations =
|
62 |
|
63 |
Translations can be added very easily through [GlotPress](https://translate.wordpress.org/projects/wp-plugins/gwolle-gb).
|
64 |
-
You can start translating strings there for your locale. They need to be validated though, so if there's no validator yet,
|
65 |
-
|
66 |
-
have you added as validator for this plugin/locale.
|
67 |
|
68 |
= Demo =
|
69 |
|
@@ -396,6 +395,11 @@ But if you don't use standard comments, you can just as easily use the comment s
|
|
396 |
|
397 |
== Changelog ==
|
398 |
|
|
|
|
|
|
|
|
|
|
|
399 |
= 2.3.7 =
|
400 |
* 2017-11-29
|
401 |
* Rename header field in settingsform for compatibility.
|
3 |
Tags: guestbook, guest book, livre d'or, Gästebuch, libro de visitas
|
4 |
Requires at least: 3.7
|
5 |
Tested up to: 4.9
|
6 |
+
Stable tag: 2.3.8
|
7 |
License: GPLv2 or later
|
8 |
|
9 |
Gwolle Guestbook is the WordPress guestbook you've just been looking for. Beautiful and easy.
|
61 |
= Translations =
|
62 |
|
63 |
Translations can be added very easily through [GlotPress](https://translate.wordpress.org/projects/wp-plugins/gwolle-gb).
|
64 |
+
You can start translating strings there for your locale. They need to be validated though, so if there's no validator yet, and you want to apply for being validator (PTE), please post it on the support forum.
|
65 |
+
I will make a request on make/polyglots to have you added as validator for this plugin/locale.
|
|
|
66 |
|
67 |
= Demo =
|
68 |
|
395 |
|
396 |
== Changelog ==
|
397 |
|
398 |
+
= 2.3.8 =
|
399 |
+
* 2018-01-18
|
400 |
+
* Editor.php: Heading for City should really be City.
|
401 |
+
* Improve and add translator comments.
|
402 |
+
|
403 |
= 2.3.7 =
|
404 |
* 2017-11-29
|
405 |
* Rename header field in settingsform for compatibility.
|