Notifications
Clear all

[Closed] Topics & Forums links of multilingual website, jumps back to the default language!

2 Posts
2 Users
0 Likes
1,719 Views
Posts: 2
 Odeh
Topic starter
(@odeh)
New Member
Joined: 5 years ago

I have a bilingual website, English (default) and Arabic.

I am using the multi-language plugin PolyLang, which adds /ar/ prefix to the url of the selected language (except default).

I have already translated and uploaded the necessary .mo/.po files for the Arabic language, and I have already created a Forum page for Arabic version, but with different slug, and embedded in the Arabic page the short-code of wpForo.

Everything is working just fine, and I can smoothly switch between languages. However, when I select the Arabic page of the forum, and try to click on any Topic or Forum, the page will be redirected back to the English page, and the (/ar/ prefix) will be eliminated!

I totally understand that the Forum has a base URL, which is is already set to (site-url/community/). However, I am not sure what is the best approach to handle another page for another language?

I managed using some plugin to share the same slug for the two pages, but again I faced the same issue, when I navigated through Topics & Forums, where I was redirected again to the English version of the website.

Then, for testing purpose, I tried to set the Arabic page as the base URL of the form (site-url/community-ar) but it did not work and received "Too Many Redirects Issue"!

 

Could you please help me here, and at least recommend me the best plugin to handle a multilingual forum?

I just need to grant the user the ability to view the same content of the forum but with an option to switch the language of the interface. Is that possible?

Thank you in advance for any help...

 

1 Reply
Sofy
Posts: 4233
 Sofy
Admin
(@sofy)
Support Team
Joined: 6 years ago

Hi @odeh

Thank you for using wpForo. 

 I have already created a Forum page for Arabic version, but with different slug, and embedded in the Arabic page the short-code of wpForo.

The second shortcode is not necessary anymore. the shortcode should be one.  

I totally understand that the Forum has a base URL, which is is already set to (site-url/community/). However, I am not sure what is the best approach to handle another page for another language?

Yes, you're right, wpForo has one base URL by default it's /community/.

I just need to grant the user the ability to view the same content of the forum but with an option to switch the language of the interface. Is that possible?

This can be reached if you remove the page you've created. So you'll have only one page with [wpforo] shortcode.  And if you switch to the Arabic language the interface will be automatically changed to according language, if translation exists.