diff --git a/default-template.php b/default-template.php index 8758c1d1ef68d09eeeb5e6b26da653f7a4e09be0..33ff97ac684a9510194d4371e5683887e0bded1e 100644 --- a/default-template.php +++ b/default-template.php @@ -30,7 +30,18 @@ wpf_the_page_numbers( false, '<p class="page_numbers">Page ', ' of ', '</p><!-- .page_numbers -->' ); ?> - <p class="wpf-source"><strong>Source URL:</strong> <?php the_permalink(); ?></p> + <p class="wpf-source"> + <?php + printf( + /* translators: 1. Post permalink. */ + __( + '<strong>Source URL:</strong> %1$s', + 'wp-print-friendly' + ), + get_the_permalink() + ); + ?> + </p> <hr class="wpf-divider" /> </div> @@ -39,7 +50,19 @@ endif; ?> - <p class="copyright">Copyright ©<?php echo date( 'Y' ); ?> <strong><?php bloginfo( 'name' ); ?></strong> unless otherwise noted.</p> + <p class="copyright"> + <?php + printf( + /* translators: 1. Copyright year, 2. Site name. */ + __( + 'Copyright ©%1$d %2$s unless otherwise noted.', + 'wp-print-friendly' + ), + date( 'Y' ), + get_bloginfo( 'name' ) + ); + ?> + </p> </body> </html> diff --git a/languages/wp-print-friendly.pot b/languages/wp-print-friendly.pot index a517e3df522d198541b2d663c498f7c64993afe4..fc1d0e8799443aba10511fa2e8ed2b6c0f9ad98c 100644 --- a/languages/wp-print-friendly.pot +++ b/languages/wp-print-friendly.pot @@ -5,7 +5,7 @@ msgstr "" "Project-Id-Version: WP Print Friendly 0.6.3\n" "Report-Msgid-Bugs-To: " "https://wordpress.org/support/plugin/wp-print-friendly\n" -"POT-Creation-Date: 2022-06-25 20:55:28+00:00\n" +"POT-Creation-Date: 2022-06-25 21:01:31+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -25,6 +25,16 @@ msgstr "" "X-Textdomain-Support: yes\n" "X-Generator: grunt-wp-i18n 1.0.3\n" +#: default-template.php:37 +#. translators: 1. Post permalink. +msgid "<strong>Source URL:</strong> %1$s" +msgstr "" + +#: default-template.php:57 +#. translators: 1. Copyright year, 2. Site name. +msgid "Copyright ©%1$d %2$s unless otherwise noted." +msgstr "" + #: wp-print-friendly.php:128 msgid "Print this entry" msgstr ""