Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pt-BR included and some language support adjustments #122

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
* @subpackage Default_Theme
* @since WP-Bootstrap 0.1
*
* Last Revised: July 16, 2012
* Last Revised: May 4, 2013
*/
?>
<!-- End Template Content -->
<footer>
<div class="container">
<p class="pull-right"><a href="#">Back to top</a></p>
<p class="pull-right"><a href="#"><?php _e( 'Back to top', 'bootstrapwp' ); ?></a></p>
<p>&copy; <?php bloginfo('name'); ?> <?php the_time('Y') ?></p>
<?php
if ( function_exists('dynamic_sidebar')) dynamic_sidebar("footer-content");
Expand Down
48 changes: 24 additions & 24 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @subpackage WP-Bootstrap
* @since WP-Bootstrap 0.1
*
* Last Updated: September 9, 2012
* Last Updated: May 4, 2013
*/

if (!defined('BOOTSTRAPWP_VERSION'))
Expand Down Expand Up @@ -95,7 +95,7 @@ function bootstrapwp_page_menu_args( $args ) {
| */
function bootstrapwp_widgets_init() {
register_sidebar( array(
'name' => 'Page Sidebar',
'name' => __( 'Page Sidebar', 'bootstrapwp' ),
'id' => 'sidebar-page',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => "</div>",
Expand All @@ -104,7 +104,7 @@ function bootstrapwp_widgets_init() {
) );

register_sidebar( array(
'name' => 'Posts Sidebar',
'name' => __( 'Posts Sidebar', 'bootstrapwp' ),
'id' => 'sidebar-posts',
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => "</div>",
Expand All @@ -113,39 +113,39 @@ function bootstrapwp_widgets_init() {
) );

register_sidebar(array(
'name' => 'Home Left',
'name' => __( 'Home Left', 'bootstrapwp' ),
'id' => 'home-left',
'description' => 'Left textbox on homepage',
'description' => __( 'Left textbox on homepage', 'bootstrapwp' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>'
));

register_sidebar(array(
'name' => 'Home Middle',
'name' => __( 'Home Middle', 'bootstrapwp' ),
'id' => 'home-middle',
'description' => 'Middle textbox on homepage',
'description' => __( 'Middle textbox on homepage', 'bootstrapwp' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>'
));

register_sidebar(array(
'name' => 'Home Right',
'name' => __( 'Home Right', 'bootstrapwp' ),
'id' => 'home-right',
'description' => 'Right textbox on homepage',
'description' => __( 'Right textbox on homepage', 'bootstrapwp' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>'
));

register_sidebar(array(
'name' => 'Footer Content',
'name' => __( 'Footer Content', 'bootstrapwp' ),
'id' => 'footer-content',
'description' => 'Footer text or acknowledgements',
'description' => __( 'Footer text or acknowledgements', 'bootstrapwp' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h4>',
Expand Down Expand Up @@ -177,7 +177,7 @@ function bootstrapwp_widgets_init() {
| */
function bootstrapwp_excerpt($more) {
global $post;
return '&nbsp; &nbsp;<a href="'. get_permalink($post->ID) . '">...Continue Reading</a>';
return '&nbsp; &nbsp;<a href="'. get_permalink($post->ID) . '">'. __( '...Continue Reading', 'bootstrapwp' ) .'</a>';
}
add_filter('excerpt_more', 'bootstrapwp_excerpt');

Expand Down Expand Up @@ -232,7 +232,7 @@ function bootstrapwp_comment( $comment, $args, $depth ) {
case 'trackback' :
?>
<li class="post pingback">
<p><?php _e( 'Pingback:', 'bootstrap' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'bootstrap' ), ' ' ); ?></p>
<p><?php _e( 'Pingback:', 'bootstrapwp' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( '(Edit)', 'bootstrapwp' ), ' ' ); ?></p>
<?php
break;
default :
Expand All @@ -242,20 +242,20 @@ function bootstrapwp_comment( $comment, $args, $depth ) {
<footer>
<div class="comment-author vcard">
<?php echo get_avatar( $comment, 40 ); ?>
<?php printf( __( '%s <span class="says">says:</span>', 'bootstrap' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?>
<?php printf( __( '%s <span class="says">says:</span>', 'bootstrapwp' ), sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?>
</div><!-- .comment-author .vcard -->
<?php if ( $comment->comment_approved == '0' ) : ?>
<em><?php _e( 'Your comment is awaiting moderation.', 'bootstrap' ); ?></em>
<em><?php _e( 'Your comment is awaiting moderation.', 'bootstrapwp' ); ?></em>
<br />
<?php endif; ?>

<div class="comment-meta commentmetadata">
<a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"><time pubdate datetime="<?php comment_time( 'c' ); ?>">
<?php
/* translators: 1: date, 2: time */
printf( __( '%1$s at %2$s', 'bootstrap' ), get_comment_date(), get_comment_time() ); ?>
printf( __( '%1$s at %2$s', 'bootstrapwp' ), get_comment_date(), get_comment_time() ); ?>
</time></a>
<?php edit_comment_link( __( '(Edit)', 'bootstrap' ), ' ' );
<?php edit_comment_link( __( '(Edit)', 'bootstrapwp' ), ' ' );
?>
</div><!-- .comment-meta .commentmetadata -->
</footer>
Expand All @@ -281,13 +281,13 @@ function bootstrapwp_comment( $comment, $args, $depth ) {
* @since WP-Bootstrap .5
*/
function bootstrapwp_posted_on() {
printf( __( '<span class="sep">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a><span class="byline"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'bootstrap' ),
printf( __( '<span class="sep">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a><span class="byline"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'bootstrapwp' ),
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() ),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_attr( sprintf( __( 'View all posts by %s', 'bootstrap' ), get_the_author() ) ),
esc_attr( sprintf( __( 'View all posts by %s', 'bootstrapwp' ), get_the_author() ) ),
esc_html( get_the_author() )
);
}
Expand Down Expand Up @@ -433,7 +433,7 @@ function bootstrapwp_breadcrumbs() {
$thisCat = get_category($thisCat);
$parentCat = get_category($thisCat->parent);
if ($thisCat->parent != 0) echo(get_category_parents($parentCat, TRUE, ' ' . $delimiter . ' '));
echo $before . 'Archive by category "' . single_cat_title('', false) . '"' . $after;
echo $before . __( 'Archive by category', 'bootstrapwp' ) .' "' . single_cat_title('', false) . '"' . $after;

} elseif ( is_day() ) {
echo '<li><a href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a></li> ' . $delimiter . ' ';
Expand Down Expand Up @@ -486,18 +486,18 @@ function bootstrapwp_breadcrumbs() {
echo $before . get_the_title() . $after;

} elseif ( is_search() ) {
echo $before . 'Search results for "' . get_search_query() . '"' . $after;
echo $before . __( 'Search results for', 'bootstrapwp' ) .' "' . get_search_query() . '"' . $after;

} elseif ( is_tag() ) {
echo $before . 'Posts tagged "' . single_tag_title('', false) . '"' . $after;
echo $before . __( 'Posts tagged', 'bootstrapwp' ) .' "' . single_tag_title('', false) . '"' . $after;

} elseif ( is_author() ) {
global $author;
$userdata = get_userdata($author);
echo $before . 'Articles posted by ' . $userdata->display_name . $after;
echo $before . __( 'Articles posted by', 'bootstrapwp' ) .' ' . $userdata->display_name . $after;

} elseif ( is_404() ) {
echo $before . 'Error 404' . $after;
echo $before . __( 'Error 404', 'bootstrapwp' ) . $after;
}

if ( get_query_var('paged') ) {
Expand Down
Loading