NickH NickH - 1 month ago 5
HTML Question

qtranslate quicktags not working with php echo or static html

I'm working on a wordpress website and i'm using qtranslate.

Qtranslate has quicktags so you can translate text in your theme or custom fields etc. but it doesn't work in my theme.

I've tried the [:en] [:nl] version and the version.

I a'm echoing the text with php and I tought maybe that was the problem but it also won't work with static html.

Answer

you can use this:

<?php _e("<!--:en-->english text<!--:--><!--:de-->german text<!--:-->"); ?>
Comments