Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter TommyNation

    (@tommynation)

    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

    (@tommynation)

    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.