Added support for Polylang WP plugin. This code is, presumably, stable.