Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Does plugin work with GTranslate?
- This topic has 5 replies, 2 voices, and was last updated 5 years, 8 months ago by
Ernest Marcinko.
-
AuthorPosts
-
September 18, 2020 at 6:40 pm #29448
timburkart
ParticipantHello,
Does this plugin work with GTranslate? I have installed GTranslate on the site however when I perform a search from a translated page, the results are returned in English.
I would like the search results too be returned in the language of the translated page.
Thank you.
September 19, 2020 at 9:30 am #29454Ernest Marcinko
KeymasterHi,
GTranslate does not have an API (at least we are not aware of one), so we cannot forcefully make them compatible. GTransalte translates the contents on the fly, when they are printed to the page, it should be automatic. You might have to ask their support if they know how to force a translation programatically.
September 19, 2020 at 10:17 pm #29463timburkart
ParticipantThank you for your reply, Ernest!
Does Ajax Search Pro work with any translation plugins?
September 21, 2020 at 6:10 am #29467Ernest Marcinko
KeymasterYes, WPML and Polylang are fully supported.
September 21, 2020 at 7:26 pm #29481timburkart
ParticipantYour responses have been quite helpful. I have one more question about the behavior of Ajax Search Pro with regard to GTranslate.
It would be nice if a query made on a translated page was returned on a translated page. For example, if I search for the word “quail” on this page:
https://gmoresearch.org/de/advanced-search/
I would like the results to be displayed on a translated page:
https://gmoresearch.org/de/?s=quail&asp_active=1&p_asid=3&p_asp_data=1¤t_page_id=14432&qtranslate_lang=0&filters_changed=0&filters_initial=1&customset%5B%5D=gmo_article&aspf%5Bpublisher_name__3%5D=&aspf%5Bauthor__4%5D=&asp_gen%5B%5D=title&asp_gen%5B%5D=content
instead of this:
Is this possible?
Thank you!
September 22, 2020 at 12:39 pm #29487Ernest Marcinko
KeymasterHi,
Well, that would require some sort of an function, or any other API query to get the current language via gTranslate, then it is maybe doable. Let me know if there is any accessible developer API that I can look at.
-
AuthorPosts
- You must be logged in to reply to this topic.