WordPress.org

Support

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

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

    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/

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