Title: Multi-language / WPML support
Last modified: August 21, 2016

---

# Multi-language / WPML support

 *  [TommyNation](https://wordpress.org/support/users/tommynation/)
 * (@tommynation)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/multi-language-wpml-support/)
 * We have a site with multiple languages and using WPML to enable switching between
   the different languages.
 * If it was possible to integrate support so that the WPML language for the site/
   post automatically picks up (i.e. English vs Spanish) that would be perfect.
 * [http://wordpress.org/plugins/tts-engine-post-to-speech/](http://wordpress.org/plugins/tts-engine-post-to-speech/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [TommyNation](https://wordpress.org/support/users/tommynation/)
 * (@tommynation)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/multi-language-wpml-support/#post-4172611)
 * I think I may have fixed this, but cannot test it fully since the TTS service
   has some network issues.
 * In tts-engine.php, locate `public static function get_language_setting() {`
 * For english and spanish support, make edits as follows:
 *     ```
       // Gets the users' language setting
       			public static function get_language_setting() {
   
       				global $languages_data, $language, $language_phrases;
       				if (ICL_LANGUAGE_CODE == 'en')	{
       					$language == ("usenglish");
       				}
       				elseif (ICL_LANGUAGE_CODE == 'es') {
       					$language == ("spanish");
       				}
       				if ( empty( $language ) )
       					$language = 'usenglish';
   
       				$languages_data = TTS_Engine_Utilities::get_language_data();
       				$language_phrases = $languages_data[ $language ];
   
       			}
       ```
   
 *  Thread Starter [TommyNation](https://wordpress.org/support/users/tommynation/)
 * (@tommynation)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/multi-language-wpml-support/#post-4172612)
 * It doesn’t work fully, but I think that’s because it’s not 100% WPML integrated
   yet. Will work on this some more later.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Multi-language / WPML support’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/tts-engine-post-to-speech.svg)
 * [TTS Engine Post to Speech](https://wordpress.org/plugins/tts-engine-post-to-speech/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tts-engine-post-to-speech/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tts-engine-post-to-speech/)
 * [Active Topics](https://wordpress.org/support/plugin/tts-engine-post-to-speech/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tts-engine-post-to-speech/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tts-engine-post-to-speech/reviews/)

## Tags

 * [tts](https://wordpress.org/support/topic-tag/tts/)

 * 2 replies
 * 1 participant
 * Last reply from: [TommyNation](https://wordpress.org/support/users/tommynation/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/multi-language-wpml-support/#post-4172612)
 * Status: not resolved