WPML ICL_LANGUAGE_CODE constant does not exist. If you want to translate something please first install the WPML plugin.