• Resolved Daniel

    (@junglized)


    Hello again,

    After sorting out a few very minor issues here comes the big one ?? I’m trying to get ASL to work with with Transposh plugin properly. What I achieved so far is getting search results translated by adding this:

    add_action('transposh_ajaxsearchlite_search', 'ajaxsearchlite_search' );

    and changing this line:

    if (isset($_POST['action']) && $_POST['action'] == 'activity_get_older_updates')

    to this:

    if (isset($_POST['action']) && $_POST['action'] == 'activity_get_older_updates' || @$_POST['action'] == 'ajaxsearchlite_search')

    in transposh.php

    Unfortunately, as getting translated results is perfectly fine now, the plugin seems to ignore translated keywords whet typing them into the search field. I type in original language keywords and then ASl looks for related items and returns them translated. When I type in translated keyword it returns no search results (as there are no tranlated items at all). How to make ASL search by translated keywords?

    Kind regards, Dan.

    • This topic was modified 7 years, 9 months ago by Daniel.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author wpdreams

    (@wpdreams)

    Hi Dan,

    I’m not too familiar with Transposh to be honest, but as far as I know it is an automated translator?

    This plugin looks in the posts database table for matches, and I’m suspecting that transposh might have a separate table to store the temporary translations. The results translation probably works because it is applied on the output of the results list.

    I’m not sure if it is possible to search the translated texts without major modifications. I have an update planned for this week, so I will definitely check, but I cannot guarantee to be able to make the plugins compatible.

    Thread Starter Daniel

    (@junglized)

    Hi,

    thanks for a reply ?? So basically what I have to do is “untranslate” (or “reverse translate” if you like) searched keyword first and then pass it to ASL search query. That’s how I understand it.

    Anyway, thank you, if I find out how to do that I’ll share my knowledge here.
    Regards, Dan.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘ASL and Transposh’ is closed to new replies.