• I′m using twenty eleven, and I have been able to translate most of the text i need in the php, but i cannot figure out how to change posted on..by.. on the front page! I need to translate it to norwegian, so that it says Publisert .. av.. (and I can′t quite figure out the poEdit)…
    Can someone please tell me where in the php I can find the right one?
    (And yes, I have a child theme:) )

Viewing 3 replies - 1 through 3 (of 3 total)
  • Try use the google translate plugin

    Thread Starter dittas

    (@dittas)

    Thanks, but will this translate on the admin page or the entire homepage?

    Took me hours to figure that out. But I made it like this (not the best way, even stupid, I guess, but it works)
    Make a new functions.php file in your childtheme and copy this text:

    <?php
    if ( ! function_exists( 'twentyeleven_posted_on' ) ) :
    /**
     * Prints HTML with meta information for the current post-date/time and author.
     * Create your own twentyeleven_posted_on to override in a child theme
     *
     * @since Twenty Eleven 1.0
     */
    function twentyeleven_posted_on() {
    	printf( __( '<span class="sep">Geplaatst op </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a><span class="by-author"> <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>', 'twentyeleven' ),
    		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', 'twentyeleven' ), get_the_author() ) ),
    		get_the_author()
    	);
    }
    endif;
    ?>

    Where it says ‘geplaatst op’ change that to your Publisert.
    Have fun.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change posted by .. on.. in twenty eleven’ is closed to new replies.