Skip to content

Commit

Permalink
update textdomain
Browse files Browse the repository at this point in the history
  • Loading branch information
billerickson committed Jan 22, 2019
1 parent c3bd555 commit 64a048b
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 30 deletions.
16 changes: 8 additions & 8 deletions comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<h2 class="comments-title">
<?php
printf( // WPCS: XSS OK.
esc_html( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'ea' ) ),
esc_html( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'ea-starter' ) ),
number_format_i18n( get_comments_number() ),
'<span>' . get_the_title() . '</span>'
);
Expand All @@ -36,11 +36,11 @@

<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
<nav id="comment-nav-above" class="navigation comment-navigation" role="navigation">
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'ea' ); ?></h2>
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'ea-starter' ); ?></h2>
<div class="nav-links">

<div class="nav-previous"><?php previous_comments_link( esc_html__( 'Older Comments', 'ea' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', 'ea' ) ); ?></div>
<div class="nav-previous"><?php previous_comments_link( esc_html__( 'Older Comments', 'ea-starter' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', 'ea-starter' ) ); ?></div>

</div><!-- .nav-links -->
</nav><!-- #comment-nav-above -->
Expand All @@ -57,11 +57,11 @@

<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?>
<nav id="comment-nav-below" class="navigation comment-navigation" role="navigation">
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'ea' ); ?></h2>
<h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'ea-starter' ); ?></h2>
<div class="nav-links">

<div class="nav-previous"><?php previous_comments_link( esc_html__( 'Older Comments', 'ea' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', 'ea' ) ); ?></div>
<div class="nav-previous"><?php previous_comments_link( esc_html__( 'Older Comments', 'ea-starter' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', 'ea-starter' ) ); ?></div>

</div><!-- .nav-links -->
</nav><!-- #comment-nav-below -->
Expand All @@ -74,7 +74,7 @@
// If comments are closed and there are comments, let's leave a little note, shall we?
if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?>

<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'ea' ); ?></p>
<p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'ea-starter' ); ?></p>
<?php
endif;

Expand Down
29 changes: 13 additions & 16 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,8 @@ function ea_theme_fonts_url() {
function ea_setup() {
/*
* Make theme available for translation.
* Translations can be filed in the /languages/ directory.
* If you're building a theme based on ea, use a find and replace
* to change 'ea' to the name of your theme in all the template files.
*/
load_theme_textdomain( 'ea', get_template_directory() . '/languages' );
load_theme_textdomain( 'ea-starter', get_template_directory() . '/languages' );

// Editor Styles
add_theme_support( 'editor-styles' );
Expand Down Expand Up @@ -120,8 +117,8 @@ function ea_setup() {

// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'primary' => esc_html__( 'Primary', 'ea' ),
'mobile' => esc_html__( 'Mobile Menu', 'ea' ),
'primary' => esc_html__( 'Primary', 'ea-starter' ),
'mobile' => esc_html__( 'Mobile Menu', 'ea-starter' ),
) );

/*
Expand All @@ -147,20 +144,20 @@ function ea_setup() {
// -- Editor Font Styles
add_theme_support( 'editor-font-sizes', array(
array(
'name' => __( 'small', 'ea_genesis_child' ),
'shortName' => __( 'S', 'ea_genesis_child' ),
'name' => __( 'small', 'ea-starter' ),
'shortName' => __( 'S', 'ea-starter' ),
'size' => 12,
'slug' => 'small'
),
array(
'name' => __( 'regular', 'ea_genesis_child' ),
'shortName' => __( 'M', 'ea_genesis_child' ),
'name' => __( 'regular', 'ea-starter' ),
'shortName' => __( 'M', 'ea-starter' ),
'size' => 16,
'slug' => 'regular'
),
array(
'name' => __( 'large', 'ea_genesis_child' ),
'shortName' => __( 'L', 'ea_genesis_child' ),
'name' => __( 'large', 'ea-starter' ),
'shortName' => __( 'L', 'ea-starter' ),
'size' => 20,
'slug' => 'large'
),
Expand All @@ -172,22 +169,22 @@ function ea_setup() {
// -- Editor Color Palette
add_theme_support( 'editor-color-palette', array(
array(
'name' => __( 'Blue', 'ea_genesis_child' ),
'name' => __( 'Blue', 'ea-starter' ),
'slug' => 'blue',
'color' => '#59BACC',
),
array(
'name' => __( 'Green', 'ea_genesis_child' ),
'name' => __( 'Green', 'ea-starter' ),
'slug' => 'green',
'color' => '#58AD69',
),
array(
'name' => __( 'Orange', 'ea_genesis_child' ),
'name' => __( 'Orange', 'ea-starter' ),
'slug' => 'orange',
'color' => '#FFBC49',
),
array(
'name' => __( 'Red', 'ea_genesis_child' ),
'name' => __( 'Red', 'ea-starter' ),
'slug' => 'red',
'color' => '#E2574C',
),
Expand Down
2 changes: 1 addition & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
echo '<body class="' . join( ' ', get_body_class() ) . '">';
tha_body_top();
echo '<div class="site-container">';
echo '<a class="skip-link screen-reader-text" href="#main-content">' . esc_html__( 'Skip to content', 'ea' ) . '</a>';
echo '<a class="skip-link screen-reader-text" href="#main-content">' . esc_html__( 'Skip to content', 'ea-starter' ) . '</a>';

tha_header_before();
echo '<header class="site-header" role="banner"><div class="wrap">';
Expand Down
2 changes: 1 addition & 1 deletion inc/sidebar-layouts.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
function ea_widgets_init() {

register_sidebar( ea_widget_area_args( array(
'name' => esc_html__( 'Primary Sidebar', 'ea' ),
'name' => esc_html__( 'Primary Sidebar', 'ea-starter' ),
) ) );

}
Expand Down
6 changes: 3 additions & 3 deletions partials/archive-none.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@

echo '<section class="no-results not-found">';

echo '<header class="entry-header"><h1 class="entry-title">' . esc_html__( 'Nothing Found', 'ea' ) . '</h1></header>';
echo '<header class="entry-header"><h1 class="entry-title">' . esc_html__( 'Nothing Found', 'ea-starter' ) . '</h1></header>';
echo '<div class="entry-content">';

if ( is_search() ) {

echo '<p>' . esc_html__( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'ea' ) . '</p>';
echo '<p>' . esc_html__( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'ea-starter' ) . '</p>';
get_search_form();

} else {

echo '<p>' . esc_html__( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'ea' ) . '</p>';
echo '<p>' . esc_html__( 'It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps searching can help.', 'ea-starter' ) . '</p>';
get_search_form();
}

Expand Down
2 changes: 1 addition & 1 deletion partials/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
the_content();

wp_link_pages( array(
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'ea' ),
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'ea-starter' ),
'after' => '</div>',
) );

Expand Down

0 comments on commit 64a048b

Please sign in to comment.