Support » Fixing WordPress » Ajax and internationalisation

  • Resolved Ooypunk

    (@ooypunk)


    Hi,

    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.

Viewing 1 replies (of 1 total)
  • Ooypunk

    (@ooypunk)

    I solved it, this did the trick:

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

Viewing 1 replies (of 1 total)
  • The topic ‘Ajax and internationalisation’ is closed to new replies.