Add comment navigation template tags

This commit is contained in:
Dmitry Mayorov 2015-12-07 12:02:25 -05:00 committed by Dmitry
parent ef422bc160
commit 8e67439859
2 changed files with 138 additions and 212 deletions

View File

@ -45,17 +45,7 @@ if ( post_password_required() ) {
?> ?>
</h2><!-- .comments-title --> </h2><!-- .comments-title -->
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> <?php the_comments_navigation(); ?>
<nav id="comment-nav-above" class="navigation comment-navigation">
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', '_s' ); ?></h2>
<div class="nav-links">
<div class="nav-previous"><?php previous_comments_link( esc_html__( 'Older Comments', '_s' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', '_s' ) ); ?></div>
</div><!-- .nav-links -->
</nav><!-- #comment-nav-above -->
<?php endif; // Check for comment navigation. ?>
<ol class="comment-list"> <ol class="comment-list">
<?php <?php
@ -66,18 +56,7 @@ if ( post_password_required() ) {
?> ?>
</ol><!-- .comment-list --> </ol><!-- .comment-list -->
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> <?php the_comments_navigation();
<nav id="comment-nav-below" class="navigation comment-navigation">
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', '_s' ); ?></h2>
<div class="nav-links">
<div class="nav-previous"><?php previous_comments_link( esc_html__( 'Older Comments', '_s' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', '_s' ) ); ?></div>
</div><!-- .nav-links -->
</nav><!-- #comment-nav-below -->
<?php
endif; // Check for comment navigation.
endif; // Check for have_comments(). endif; // Check for have_comments().

View File

@ -5,235 +5,182 @@ msgstr ""
"Project-Id-Version: _s 1.0.0\n" "Project-Id-Version: _s 1.0.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n" "Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n"
"POT-Creation-Date: 2016-12-23 16:00+0100\n" "POT-Creation-Date: 2016-12-23 16:00+0100\n"
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2016-12-23 16:00+0100\n" "PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
"Last-Translator: \n" "Last-Translator:\n"
"Language-Team: \n" "Language-Team: LANGUAGE <LL@li.org>\n"
"X-Generator: grunt-wp-i18n 0.5.4\n"
#: 404.php:17 #: 404.php:17
#@ _s
msgid "Oops! That page can&rsquo;t be found." msgid "Oops! That page can&rsquo;t be found."
msgstr "" msgstr ""
#: 404.php:21 #: 404.php:21
#@ _s msgid ""
msgid "It looks like nothing was found at this location. Maybe try one of the links below or a search?" "It looks like nothing was found at this location. Maybe try one of the "
"links below or a search?"
msgstr "" msgstr ""
#: 404.php:33 #: 404.php:30
#@ _s
msgid "Most Used Categories" msgid "Most Used Categories"
msgstr "" msgstr ""
#: 404.php:47
#. translators: %1$s: smiley #. translators: %1$s: smiley
#: 404.php:51
#, php-format
#@ _s
msgid "Try looking in the monthly archives. %1$s" msgid "Try looking in the monthly archives. %1$s"
msgstr "" msgstr ""
#. translators: 1: title.
#: comments.php:34 #: comments.php:34
#, php-format #. translators: 1: title.
#@ _s
msgid "One thought on &ldquo;%1$s&rdquo;" msgid "One thought on &ldquo;%1$s&rdquo;"
msgstr "" msgstr ""
#. translators: 1: comment count number, 2: title. #: comments.php:67
msgid "Comments are closed."
msgstr ""
#: footer.php:18
msgid "https://wordpress.org/"
msgstr ""
#: footer.php:20
#. translators: %s: CMS name, i.e. WordPress.
msgid "Proudly powered by %s"
msgstr ""
#: footer.php:25
#. translators: 1: Theme name, 2: Theme author.
msgid "Theme: %1$s by %2$s."
msgstr ""
#: functions.php:47
msgid "Primary"
msgstr ""
#: functions.php:105
msgid "Sidebar"
msgstr ""
#: functions.php:107
msgid "Add widgets here."
msgstr ""
#: header.php:24
msgid "Skip to content"
msgstr ""
#: header.php:45
msgid "Primary Menu"
msgstr ""
#: inc/template-tags.php:52
#. translators: used between list items, there is a space after the comma
msgid ", "
msgstr ""
#: inc/template-tags.php:55
#. translators: 1: list of categories.
msgid "Posted in %1$s"
msgstr ""
#: inc/template-tags.php:62
#. translators: 1: list of tags.
msgid "Tagged %1$s"
msgstr ""
#: inc/template-tags.php:72
#. translators: %s: post title
msgid "Leave a Comment<span class=\"screen-reader-text\"> on %s</span>"
msgstr ""
#: inc/template-tags.php:89 template-parts/content-page.php:35
#. translators: %s: Name of current post. Only visible to screen readers
msgid "Edit <span class=\"screen-reader-text\">%s</span>"
msgstr ""
#: search.php:21
#. translators: %s: search query.
msgid "Search Results for: %s"
msgstr ""
#: template-parts/content-none.php:14
msgid "Nothing Found"
msgstr ""
#: template-parts/content-none.php:25
#. translators: 1: link to WP admin new post page.
msgid "Ready to publish your first post? <a href=\"%1$s\">Get started here</a>."
msgstr ""
#: template-parts/content-none.php:38
msgid ""
"Sorry, but nothing matched your search terms. Please try again with some "
"different keywords."
msgstr ""
#: template-parts/content-none.php:44
msgid ""
"It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps "
"searching can help."
msgstr ""
#: template-parts/content-page.php:22 template-parts/content.php:45
msgid "Pages:"
msgstr ""
#: template-parts/content.php:34
#. translators: %s: Name of current post. Only visible to screen readers
msgid "Continue reading<span class=\"screen-reader-text\"> \"%s\"</span>"
msgstr ""
#. Theme Name of the plugin/theme
msgid "_s"
msgstr ""
#. Theme URI of the plugin/theme
msgid "http://underscores.me/"
msgstr ""
#. Description of the plugin/theme
msgid ""
"Hi. I'm a starter theme called <code>_s</code>, or <em>underscores</em>, if "
"you like. I'm a theme meant for hacking so don't use me as a <em>Parent "
"Theme</em>. Instead try turning me into the next, most awesome, WordPress "
"theme out there. That's what I'm here for."
msgstr ""
#. Author of the plugin/theme
msgid "Automattic"
msgstr ""
#. Author URI of the plugin/theme
msgid "http://automattic.com/"
msgstr ""
#: comments.php:40 #: comments.php:40
#, php-format #. translators: 1: comment count number, 2: title.
#@ _s
msgctxt "comments title" msgctxt "comments title"
msgid "%1$s thought on &ldquo;%2$s&rdquo;" msgid "%1$s thought on &ldquo;%2$s&rdquo;"
msgid_plural "%1$s thoughts on &ldquo;%2$s&rdquo;" msgid_plural "%1$s thoughts on &ldquo;%2$s&rdquo;"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
#: comments.php:50 comments.php:71
#@ _s
msgid "Comment navigation"
msgstr ""
#: comments.php:53 comments.php:74
#@ _s
msgid "Older Comments"
msgstr ""
#: comments.php:54 comments.php:75
#@ _s
msgid "Newer Comments"
msgstr ""
#: comments.php:88
#@ _s
msgid "Comments are closed."
msgstr ""
#: footer.php:18
#@ _s
msgid "https://wordpress.org/"
msgstr ""
#. translators: %s: CMS name, i.e. WordPress.
#: footer.php:20
#, php-format
#@ _s
msgid "Proudly powered by %s"
msgstr ""
#. translators: 1: Theme name, 2: Theme author.
#: footer.php:25
#, php-format
#@ _s
msgid "Theme: %1$s by %2$s."
msgstr ""
#: functions.php:47
#@ _s
msgid "Primary"
msgstr ""
#: functions.php:93
#@ _s
msgid "Sidebar"
msgstr ""
#: functions.php:95
#@ _s
msgid "Add widgets here."
msgstr ""
#: header.php:24
#@ _s
msgid "Skip to content"
msgstr ""
#: header.php:44
#@ _s
msgid "Primary Menu"
msgstr ""
#. translators: %s: post date.
#: inc/template-tags.php:29 #: inc/template-tags.php:29
#, php-format #. translators: %s: post date.
#@ _s
msgctxt "post date" msgctxt "post date"
msgid "Posted on %s" msgid "Posted on %s"
msgstr "" msgstr ""
#. translators: %s: post author.
#: inc/template-tags.php:35 #: inc/template-tags.php:35
#, php-format #. translators: %s: post author.
#@ _s
msgctxt "post author" msgctxt "post author"
msgid "by %s" msgid "by %s"
msgstr "" msgstr ""
#. translators: used between list items, there is a space after the comma
#: inc/template-tags.php:52
#@ _s
msgid ", "
msgstr ""
#. translators: 1: list of categories.
#: inc/template-tags.php:55
#, php-format
#@ _s
msgid "Posted in %1$s"
msgstr ""
#. translators: used between list items, there is a space after the comma
#: inc/template-tags.php:59 #: inc/template-tags.php:59
#, php-format #. translators: used between list items, there is a space after the comma
#@ _s
msgctxt "list item separator" msgctxt "list item separator"
msgid ", " msgid ", "
msgstr "" msgstr ""
#. translators: 1: list of tags.
#: inc/template-tags.php:62
msgid "Tagged %1$s"
msgstr ""
#. translators: %s: post title
#: inc/template-tags.php:72
#, php-format
#@ _s
msgid "Leave a Comment<span class=\"screen-reader-text\"> on %s</span>"
msgstr ""
#. translators: %s: Name of current post. Only visible to screen readers
#: inc/template-tags.php:89 template-parts/content-page.php:35
#, php-format
#@ _s
msgid "Edit <span class=\"screen-reader-text\">%s</span>"
msgstr ""
#. translators: %s: search query.
#: search.php:21
#, php-format
#@ _s
msgid "Search Results for: %s"
msgstr ""
#: template-parts/content-none.php:14
#@ _s
msgid "Nothing Found"
msgstr ""
#. translators: 1: link to WP admin new post page.
#: template-parts/content-none.php:25
#, php-format
#@ _s
msgid "Ready to publish your first post? <a href=\"%1$s\">Get started here</a>."
msgstr ""
#: template-parts/content-none.php:38
#@ _s
msgid "Sorry, but nothing matched your search terms. Please try again with some different keywords."
msgstr ""
#: template-parts/content-none.php:44
#@ _s
msgid "It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help."
msgstr ""
#@ _s
#: template-parts/content-page.php:22 template-parts/content.php:45
msgid "Pages:"
msgstr ""
#. translators: %s: Name of current post. Only visible to screen readers
#: template-parts/content.php:34
#, php-format
#@ _s
msgid "Continue reading<span class=\"screen-reader-text\"> \"%s\"</span>"
msgstr ""
#. Theme Name of the plugin/theme
#@ _s
msgid "_s"
msgstr ""
#. Theme URI of the plugin/theme
#@ _s
msgid "http://underscores.me/"
msgstr ""
#. Description of the plugin/theme
#@ _s
msgid "Hi. I'm a starter theme called <code>_s</code>, or <em>underscores</em>, if you like. I'm a theme meant for hacking so don't use me as a <em>Parent Theme</em>. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for."
msgstr ""
#. Author of the plugin/theme
#@ _s
msgid "Automattic"
msgstr ""
#. Author URI of the plugin/theme
#@ _s
msgid "http://automattic.com/"
msgstr ""