Localization and WPML compatibility fix