WordPress.org

Ready to get started?Download WordPress

Forums

Posts in Page
Pagination & non-english languages (1 post)

  1. whaus
    Member
    Posted 9 months ago #

    hi & thank you for this plugin!
    I just added the pagination to my posts_in_page-page and noticed it is always in English. Since I am using wordpress in another language, it would be great if you could replace the hardcoded words "Previous" and "Next" by something wordpress-internationalisation can handle. Unfortunately, I'm no Pro, so I just copy&pasted what I found in the theme I use, but I guess that won't work for all themes.
    I replaced the english words "Previous" and "Next" in these lines
    https://github.com/ivycat/Posts-in-Page/blob/master/lib/page_posts.php#L54-L55

    by, respectively,
    '.__( '<span class="meta-nav">&larr;</span> Older posts', 'twentytwelve' ).'
    and
    '.__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentytwelve' ).'

    http://wordpress.org/plugins/posts-in-page/

Reply

You must log in to post.

About this Plugin

About this Topic