I am working with the qTranslate plugin to create a multi-lingual website. The plugin does a great job of translation except for on the next_posts_link
& previous_posts_link
template tags.
When a user has selected a different language the URL should change from:
http://mysite.com/test/page/2 (for default language)
to
http://mysite.com/fr/test/page/2 (for french language)
The plugin provides functions for modification/translation of URLs using the qtrans_convertURL($url)
function. The problem I am having is finding a suitable hook or filter that will allow me to modify the URL output by the next_posts_link & previous_posts_link template tags.
The closest two WordPress filters I have found are:
add_filter('next_posts_link_attributes', 'my_next_attr');
add_filter('previous_posts_link_attributes', 'my_prev_attr');
Any tips would be most welcome.