"qtranslate style" navigation links
I created a WordPress Multisite with Buddypress and qtranslate for providing translations in several languages. I have also downloaded the desired .po and .mo files.
The URL scheme is: http://www.sitename.com/xx/members/username
–> xx is the language code given by qtranslate (e.g. en/fr/de/…)
The qtranslate language switcher is working properly and the buddypress page is showing the associated translated content. So far as good, because when I use the navigation links inside a buddypress page (Profile page, Member page, etc.) the “xx” language code is not present and if I navigate further, the language switches back to english (as it is the default language of the site).
I tried to use the following code snippet in bp-core-filters.php
” add_filter(‘bp_core_get_root_domain’, ‘qtrans_convertURL’); ”
Voila! Now, all buddypress links show the right “xx” language code according to the URL scheme you can see above. However, at this point the profile and group sites aren´t loading any more and I get an error message “The site has to many redirections”. This also happens if I try to copy/paste the URL in a new browser tab (which has been working properly before).
Is anybody there who knows a solution for this problem, because qtranslate is widely used and many people would be glad if they could use buddypress together with qtranslate in this way.
You must be logged in to reply to this topic.