WordPress.org

Ready to get started?Download WordPress

Forums

WP-Paginate
Simple modification to be qtranslate compatible (1 post)

  1. daword
    Member
    Posted 3 years ago #

    Hello,

    I modify some wp-translate code to support qtranslate multilang plugin translation using the Gettext function included with WordPress.

    For example, i change the line :

    $output .= sprintf('<li><a href="%s" class="prev">%s</a></li>', $prevlink, stripslashes($previouspage));

    to

    $output .= sprintf('<li><a href="%s" class="prev">%s</a></li>', $prevlink, stripslashes(__($previouspage)));

    After that, if I put, for example, the value [en:]Previous Page [fr]:Page précédente, the ouput will be translated.

    Do you think it's possible to commit theses changes ?

    Regards.

    the howto is comming from the qtranslate dev.

    http://wordpress.org/extend/plugins/wp-paginate/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic