xlplugins
8/22/2017 - 5:49 AM

This is how we fetch translatable strings from WPML for our options.

This is how we fetch translatable strings from WPML for our options.

<?php   
/**
             * Compatibility with WPML
             */
            if (function_exists('icl_t')) {
                $translated_google_map_error_text = icl_t('admin_texts_xlwcty_global_settings', '[xlwcty_global_settings]google_map_error_txt', $options['google_map_error_txt']);
                $options['google_map_error_txt'] = $translated_google_map_error_text;
            }