I'm using qTranslate for multi-language & wp-commentnavi for comment navigation. The style of my base permalinks are like so:
site.com/ -> for default language site.com/en/ -> for other language
I need help in regards to the following as they keep redirecting to the default language:
1. Comment submission
How do I hack this? I want the current language to be displayed after submission.
I found this proposed solution:
..but the problem with that is that it doesn't direct to the right comment page if there's pagination for the comments, ie. it directs to the first comment page instead of the last page where the new comment is.
2. Next/Prev comment page links
It seems that wp-commentnavi uses
previous_comments_link() for the Next/Previous comment page links respectively. For the rest of the links (eg. pages, first, & last) I can use the
qtrans_convertURL() function to direct them to the current language. But I don't know how I could hard code the links for the two former ones, ie. next/previous. Anyone knows?
3. Comment Link
I have a link in each comment to the comment link using
get_comment_link(). Something like so:
qtrans_convertURL( esc_url( get_comment_link($comment->comment_ID) ) )
For comment pages two & above, the links work fine, in that they direct to the correct language. But for links that are on page 1, although the permalinks are correct, but once opened they get redirected to the default language.
For example, in page 1, one comment have a link like so:
When opened, it redirects to:
It seems that anything with comment-page-1 is redirected to a shorter permalink, ie. it got rid of the comment page permalink, but the problem is that it also got rid of the language permalink.
How do I maintain the current language?
Anyone could help? Cheers in advance! :)