By Tran Tuan on Wednesday, 27 May 2015
Posted in General Issues
Replies 7
Likes 0
Views 639
Votes 0
I would like to add &lang=xx for the ajax requests from the following tabs:
All | My Posts | Assigned Posts | Unresolved | Resolved | Unanswered

It seems that the requests made to domain.com/?option=com_easydiscuss
How and where could I hack to change it to domain.com/?option=com_easydiscuss&lang=xx where the xx is the current site language.

Could you please help?
That does not work unfortunately.

After several days waiting for your reply I decided to look further into your code and found a bug in your foundry.js around line 28633.
The original code:
self.language          = options.language || $.locale.lang || "en";
self.baseUrl = options.baseUrl || $.indexUrl + "?option=" + self.componentName;
self.ajaxUrl = options.ajaxUrl || $.basePath + "/?option=" + self.componentName;


The correct should be as below:
self.language          = options.language || $.locale.lang || "en";
self.baseUrl = options.baseUrl || $.indexUrl + "?option=" + self.componentName + "&lang=" + self.language.substring(0,2);
self.ajaxUrl = options.ajaxUrl || $.basePath + "/?option=" + self.componentName + "&lang=" + self.language.substring(0,2);

Hope this may help others!
·
Monday, 01 June 2015 19:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I believe I have replied to your query from http://stackideas.com/forums/easydiscuss-multilingual . Kindly have a look.
·
Thursday, 28 May 2015 13:15
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Tran Tuan,

I am sorry I've missed your inquiry. Thank you for sharing.
·
Tuesday, 02 June 2015 10:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Tran Tuan,

If you don't mind can you please explain in details the complete how-to to make ED multilingual?
(the other topic is closed...)

@Stackideas
Can't you update ED with Tran Tuan solution or do you have other plans to make ED multilingual ?
·
Thursday, 04 June 2015 19:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

Thanks for heading up on this,

Regarding Tran Tuan was provided that code is for the ajax should be respect with your current site language when you click on the filter tab in Easydiscuss. And the rest Easydiscuss also supported multilingual.

Tran Tuan done a great job !
·
Friday, 05 June 2015 01:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks but it does not answer my question
·
Friday, 05 June 2015 01:46
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi,

I am really sorry for the delay of this reply as it is a weekend for us here.

Yes, example if your site available only have 2 language (English and Germany).
You have to create 2 separately menu item for English and Germany language, so when the user switch their site language to "Germany" language, the site will populate the Germany menu item of Easydiscuss.
But unfortunately Easydiscuss category can't support multilingual yet.
·
Saturday, 06 June 2015 10:33
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post