Last active
September 26, 2017 13:54
-
-
Save xlplugins/2a5bc30e8c90afd5780a4133c58f1f19 to your computer and use it in GitHub Desktop.
This is how we fetch translatable strings from WPML for our options.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment