WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Ajax and internationalisation (2 posts)

  1. Ooypunk
    Member
    Posted 2 years ago #

    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.

  2. Ooypunk
    Member
    Posted 2 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