By Radek Novotny on Monday, 06 August 2012
Posted in General Issues
Likes 0
Views 1.9K
Votes 0
I run a website which is in two languages. I would like to create categories for the first language and then categories for the second language. Then when the visitor is browsing the site in the first language he should see the discussions just from those categories dedicated to his language. I thought the categories layout would do the job, but I cannot filter by selected category there. Would you suggest any solution?
I have made some hacks to support multilingual mode by adding language field to some related tables (categories, posts, etc).
I have done almost things for both admin area and frontend area to work perfectly in multilingual mode (like the way Joomla content article and category were done).

Now, I just have only one another issue regarding to the ajax filter for the following tabs:
All | My Posts | Assigned Posts | Unresolved | Resolved | Unanswered

When I click to those tab, it query without language param (i.e. no $lang=xx in the URL). I don't know how to do now. Could you please help?

FYI, I sent my custom works to your team a few months ago with hope to have it merged into your main repository for future releases but no respond since then.
·
Wednesday, 27 May 2015 17:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Tran,

Hurm, its a bit tricky to send the language parameter in ajax. Perhaps you can try using the http referer to refer back the url in the previous request? For example you can use the following code and see how it goes.
$url = $_SERVER['HTTP_REFERER'];


Keep us updated.
·
Thursday, 28 May 2015 13:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for your reply

I found that the requests are made to url domain.com/?option=com_easydiscuss. If &lang=xx could be appended to the url, it would be fine. Could you please tell me where/which files I could modify to make such change?
·
Thursday, 28 May 2015 15:05
·
0 Likes
·
0 Votes
·
0 Comments
·
subscribed!
·
Monday, 01 June 2015 16:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Guys,

Tran Tuan already post his solution in the following forum thread, http://stackideas.com/forums/no-language-param-in-ajax-requests . Thank you for sharing Tran Tuan!
·
Tuesday, 02 June 2015 10:42
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post