소스 검색

Merge pull request #749 from RLGyde/master

Fix for double 'by' in byline and fix for translation of byline
Eddie Machado 11 년 전
부모
커밋
68c51d1a42

+ 2 - 2
archive.php

@@ -49,11 +49,11 @@
 
 									<h3 class="h2 entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
 									<p class="byline entry-meta vcard">
-										<?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+										<?php printf( __( 'Posted', 'bonestheme' ).' %1$s %2$s',
                   							     /* the time the post was published */
                   							     '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
                        								/* the author of the post */
-                       								'<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                       								'<span class="by">'.__('by', 'bonestheme').'</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
                     							); ?>
 									</p>
 

+ 2 - 2
index.php

@@ -14,11 +14,11 @@
 
 									<h1 class="h2 entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
 									<p class="byline entry-meta vcard">
-                                        				<?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+                                                                        <?php printf( __( 'Posted', 'bonestheme' ).' %1$s %2$s',
                        								/* the time the post was published */
                        								'<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
                        								/* the author of the post */
-                       								'<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                       								'<span class="by">'.__( 'by', 'bonestheme').'</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
                     							); ?>
 									</p>
 

BIN
library/translation/da_DK.mo


+ 10 - 8
library/translation/da_DK.po

@@ -13,13 +13,13 @@ msgstr ""
 "X-Poedit-KeywordsList: __;_e;_n\n"
 "X-Poedit-Basepath: /home/fulgor/GIT/bones\n"
 "Last-Translator: \n"
-"X-Generator: Poedit 1.5.4\n"
+"X-Generator: Poedit 1.7.4\n"
+"Language: da_DK\n"
 "X-Poedit-SearchPath-0: /home/fulgor/GIT/bones\n"
 
 #: comments.php:12
 msgid "This post is password protected. Enter the password to view comments."
-msgstr ""
-"Dette indlæg er kodeordsbeskyttet. Skriv kodeordet for at se kommentarer."
+msgstr "Dette indlæg er kodeordsbeskyttet. Skriv kodeordet for at se kommentarer."
 
 #: comments.php:23
 msgid "Response"
@@ -168,10 +168,8 @@ msgid "Epic 404 - Article Not Found"
 msgstr "Episk 404 - Emne Blev Ikke Fundet"
 
 #: 404.php:17
-msgid ""
-"The article you were looking for was not found, but maybe try looking again!"
-msgstr ""
-"Det emne, du ledte efter blev ikke fundet, men prøv måske at lede igen!"
+msgid "The article you were looking for was not found, but maybe try looking again!"
+msgstr "Det emne, du ledte efter blev ikke fundet, men prøv måske at lede igen!"
 
 #: search.php:7
 msgid "Search Results for:"
@@ -251,7 +249,7 @@ msgstr "Læs mere &raquo;"
 
 #: library/custom-post-type.php:24
 msgid "Custom Types"
-msgstr "Brugerdefinerede Typer:"
+msgstr "Brugerdefinerede Typer"
 
 #: library/custom-post-type.php:25
 msgid "Custom Post"
@@ -309,6 +307,10 @@ msgstr "Brugerdefineret Kategori"
 msgid "Search Custom Categories"
 msgstr "Søg Brugerdefinerede Kategorier"
 
+#: library/custom-post-type.php:33
+msgid "All Custom Posts"
+msgstr "Alle Brugerdefinerede Indlæg"
+
 #: library/custom-post-type.php:76
 msgid "All Custom Categories"
 msgstr "Alle Brugerdefinerede Kategorier"

+ 1 - 1
page.php

@@ -15,7 +15,7 @@
 									<h1 class="page-title" itemprop="headline"><?php the_title(); ?></h1>
 
 									<p class="byline vcard">
-										<?php printf( __( 'Posted <time class="updated" datetime="%1$s" itemprop="datePublished">%2$s</time> by <span class="author">%3$s</span>', 'bonestheme' ), get_the_time('Y-m-j'), get_the_time(get_option('date_format')), get_the_author_link( get_the_author_meta( 'ID' ) )); ?>
+										<?php printf( __( 'Posted', 'bonestheme').' <time class="updated" datetime="%1$s" itemprop="datePublished">%2$s</time> '.__( 'by',  'bonestheme').' <span class="author">%3$s</span>', get_the_time('Y-m-j'), get_the_time(get_option('date_format')), get_the_author_link( get_the_author_meta( 'ID' ) )); ?>
 									</p>
 
 								</header> <?php // end article header ?>

+ 3 - 3
post-formats/format-aside.php

@@ -7,11 +7,11 @@
                   <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
 
                   <p class="byline entry-meta vcard">
-                    <?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+                    <?php printf( __( 'Posted', 'bonestheme' ).' %1$s %2$s',
                        /* the time the post was published */
                        '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
                        /* the author of the post */
-                       '<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                       '<span class="by">'.__( 'by', 'bonestheme' ).'</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
                     ); ?>
                   </p>
 
@@ -48,6 +48,6 @@
 
                 </footer> <?php // end article footer ?>
 
-                <?php comments_template(); ?>
+                <?php //comments_template(); ?>
 
               </article> <?php // end article ?>

+ 3 - 3
post-formats/format-audio.php

@@ -7,11 +7,11 @@
                   <h1 class="entry-title single-title" itemprop="name"><?php the_title(); ?></h1>
 
                   <p class="byline entry-meta vcard">
-                    <?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+                    <?php printf( __( 'Posted', 'bonestheme' ).' %1$s %2$s',
                        /* the time the post was published */
                        '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
                        /* the author of the post */
-                       '<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                       '<span class="by">'.__( 'by', 'bonestheme' ).'</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
                     ); ?>
                   </p>
 
@@ -48,6 +48,6 @@
 
                 </footer> <?php // end article footer ?>
 
-                <?php comments_template(); ?>
+                <?php //comments_template(); ?>
 
               </article> <?php // end article ?>

+ 3 - 3
post-formats/format-chat.php

@@ -7,11 +7,11 @@
                   <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
 
                   <p class="byline vcard">
-                    <?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+                    <?php printf( __( 'Posted', 'bonestheme' ).' %1$s %2$s',
                        /* the time the post was published */
                        '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
                        /* the author of the post */
-                       '<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                       '<span class="by">'.__( 'by', 'bonestheme' ).'</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
                     ); ?>
                   </p>
 
@@ -48,6 +48,6 @@
 
                 </footer> <?php // end article footer ?>
 
-                <?php comments_template(); ?>
+                <?php //comments_template(); ?>
 
               </article> <?php // end article ?>

+ 3 - 3
post-formats/format-gallery.php

@@ -7,11 +7,11 @@
                   <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
 
                   <p class="byline vcard">
-                    <?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+                    <?php printf( __( 'Posted', 'bonestheme' ).' %1$s %2$s',
                        /* the time the post was published */
                        '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
                        /* the author of the post */
-                       '<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                       '<span class="by">'.__( 'by', 'bonestheme' ).'</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
                     ); ?>
                   </p>
 
@@ -48,6 +48,6 @@
 
                 </footer> <?php // end article footer ?>
 
-                <?php comments_template(); ?>
+                <?php //comments_template(); ?>
 
               </article> <?php // end article ?>

+ 3 - 3
post-formats/format-image.php

@@ -7,11 +7,11 @@
                   <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
 
                   <p class="byline vcard">
-                    <?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+                    <?php printf( __( 'Posted', 'bonestheme' ).' %1$s %2$s',
                        /* the time the post was published */
                        '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
                        /* the author of the post */
-                       '<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                       '<span class="by">'.__( 'by', 'bonestheme' ).'</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
                     ); ?>
                   </p>
 
@@ -48,6 +48,6 @@
 
                 </footer> <?php // end article footer ?>
 
-                <?php comments_template(); ?>
+                <?php //comments_template(); ?>
 
               </article> <?php // end article ?>

+ 3 - 3
post-formats/format-link.php

@@ -7,11 +7,11 @@
                   <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
 
                   <p class="byline vcard">
-                    <?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+                    <?php printf( __( 'Posted', 'bonestheme' ).' %1$s %2$s',
                        /* the time the post was published */
                        '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
                        /* the author of the post */
-                       '<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                       '<span class="by">'.__( 'by', 'bonestheme' ).'</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
                     ); ?>
                   </p>
 
@@ -51,6 +51,6 @@
 
                 </footer> <?php // end article footer ?>
 
-                <?php comments_template(); ?>
+                <?php //comments_template(); ?>
 
               </article> <?php // end article ?>

+ 3 - 3
post-formats/format-quote.php

@@ -7,11 +7,11 @@
                   <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
 
                   <p class="byline vcard">
-                    <?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+                    <?php printf( __( 'Posted', 'bonestheme' ).' %1$s %2$s',
                        /* the time the post was published */
                        '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
                        /* the author of the post */
-                       '<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                       '<span class="by">'.__( 'by', 'bonestheme' ).'</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
                     ); ?>
                   </p>
 
@@ -51,6 +51,6 @@
 
                 </footer> <?php // end article footer ?>
 
-                <?php comments_template(); ?>
+                <?php //comments_template(); ?>
 
               </article> <?php // end article ?>

+ 3 - 3
post-formats/format-status.php

@@ -7,11 +7,11 @@
                   <h1 class="entry-title single-title" itemprop="headline"><?php the_title(); ?></h1>
 
                   <p class="byline vcard">
-                    <?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+                    <?php printf( __( 'Posted', 'bonestheme' ).' %1$s %2$s',
                        /* the time the post was published */
                        '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
                        /* the author of the post */
-                       '<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                       '<span class="by">'.__( 'by', 'bonestheme' ).'</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
                     ); ?>
                   </p>
 
@@ -48,6 +48,6 @@
 
                 </footer> <?php // end article footer ?>
 
-                <?php comments_template(); ?>
+                <?php //comments_template(); ?>
 
               </article> <?php // end article ?>

+ 3 - 3
post-formats/format-video.php

@@ -7,11 +7,11 @@
                   <h1 class="entry-title single-title" itemprop="name"><?php the_title(); ?></h1>
 
                   <p class="byline entry-meta vcard">
-                    <?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+                    <?php printf( __( 'Posted', 'bonestheme' ).' %1$s %2$s',
                        /* the time the post was published */
                        '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
                        /* the author of the post */
-                       '<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                       '<span class="by">'.__( 'by', 'bonestheme' ).'</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
                     ); ?>
                   </p>
 
@@ -48,6 +48,6 @@
 
                 </footer> <?php // end article footer ?>
 
-                <?php comments_template(); ?>
+                <?php //comments_template(); ?>
 
               </article> <?php // end article ?>

+ 4 - 4
post-formats/format.php

@@ -22,11 +22,11 @@
 
                   <p class="byline entry-meta vcard">
 
-                    <?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
+                    <?php printf( __( 'Posted', 'bonestheme' ).' %1$s %2$s',
                        /* the time the post was published */
                        '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
                        /* the author of the post */
-                       '<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
+                       '<span class="by">'.__( 'by', 'bonestheme' ).'</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
                     ); ?>
 
                   </p>
@@ -61,12 +61,12 @@
 
                 <footer class="article-footer">
 
-                  <?php printf( __( 'Filed under: %1$s', 'bonestheme' ), get_the_category_list(', ') ); ?>
+                  <?php printf( __( 'filed under', 'bonestheme' ).': %1$s', get_the_category_list(', ') ); ?>
 
                   <?php the_tags( '<p class="tags"><span class="tags-title">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '</p>' ); ?>
 
                 </footer> <?php // end article footer ?>
 
-                <?php comments_template(); ?>
+                <?php //comments_template(); ?>
 
               </article> <?php // end article ?>