[resolved] Ajax and internationalisation (2 posts)

  1. Ooypunk
    Posted 4 years ago #


    I tried to make my contact form the right way, the way it is described in the Codex (send the Ajax request to admin-ajax.php).
    That works, but there localization doesn't work. Is it possible that admin-ajax.php doesn't load the internationalization-files? How can I find out?

    I tried adding load_theme_textdomain(...) to the function that handles the request, but to no avail.

  2. Ooypunk
    Posted 4 years ago #

    I solved it, this did the trick:

    add_filter('locale', function(){return WPLANG;}, 100);

Topic Closed

This topic has been closed to new replies.

About this Topic