Support » Theme: P2 » Edited author.php to correct i18n problem

  • New installation. Using P2 and Mercury.
    I did learn how to use Poedit to correct two or three other problems in the prescribed way, but I could not get the string “Updates from” (at the top of the Author’s page) to translate.

    Just telling you, I fixed it by changing (in P2/author.php, near the top):

    <?php printf( _x( ‘Updates from %s’, ‘Author name’, ‘p2’ ), p2_get_archive_author() ); ?>

    to

    <?php _e( ‘Updates from’, ‘p2’ ); ?>
    <?php printf( _x( ‘ %s’, ‘Author name’, ‘p2’ ), p2_get_archive_author() ); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Kathryn

    (@zoonini)

    Automattic Happiness Engineer

    Just telling you, I fixed it by changing (in P2/author.php, near the top):

    Thank you! I will pass this along to our developers. The fix will be in the next version of P2 from here: http://p2theme.com/

    I did learn how to use Poedit to correct two or three other problems in the prescribed way

    Do you remember where the other issues were so that we can fix those as well?

    Moderator Kathryn

    (@zoonini)

    Automattic Happiness Engineer

    Hm, I was able to get “Updates from” appearing correctly in another language. For example, here is French:

    Kathryn P2 1 5 5 by Automattic

    Could you let me know what language you were trying and exactly what wasn’t working on your end? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Edited author.php to correct i18n problem’ is closed to new replies.