qtranslate not apply for custom meta boxes and widgets issue

306 views Asked by At

I had created one plugin for meta boxes for some post types and created widget but qtranslate not apply for my meta boxes fields and widget fields. please suggest me i18n-config.json setting for my plugins and widget.

1

There are 1 answers

0
user8230352 On

Simply wrap the text with __() function, before it gets outputed, like so:

$text = __($text);
...

This should filter the text containing the qTranslate language tags to the currently selected language.

For echoing the text, use _e() instead.