Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #228959

    Dear all,

    the AJAX-Search (location: main menu) displays two german terms below the input, when searching for a text-string which doesn’t exist. This happens in both versions of our website (standard: german / 2nd language: english). I think it is not a bug, so I kindly ask to give me some advice on how to solve that misbehaviour.

    What I did, while trying to solve it on my own:
    While earching for the strings which do not translate in the english version of our website, I found both translations in “themes\enfold\lang\de_DE.po”:

    on line60/61
    msgid “Sorry, no posts matched your criteria”
    msgstr “Entschuldigung, aber kein Eintrag erfüllt ihre Suchkriterien”


    on line 65/66.
    msgid “Please try another search term”
    msgstr “Bitte versuchen Sie einen anderen Suchbegriff”

    I used the “import .po-file”-function, imported the above mentioned .po-file and selected both terms to add them to string translation.

    The result was that I saw an existing english translation for both terms. I added the german translation for both terms, check “translation done” and saved.

    But sadly this did not solve the still existing problem.

    I hope I described my approach in an understandable way. And I am looking forward to get a hint on how to solve this issue.

    Kind regards!



    Are you using the latest version of Enfold (2.5.4)?

    I tried reproducing your issue on my local install with no success:


    This reply has been marked as private.


    Unfortunately it’s a WPML bug and the plugin devs are apparently not going to fix it – see We now created a workaround which is not very user friendly but the only solution we can provide from our end and we added a filter which helps the user to translate the text. Copy the code I posted here: to your functions.php file and replace the language shortcodes (i.e. en or fr, etc.) with your language shortcodes. Then translate the text strings (“Sorry, no posts matched your criteria”, “Please try another search term”, etc.) for each language and save the functions.php file.



    Dear Dude,
    thank you very much for your help with this. For a workarround, it is really user friendly. It works perfectly, I like!

    Keep up the excellent work. :)


Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘AJAX Search – 2 Terms cannot be localized’ is closed to new replies.