babble
babble copied to clipboard
Use HTTP_REFERER when doing an AJAX request to detect locale.
Currently bbl_get_default_lang_code()
is getting used for AJAX requests which results in not translated AJAX calls. This PR also fixes the if statements without brackets in set_locale()
function.