moved WPML functions to inc/wpml.php