Support » Plugin: WP-Paginate » [Plugin: WP-Paginate] Simple modification to be qtranslate compatible

  • 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));


    $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 ?


    the howto is comming from the qtranslate dev.

  • The topic ‘[Plugin: WP-Paginate] Simple modification to be qtranslate compatible’ is closed to new replies.