Forums

Make string for translation (1 post)

  1. VHNgoc
    Member
    Posted 1 year ago #

    In a theme (comment.php) has this line
    <p>You need to <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">login</a> to post comments!</p>

    When I edit it to
    <p><?php _e('You need to <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?redirect_to=<?php the_permalink(); ?>">login</a> to post comments!', 'themename'); ?></p>
    poedit says error when it updates (string incorrect)
    How can I make this sentence for translation?

Topic Closed

This topic has been closed to new replies.

About this Topic