Forums

[resolved] __( _e( or e_( translation load issues (3 posts)

  1. Rhand
    Member
    Posted 2 years ago #

    When I use _e like in

    <?php _e( 'Categories', 'theme'); ?>

    the text form the nl.mo language file is used. But when I have

    <?php printf(__ ( 'by %s', 'theme'), get_the_author()); ?>

    It is not working and then I need to translate directly inside the theme file. Why is that?

    PS I did translate the .po completely and the .mo is on the server and works..

  2. Rhand
    Member
    Posted 2 years ago #

    I did read

    __() is used when the message is passed as an argument to another function; _e() is used to write the message directly to the page. More detail on these two functions
    @ http://codex.wordpress.org/Translating_WordPress but still don't get it..

  3. Rhand
    Member
    Posted 2 years ago #

    Solved. Had to remove the space after the __

Topic Closed

This topic has been closed to new replies.

About this Topic