Added compatibility with Polylang.