From c7ce705b3d4b0c82944479de2ab70c1e208ef076 Mon Sep 17 00:00:00 2001 From: Erick Hitter <git-contrib@ethitter.com> Date: Sat, 25 Jun 2022 15:09:00 -0700 Subject: [PATCH] Fix translation support --- Gruntfile.js | 2 +- README.md | 8 ++- languages/view-all-posts-pages.pot | 50 +++++++++--------- phpcs.xml | 2 +- readme.txt | 8 ++- view-all-posts-pages.php | 81 ++++++++++++++++++------------ 6 files changed, 89 insertions(+), 62 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 51fa44b..9dc8d28 100755 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -9,7 +9,7 @@ module.exports = function( grunt ) { addtextdomain: { options: { - textdomain: 'view_all_posts_pages', + textdomain: 'view-all-posts-pages', }, update_all_domains: { options: { diff --git a/README.md b/README.md index 272fe19..b91f821 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ **Tags:** view all, pages, paged, paged post, multipage, single view, single page, wp_link_pages, nextpage, next page, quicktag **Requires at least:** 3.2.1 **Tested up to:** 6.0 -**Stable tag:** 0.9.3 +**Stable tag:** 0.9.4 **License:** GPLv2 or later **License URI:** http://www.gnu.org/licenses/gpl-2.0.html @@ -45,6 +45,9 @@ This plugin is known to conflict with certain plugins, many pertaining to SEO an ## Changelog ## +### 0.9.4 ### +* Fix translation support. + ### 0.9.3 ### * Compatible with WordPress 5.2 @@ -103,6 +106,9 @@ This plugin is known to conflict with certain plugins, many pertaining to SEO an ## Upgrade Notice ## +### 0.9.4 ### +Fixes translation support. + ### 0.9.3 ### Ensures compatibility with WordPress 5.2. diff --git a/languages/view-all-posts-pages.pot b/languages/view-all-posts-pages.pot index 703e19e..e6d1ff3 100644 --- a/languages/view-all-posts-pages.pot +++ b/languages/view-all-posts-pages.pot @@ -2,10 +2,10 @@ # This file is distributed under the same license as the View All Posts Pages package. msgid "" msgstr "" -"Project-Id-Version: View All Posts Pages 0.9.3\n" +"Project-Id-Version: View All Posts Pages 0.9.4\n" "Report-Msgid-Bugs-To: " "https://wordpress.org/support/plugin/view-all-posts-pages\n" -"POT-Creation-Date: 2022-06-11 18:27:43+00:00\n" +"POT-Creation-Date: 2022-06-25 22:08:04+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -25,103 +25,103 @@ msgstr "" "X-Textdomain-Support: yes\n" "X-Generator: grunt-wp-i18n 1.0.3\n" -#: view-all-posts-pages.php:179 view-all-posts-pages.php:186 +#: view-all-posts-pages.php:194 view-all-posts-pages.php:201 msgid "View All" msgstr "" -#: view-all-posts-pages.php:467 view-all-posts-pages.php:498 +#: view-all-posts-pages.php:482 view-all-posts-pages.php:513 #. translators: 1: Plugin name. #. translators: 1: WordPress function name. msgid "%s Options" msgstr "" -#: view-all-posts-pages.php:502 +#: view-all-posts-pages.php:517 msgid "" "A \"view all\" link can be appended to WordPress' standard page navigation " "using the options below." msgstr "" -#: view-all-posts-pages.php:506 +#: view-all-posts-pages.php:521 msgid "Automatically append link to post's page navigation?" msgstr "" -#: view-all-posts-pages.php:508 view-all-posts-pages.php:551 +#: view-all-posts-pages.php:523 view-all-posts-pages.php:566 msgid "Yes" msgstr "" -#: view-all-posts-pages.php:509 view-all-posts-pages.php:552 +#: view-all-posts-pages.php:524 view-all-posts-pages.php:567 msgid "No" msgstr "" -#: view-all-posts-pages.php:513 view-all-posts-pages.php:579 +#: view-all-posts-pages.php:528 view-all-posts-pages.php:594 msgid "Link text:" msgstr "" -#: view-all-posts-pages.php:519 view-all-posts-pages.php:585 +#: view-all-posts-pages.php:534 view-all-posts-pages.php:600 msgid "Link's CSS class(es):" msgstr "" -#: view-all-posts-pages.php:523 view-all-posts-pages.php:589 +#: view-all-posts-pages.php:538 view-all-posts-pages.php:604 msgid "" "Be aware that Internet Explorer will only interpret the first two CSS " "classes." msgstr "" -#: view-all-posts-pages.php:527 view-all-posts-pages.php:564 +#: view-all-posts-pages.php:542 view-all-posts-pages.php:579 msgid "Display automatically on:" msgstr "" -#: view-all-posts-pages.php:543 +#: view-all-posts-pages.php:558 msgid "Standalone Link Options" msgstr "" -#: view-all-posts-pages.php:545 +#: view-all-posts-pages.php:560 msgid "" "In addition to appending the \"view all\" link to WordPress' standard " "navigation, link(s) can be added above and below post content." msgstr "" -#: view-all-posts-pages.php:549 +#: view-all-posts-pages.php:564 msgid "Automatically add links based on settings below?" msgstr "" -#: view-all-posts-pages.php:556 +#: view-all-posts-pages.php:571 msgid "Automatically place link:" msgstr "" -#: view-all-posts-pages.php:558 +#: view-all-posts-pages.php:573 msgid "Above content" msgstr "" -#: view-all-posts-pages.php:559 +#: view-all-posts-pages.php:574 msgid "Below content" msgstr "" -#: view-all-posts-pages.php:560 +#: view-all-posts-pages.php:575 msgid "Above and below content" msgstr "" -#: view-all-posts-pages.php:593 +#: view-all-posts-pages.php:608 msgid "Link's priority:" msgstr "" -#: view-all-posts-pages.php:597 +#: view-all-posts-pages.php:612 msgid "" "Priority determines when the link is added to a post's content. You can use " "the above setting to modulate the link's placement." msgstr "" -#: view-all-posts-pages.php:598 +#: view-all-posts-pages.php:613 msgid "" "The default value is <strong>10</strong>. Lower values mean the link will " "be added earlier, while higher values will add the link later." msgstr "" -#: view-all-posts-pages.php:742 +#: view-all-posts-pages.php:757 msgid "View All Post's Pages" msgstr "" -#: view-all-posts-pages.php:747 +#: view-all-posts-pages.php:762 #. translators: 1: Permalinks settings page URL. msgid "" "You must refresh your site's permalinks before <em>View All Post's " @@ -130,7 +130,7 @@ msgid "" "Changes</em></strong> button at the bottom of the screen." msgstr "" -#: view-all-posts-pages.php:759 +#: view-all-posts-pages.php:774 #. translators: 1: URL to dismiss admin notice. msgid "When finished, click <a href=\"%s\">here</a> to hide this message." msgstr "" diff --git a/phpcs.xml b/phpcs.xml index 489f8c5..5023d82 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -39,7 +39,7 @@ <rule ref="WordPress.WP.I18n"> <properties> <!-- Value: replace the text domain used. --> - <property name="text_domain" type="array" value="view_all_posts_pages"/> + <property name="text_domain" type="array" value="view-all-posts-pages"/> </properties> </rule> <rule ref="WordPress.WhiteSpace.ControlStructureSpacing"> diff --git a/readme.txt b/readme.txt index 9322049..f70bcb8 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: http://www.thinkoomph.com/plugins-modules/view-all-posts-pages/ Tags: view all, pages, paged, paged post, multipage, single view, single page, wp_link_pages, nextpage, next page, quicktag Requires at least: 3.2.1 Tested up to: 6.0 -Stable tag: 0.9.3 +Stable tag: 0.9.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -45,6 +45,9 @@ This plugin is known to conflict with certain plugins, many pertaining to SEO an == Changelog == += 0.9.4 = +* Fix translation support. + = 0.9.3 = * Compatible with WordPress 5.2 @@ -103,6 +106,9 @@ This plugin is known to conflict with certain plugins, many pertaining to SEO an == Upgrade Notice == += 0.9.4 = +Fixes translation support. + = 0.9.3 = Ensures compatibility with WordPress 5.2. diff --git a/view-all-posts-pages.php b/view-all-posts-pages.php index e7386e2..970274c 100755 --- a/view-all-posts-pages.php +++ b/view-all-posts-pages.php @@ -7,9 +7,9 @@ * Description: Provides a "view all" (single page) option for posts, pages, and custom post types paged using WordPress' <a href="http://codex.wordpress.org/Write_Post_SubPanel#Quicktags" target="_blank"><code><!--nextpage--></code> Quicktag</a> (multipage posts). * Author: Erick Hitter & Oomph, Inc. * Author URI: http://www.oomphinc.com/ - * Text Domain: view_all_posts_pages + * Text Domain: view-all-posts-pages * Domain Path: /languages - * Version: 0.9.3 + * Version: 0.9.4 * * @package View_All_Posts_Pages * @@ -104,6 +104,8 @@ class view_all_posts_pages { // phpcs:ignore PEAR.NamingConventions.ValidClassNa private function setup() { register_deactivation_hook( __FILE__, array( $this, 'deactivation_hook' ) ); + add_action( 'plugins_loaded', array( $this, 'load_textdomain' ) ); + add_action( 'admin_init', array( $this, 'action_admin_init' ) ); add_action( 'admin_menu', array( $this, 'action_admin_menu' ) ); @@ -127,6 +129,19 @@ class view_all_posts_pages { // phpcs:ignore PEAR.NamingConventions.ValidClassNa delete_option( $this->notice_key ); } + /** + * Load plugin translations. + * + * @return void + */ + public function load_textdomain() { + load_plugin_textdomain( + 'view-all-posts-pages', + false, + dirname( plugin_basename( __FILE__ ) ) . '/languages/' + ); + } + /** * Register plugin option and disable rewrite rule flush warning. * @@ -176,14 +191,14 @@ class view_all_posts_pages { // phpcs:ignore PEAR.NamingConventions.ValidClassNa // Populate default settings, with translation support. $this->settings_defaults = array( 'wlp' => true, - 'wlp_text' => __( 'View All', 'view_all_posts_pages' ), + 'wlp_text' => __( 'View All', 'view-all-posts-pages' ), 'wlp_class' => 'vapp', 'wlp_post_types' => array( 'post', ), 'link' => false, 'link_position' => 'below', - 'link_text' => __( 'View All', 'view_all_posts_pages' ), + 'link_text' => __( 'View All', 'view-all-posts-pages' ), 'link_class' => 'vapp', 'link_post_types' => array( 'post', @@ -464,7 +479,7 @@ class view_all_posts_pages { // phpcs:ignore PEAR.NamingConventions.ValidClassNa */ public function action_admin_menu() { /* translators: 1: Plugin name. */ - add_options_page( sprintf( __( '%s Options', 'view_all_posts_pages' ), "View All Post's Pages" ), "View All Post's Pages", 'manage_options', $this->ns, array( $this, 'admin_options' ) ); + add_options_page( sprintf( __( '%s Options', 'view-all-posts-pages' ), "View All Post's Pages" ), "View All Post's Pages", 'manage_options', $this->ns, array( $this, 'admin_options' ) ); } /** @@ -495,36 +510,36 @@ class view_all_posts_pages { // phpcs:ignore PEAR.NamingConventions.ValidClassNa <h3> <?php /* translators: 1: WordPress function name. */ - printf( wp_kses_post( __( '%s Options', 'view_all_posts_pages' ) ), '<em>wp_link_pages</em>' ); + printf( wp_kses_post( __( '%s Options', 'view-all-posts-pages' ) ), '<em>wp_link_pages</em>' ); ?> </h3> - <p class="description"><?php esc_html_e( 'A "view all" link can be appended to WordPress\' standard page navigation using the options below.', 'view_all_posts_pages' ); ?></p> + <p class="description"><?php esc_html_e( 'A "view all" link can be appended to WordPress\' standard page navigation using the options below.', 'view-all-posts-pages' ); ?></p> <table class="form-table"> <tr> - <th scope="row"><?php esc_html_e( 'Automatically append link to post\'s page navigation?', 'view_all_posts_pages' ); ?></th> + <th scope="row"><?php esc_html_e( 'Automatically append link to post\'s page navigation?', 'view-all-posts-pages' ); ?></th> <td> - <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[wlp]" id="wlp-true" value="1"<?php checked( $options['wlp'], true, true ); ?> /> <label for="wlp-true"><?php esc_html_e( 'Yes', 'view_all_posts_pages' ); ?></label><br /> - <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[wlp]" id="wlp-false" value="0"<?php checked( $options['wlp'], false, true ); ?> /> <label for="wlp-false"><?php esc_html_e( 'No', 'view_all_posts_pages' ); ?></label> + <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[wlp]" id="wlp-true" value="1"<?php checked( $options['wlp'], true, true ); ?> /> <label for="wlp-true"><?php esc_html_e( 'Yes', 'view-all-posts-pages' ); ?></label><br /> + <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[wlp]" id="wlp-false" value="0"<?php checked( $options['wlp'], false, true ); ?> /> <label for="wlp-false"><?php esc_html_e( 'No', 'view-all-posts-pages' ); ?></label> </td> </tr> <tr> - <th scope="row"><label for="wlp_text"><?php esc_html_e( 'Link text:', 'view_all_posts_pages' ); ?></label></th> + <th scope="row"><label for="wlp_text"><?php esc_html_e( 'Link text:', 'view-all-posts-pages' ); ?></label></th> <td> <input type="text" name="<?php echo esc_attr( $this->settings_key ); ?>[wlp_text]" id="wlp_text" value="<?php echo esc_attr( $options['wlp_text'] ); ?>" class="regular-text" /> </td> </tr> <tr> - <th scope="row"><label for="wlp_class"><?php esc_html_e( 'Link\'s CSS class(es):', 'view_all_posts_pages' ); ?></label></th> + <th scope="row"><label for="wlp_class"><?php esc_html_e( 'Link\'s CSS class(es):', 'view-all-posts-pages' ); ?></label></th> <td> <input type="text" name="<?php echo esc_attr( $this->settings_key ); ?>[wlp_class]" id="wlp_class" value="<?php echo esc_attr( $options['wlp_class'] ); ?>" class="regular-text" /> - <p class="description"><?php esc_html_e( 'Be aware that Internet Explorer will only interpret the first two CSS classes.', 'view_all_posts_pages' ); ?></p> + <p class="description"><?php esc_html_e( 'Be aware that Internet Explorer will only interpret the first two CSS classes.', 'view-all-posts-pages' ); ?></p> </td> </tr> <tr> - <th scope="row"><?php esc_html_e( 'Display automatically on:', 'view_all_posts_pages' ); ?></th> + <th scope="row"><?php esc_html_e( 'Display automatically on:', 'view-all-posts-pages' ); ?></th> <td> <?php foreach ( $post_types as $post_type ) : ?> <input type="checkbox" name="<?php echo esc_attr( $this->settings_key ); ?>[wlp_post_types][]" id="wlp-pt-<?php echo esc_attr( $post_type->name ); ?>" value="<?php echo esc_attr( $post_type->name ); ?>" @@ -540,28 +555,28 @@ class view_all_posts_pages { // phpcs:ignore PEAR.NamingConventions.ValidClassNa </tr> </table> - <h3><?php esc_html_e( 'Standalone Link Options', 'view_all_posts_pages' ); ?></h3> + <h3><?php esc_html_e( 'Standalone Link Options', 'view-all-posts-pages' ); ?></h3> - <p class="description"><?php esc_html_e( 'In addition to appending the "view all" link to WordPress\' standard navigation, link(s) can be added above and below post content.', 'view_all_posts_pages' ); ?></p> + <p class="description"><?php esc_html_e( 'In addition to appending the "view all" link to WordPress\' standard navigation, link(s) can be added above and below post content.', 'view-all-posts-pages' ); ?></p> <table class="form-table"> <tr> - <th scope="row"><?php esc_html_e( 'Automatically add links based on settings below?', 'view_all_posts_pages' ); ?></th> + <th scope="row"><?php esc_html_e( 'Automatically add links based on settings below?', 'view-all-posts-pages' ); ?></th> <td> - <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link]" id="link-true" value="1"<?php checked( $options['link'], true, true ); ?> /> <label for="link-true"><?php esc_html_e( 'Yes', 'view_all_posts_pages' ); ?></label><br /> - <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link]" id="link-false" value="0"<?php checked( $options['link'], false, true ); ?> /> <label for="link-false"><?php esc_html_e( 'No', 'view_all_posts_pages' ); ?></label> + <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link]" id="link-true" value="1"<?php checked( $options['link'], true, true ); ?> /> <label for="link-true"><?php esc_html_e( 'Yes', 'view-all-posts-pages' ); ?></label><br /> + <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link]" id="link-false" value="0"<?php checked( $options['link'], false, true ); ?> /> <label for="link-false"><?php esc_html_e( 'No', 'view-all-posts-pages' ); ?></label> </td> </tr> <tr> - <th scope="row"><?php esc_html_e( 'Automatically place link:', 'view_all_posts_pages' ); ?></th> + <th scope="row"><?php esc_html_e( 'Automatically place link:', 'view-all-posts-pages' ); ?></th> <td> - <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_position]" id="link_position-above" value="above"<?php checked( $options['link_position'], 'above', true ); ?> /> <label for="link_position-above"><?php esc_html_e( 'Above content', 'view_all_posts_pages' ); ?></label><br /> - <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_position]" id="link_position-below" value="below"<?php checked( $options['link_position'], 'below', true ); ?> /> <label for="link_position-below"><?php esc_html_e( 'Below content', 'view_all_posts_pages' ); ?></label><br /> - <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_position]" id="link_position-both" value="both"<?php checked( $options['link_position'], 'both', true ); ?> /> <label for="link_position-both"><?php esc_html_e( 'Above and below content', 'view_all_posts_pages' ); ?></label> + <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_position]" id="link_position-above" value="above"<?php checked( $options['link_position'], 'above', true ); ?> /> <label for="link_position-above"><?php esc_html_e( 'Above content', 'view-all-posts-pages' ); ?></label><br /> + <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_position]" id="link_position-below" value="below"<?php checked( $options['link_position'], 'below', true ); ?> /> <label for="link_position-below"><?php esc_html_e( 'Below content', 'view-all-posts-pages' ); ?></label><br /> + <input type="radio" name="<?php echo esc_attr( $this->settings_key ); ?>[link_position]" id="link_position-both" value="both"<?php checked( $options['link_position'], 'both', true ); ?> /> <label for="link_position-both"><?php esc_html_e( 'Above and below content', 'view-all-posts-pages' ); ?></label> </td> </tr> <tr> - <th scope="row"><?php esc_html_e( 'Display automatically on:', 'view_all_posts_pages' ); ?></th> + <th scope="row"><?php esc_html_e( 'Display automatically on:', 'view-all-posts-pages' ); ?></th> <td> <?php foreach ( $post_types as $post_type ) : ?> <input type="checkbox" name="<?php echo esc_attr( $this->settings_key ); ?>[link_post_types][]" id="link-pt-<?php echo esc_attr( $post_type->name ); ?>" value="<?php echo esc_attr( $post_type->name ); ?>" @@ -576,26 +591,26 @@ class view_all_posts_pages { // phpcs:ignore PEAR.NamingConventions.ValidClassNa </td> </tr> <tr> - <th scope="row"><label for="link_text"><?php esc_html_e( 'Link text:', 'view_all_posts_pages' ); ?></label></th> + <th scope="row"><label for="link_text"><?php esc_html_e( 'Link text:', 'view-all-posts-pages' ); ?></label></th> <td> <input type="text" name="<?php echo esc_attr( $this->settings_key ); ?>[link_text]" id="link_text" value="<?php echo esc_attr( $options['link_text'] ); ?>" class="regular-text" /> </td> </tr> <tr> - <th scope="row"><label for="link_class"><?php esc_html_e( 'Link\'s CSS class(es):', 'view_all_posts_pages' ); ?></label></th> + <th scope="row"><label for="link_class"><?php esc_html_e( 'Link\'s CSS class(es):', 'view-all-posts-pages' ); ?></label></th> <td> <input type="text" name="<?php echo esc_attr( $this->settings_key ); ?>[link_class]" id="link_class" value="<?php echo esc_attr( $options['link_class'] ); ?>" class="regular-text" /> - <p class="description"><?php esc_html_e( 'Be aware that Internet Explorer will only interpret the first two CSS classes.', 'view_all_posts_pages' ); ?></p> + <p class="description"><?php esc_html_e( 'Be aware that Internet Explorer will only interpret the first two CSS classes.', 'view-all-posts-pages' ); ?></p> </td> </tr> <tr> - <th scope="row"><label for="link_priority"><?php esc_html_e( 'Link\'s priority:', 'view_all_posts_pages' ); ?></label></th> + <th scope="row"><label for="link_priority"><?php esc_html_e( 'Link\'s priority:', 'view-all-posts-pages' ); ?></label></th> <td> <input type="text" name="<?php echo esc_attr( $this->settings_key ); ?>[link_priority]" id="link_priority" class="small-text code" value="<?php echo esc_attr( $options['link_priority'] ); ?>" /> - <p class="description"><?php esc_html_e( 'Priority determines when the link is added to a post\'s content. You can use the above setting to modulate the link\'s placement.', 'view_all_posts_pages' ); ?></p> - <p class="description"><?php echo wp_kses_post( __( 'The default value is <strong>10</strong>. Lower values mean the link will be added earlier, while higher values will add the link later.', 'view_all_posts_pages' ) ); ?></p> + <p class="description"><?php esc_html_e( 'Priority determines when the link is added to a post\'s content. You can use the above setting to modulate the link\'s placement.', 'view-all-posts-pages' ); ?></p> + <p class="description"><?php echo wp_kses_post( __( 'The default value is <strong>10</strong>. Lower values mean the link will be added earlier, while higher values will add the link later.', 'view-all-posts-pages' ) ); ?></p> </td> </tr> </table> @@ -739,12 +754,12 @@ class view_all_posts_pages { // phpcs:ignore PEAR.NamingConventions.ValidClassNa ?> <div id="wpf-rewrite-flush-warning" class="error fade"> - <p><strong><?php esc_html_e( 'View All Post\'s Pages', 'view_all_posts_pages' ); ?></strong></p> + <p><strong><?php esc_html_e( 'View All Post\'s Pages', 'view-all-posts-pages' ); ?></strong></p> <p> <?php /* translators: 1: Permalinks settings page URL. */ - printf( wp_kses_post( __( 'You must refresh your site\'s permalinks before <em>View All Post\'s Pages</em> is fully activated. To do so, go to <a href="%s">Permalinks</a> and click the <strong><em>Save Changes</em></strong> button at the bottom of the screen.', 'view_all_posts_pages' ) ), esc_url( admin_url( 'options-permalink.php' ) ) ); + printf( wp_kses_post( __( 'You must refresh your site\'s permalinks before <em>View All Post\'s Pages</em> is fully activated. To do so, go to <a href="%s">Permalinks</a> and click the <strong><em>Save Changes</em></strong> button at the bottom of the screen.', 'view-all-posts-pages' ) ), esc_url( admin_url( 'options-permalink.php' ) ) ); ?> </p> @@ -756,7 +771,7 @@ class view_all_posts_pages { // phpcs:ignore PEAR.NamingConventions.ValidClassNa ); /* translators: 1: URL to dismiss admin notice. */ - printf( wp_kses_post( __( 'When finished, click <a href="%s">here</a> to hide this message.', 'view_all_posts_pages' ) ), esc_url( admin_url( add_query_arg( $query_args, 'index.php' ) ) ) ); + printf( wp_kses_post( __( 'When finished, click <a href="%s">here</a> to hide this message.', 'view-all-posts-pages' ) ), esc_url( admin_url( add_query_arg( $query_args, 'index.php' ) ) ) ); ?> </p> </div> -- GitLab