kraftbj / genesis-enews-extended

WordPress widget to provide additional functionality to the Genesis eNews widget.
https://kraft.blog/genesis-enews-extended/
Other
12 stars 15 forks source link

Add WPML compat #108

Closed kraftbj closed 9 years ago

kraftbj commented 10 years ago

For custom text fields you can use this example, so when string is updated WPML recognizes properly. if (function_exists('icl_translate')) { $text = icl_translate('some_plugin_name', "some_string", $var); }

or

$icl_t = function_exists('icl_t'); $text = $icl_t ? icl_t('Content Text', 'widget text – ' . $this->id, $instance['bio']) : $instance['bio'];

kraftbj commented 9 years ago

Closing as a wontfix for now. Only widget titles and text fields are translatable. Genesis eNews Extended is better served by using a plugin that allows you to select a widget to display based on language.