Permalink
Browse files

Merge pull request #146 from closemarketing/master

Translatable Strings
  • Loading branch information...
2 parents 0c06b68 + 50d85af commit ba90be3fee297977b8729d009e324287338c162d @rachelbaker committed May 7, 2015
Showing with 148 additions and 98 deletions.
  1. +8 −8 functions.php
  2. +5 −5 header.php
  3. BIN lang/es_ES.mo
  4. +135 −85 lang/es_ES.po
View
@@ -388,7 +388,7 @@ function bootstrapwp_wp_title($title, $sep)
*/
function bootstrapwp_breadcrumbs()
{
- $home = 'Home'; // text for the 'Home' link
+ $home = __('Home', 'bootstrapwp'); // text for the 'Home' link
$before = '<li class="active">'; // tag before the current crumb
$sep = '<span class="divider">/</span>';
$after = '</li>'; // tag after the current crumb
@@ -409,7 +409,7 @@ function bootstrapwp_breadcrumbs()
if ($thisCat->parent != 0) {
echo get_category_parents($parentCat, true, $sep);
}
- 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'
@@ -429,7 +429,7 @@ function bootstrapwp_breadcrumbs()
if (get_post_type() != 'post') {
$post_type = get_post_type_object(get_post_type());
$slug = $post_type->rewrite;
- echo '<li><a href="' . $homeLink . '/' . $slug['slug'] . '/">' . $post_type->labels->singular_name . '</a>'.$sep.'</li> ';
+ echo '<li><a href="' . $homeLink . '/' . $slug['slug'] . '/">' . $post_type->labels->singular_name . '</a></li> ';
echo $before . get_the_title() . $after;
} else {
$cat = get_the_category();
@@ -468,15 +468,15 @@ 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')) {
// if (is_category() || is_day() || is_month() || is_year() || is_search() || is_tag() || is_author()
@@ -497,4 +497,4 @@ function bootstrapwp_breadcrumbs()
/**
* This theme was built with PHP, Semantic HTML, CSS, love, and a bootstrap.
- */
+ */
View
@@ -13,15 +13,15 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php wp_title('|', true, 'right'); ?></title>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>"/>
- <link rel="shortcut icon" href="<?php echo get_template_directory_uri();?>/ico/favicon.png">
+ <link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri();?>/ico/favicon.png">
<link rel="apple-touch-icon-precomposed" sizes="144x144"
- href="<?php echo get_template_directory_uri();?>/assets/ico/apple-touch-icon-144-precomposed.png">
+ href="<?php echo get_stylesheet_directory_uri();?>/assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114"
- href="<?php echo get_template_directory_uri();?>/assets/ico/apple-touch-icon-114-precomposed.png">
+ href="<?php echo get_stylesheet_directory_uri();?>/assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72"
- href="<?php echo get_template_directory_uri();?>/assets/ico/apple-touch-icon-72-precomposed.png">
+ href="<?php echo get_stylesheet_directory_uri();?>/assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed"
- href="<?php echo get_template_directory_uri();?>/assets/ico/apple-touch-icon-57-precomposed.png">
+ href="<?php echo get_stylesheet_directory_uri();?>/assets/ico/apple-touch-icon-57-precomposed.png">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?> data-spy="scroll" data-target=".bs-docs-sidebar" data-offset="10">
View
Binary file not shown.
Oops, something went wrong.

0 comments on commit ba90be3

Please sign in to comment.