Commit 59e4c4ae authored by numeroteca's avatar numeroteca

fix translation of strings

parent a191ebe7
......@@ -60,12 +60,12 @@ $the_content = get_the_content();
echo "<p><strong>"._e('Activity data','colormag-child')."</strong><br>";
if ( $tit!= '' ) echo __('What','colormag').": ".$tit."<br>";
if ( $place != '' ) echo __('Place','colormagchild').": ". $place."<br>";
if ( $time != '' ) echo __('Hour','wikitoki').": ".$time."<br>";
if ( $dateinit != '' ) echo __('Start date','wikitoki').": ".date( 'd/M/Y', $dateinit )."<br>";
if ( $dateend!= '') echo __('End date','wikitoki').": ".date( 'd/M/Y', $dateend )."<br>";
echo __('Type','wikitoki').": ". get_the_term_list( $post->ID, 'tipo-actividad', ' ', ', ', '' )."<br>";
echo __('Organized by','wikitoki').": ". $organizer."<br>";
if ( $numero_asistentes != '' ) echo __('Number of people','wikitoki').": ".$numero_asistentes."<br>";
if ( $time != '' ) echo __('Hour','colormag-child').": ".$time."<br>";
if ( $dateinit != '' ) echo __('Start date','colormag-child').": ".date( 'd/M/Y', $dateinit )."<br>";
if ( $dateend!= '') echo __('End date','colormag-child').": ".date( 'd/M/Y', $dateend )."<br>";
echo __('Type','colormag-child').": ". get_the_term_list( $post->ID, 'tipo-actividad', ' ', ', ', '' )."<br>";
echo __('Organized by','colormag-child').": ". $organizer."<br>";
if ( $numero_asistentes != '' ) echo __('Number of people','colormag-child').": ".$numero_asistentes."<br>";
echo "</p>";
the_content();
......
<?php
// Import styles of parent theme
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
function my_theme_enqueue_styles() {
......@@ -94,3 +95,12 @@ if ( ! function_exists( 'colormag_top_header_bar_display' ) ) :
endif;
}
endif;
// ends modifiying top bar
add_action("after_setup_theme", function () {
load_theme_textdomain( 'colormag-child', get_stylesheet_directory() . '/languages' );
}, 5);
......@@ -49,8 +49,7 @@ get_header(); ?>
//----------------------- ?>
<div id="futuro">
<?php echo "<h2>".__('Next Activities','wikitoki')."</h2>"; ?>
<?php echo "<h2>".__('Next Activities','colormag-child')."</h2>"; ?>
<?php global $post_i; $post_i = 1; ?>
<?php if ($my_query->have_posts() ) : while ( $my_query->have_posts() ) : $my_query->the_post(); ?>
......@@ -87,7 +86,7 @@ get_header(); ?>
$wp_count = $my_query->post_count; //The number of posts being displayed
?>
<div id="pasado">
<?php echo "<h2>".__('Activities archive','wikitoki')."</h2>"; ?>
<?php echo "<h2>".__('Activities archive','colormag-child')."</h2>"; ?>
<?php global $post_i; $post_i = 1; ?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment