Update text-domain

This commit is contained in:
Ariel Klikstein 2019-02-12 10:48:21 +02:00
parent b4597994e4
commit 8123941dc2
10 changed files with 19 additions and 22 deletions

View file

@ -72,7 +72,7 @@ module.exports = function( grunt ) {

checktextdomain: {
options: {
text_domain: 'elementor-hello-theme',
text_domain: 'hello-elementor',
correct_domain: true,
keywords: [
// WordPress keywords

View file

@ -1,5 +1,5 @@
/*!
Theme Name: Elementor Hello Theme
Theme Name: Hello Elementor
Theme URI: https://github.com/pojome/elementor-hello-theme.git
Description: A plain-vanilla & lightweight theme for Elementor page builder
Author: Elementor Team
@ -10,7 +10,7 @@
Tested up to: 5.0
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: elementor-hello-theme
Text Domain: hello-elementor
Tags: flexible-header, accessibility-ready, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/


View file

@ -20,7 +20,7 @@ if ( comments_open() && get_option( 'thread_comments' ) ) {
<?php if ( have_comments() ) : ?>
<h3 class="title-comments">
<span>
<?php printf( _n( 'One Response', '%1$s Responses', get_comments_number(), 'elementor-hello-theme' ), number_format_i18n( get_comments_number() ), get_the_title() ); ?>
<?php printf( _n( 'One Response', '%1$s Responses', get_comments_number(), 'hello-elementor' ), number_format_i18n( get_comments_number() ), get_the_title() ); ?>
</span>
</h3>

@ -44,7 +44,7 @@ if ( comments_open() && get_option( 'thread_comments' ) ) {
// 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 _e( 'Comments are closed.', 'elementor-hello-theme' ); ?></p>
<p class="no-comments"><?php _e( 'Comments are closed.', 'hello-elementor' ); ?></p>
<?php endif; ?>

<?php

View file

@ -22,7 +22,7 @@ if ( ! function_exists( 'elementor_hello_theme_setup' ) ) {
}

if ( apply_filters( 'elementor_hello_theme_register_menus', true ) ) {
register_nav_menus( array( 'menu-1' => __( 'Primary', 'elementor-hello-theme' ) ) );
register_nav_menus( array( 'menu-1' => __( 'Primary', 'hello-elementor' ) ) );
}

if ( apply_filters( 'elementor_hello_theme_add_theme_support', true ) ) {

File diff suppressed because one or more lines are too long

View file

@ -10,11 +10,11 @@ if ( ! defined( 'ABSPATH' ) ) {
<main id="main" class="site-main" role="main">

<header class="page-header">
<h1 class="entry-title"><?php _e( 'The page can&rsquo;t be found.', 'elementor-hello-theme' ); ?></h1>
<h1 class="entry-title"><?php _e( 'The page can&rsquo;t be found.', 'hello-elementor' ); ?></h1>
</header>

<div class="page-content">
<p><?php _e( 'It looks like nothing was found at this location.', 'elementor-hello-theme' ); ?></p>
<p><?php _e( 'It looks like nothing was found at this location.', 'hello-elementor' ); ?></p>
</div>

</main>

View file

@ -28,8 +28,8 @@ if ( ! defined( 'ABSPATH' ) ) {
<?php global $wp_query;
if ( $wp_query->max_num_pages > 1 ) : ?>
<nav id="nav-below" class="navigation" role="navigation">
<div class="nav-previous"><?php next_posts_link( sprintf( __( '%s older', 'elementor-hello-theme' ), '<span class="meta-nav">&larr;</span>' ) ); ?></div>
<div class="nav-next"><?php previous_posts_link( sprintf( __( 'newer %s', 'elementor-hello-theme' ), '<span class="meta-nav">&rarr;</span>' ) ); ?></div>
<div class="nav-previous"><?php next_posts_link( sprintf( __( '%s older', 'hello-elementor' ), '<span class="meta-nav">&larr;</span>' ) ); ?></div>
<div class="nav-next"><?php previous_posts_link( sprintf( __( 'newer %s', 'hello-elementor' ), '<span class="meta-nav">&rarr;</span>' ) ); ?></div>
</nav>
<?php endif; ?>
</main>

View file

@ -10,9 +10,9 @@ if ( ! defined( 'ABSPATH' ) ) {
</div>

<?php if ( is_front_page() && is_home() ) : ?>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php esc_attr_e( 'Home', 'elementor-hello-theme' ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php esc_attr_e( 'Home', 'hello-elementor' ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<?php else : ?>
<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php esc_attr_e( 'Home', 'elementor-hello-theme' ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php esc_attr_e( 'Home', 'hello-elementor' ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
<?php endif; ?>

<nav id="top-menu" role="navigation">

View file

@ -11,7 +11,7 @@ if ( ! defined( 'ABSPATH' ) ) {

<header class="page-header">
<h1 class="entry-title">
<?php _e( 'Search results for: ', 'elementor-hello-theme' ); ?>
<?php _e( 'Search results for: ', 'hello-elementor' ); ?>
<span><?php echo get_search_query(); ?></span>
</h1>
</header>
@ -26,7 +26,7 @@ if ( ! defined( 'ABSPATH' ) ) {
endwhile;
?>
<?php else : ?>
<p><?php _e( 'It seems we can\'t find what you\'re looking for.', 'elementor-hello-theme' ); ?></p>
<p><?php _e( 'It seems we can\'t find what you\'re looking for.', 'hello-elementor' ); ?></p>
<?php endif; ?>
</div>

@ -35,8 +35,8 @@ if ( ! defined( 'ABSPATH' ) ) {
<?php global $wp_query;
if ( $wp_query->max_num_pages > 1 ) : ?>
<nav id="nav-below" class="navigation" role="navigation">
<div class="nav-previous"><?php next_posts_link( sprintf( __( '%s older', 'elementor-hello-theme' ), '<span class="meta-nav">&larr;</span>' ) ); ?></div>
<div class="nav-next"><?php previous_posts_link( sprintf( __( 'newer %s', 'elementor-hello-theme' ), '<span class="meta-nav">&rarr;</span>' ) ); ?></div>
<div class="nav-previous"><?php next_posts_link( sprintf( __( '%s older', 'hello-elementor' ), '<span class="meta-nav">&larr;</span>' ) ); ?></div>
<div class="nav-next"><?php previous_posts_link( sprintf( __( 'newer %s', 'hello-elementor' ), '<span class="meta-nav">&rarr;</span>' ) ); ?></div>
</nav>
<?php endif; ?>
</main>

View file

@ -18,7 +18,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<div class="page-content">
<?php the_content(); ?>
<div class="post-tags">
<?php the_tags( '<span class="tag-links">' . __( 'Tagged ', 'elementor-hello-theme' ), null, '</span>' ); ?>
<?php the_tags( '<span class="tag-links">' . __( 'Tagged ', 'hello-elementor' ), null, '</span>' ); ?>
</div>
</div>