Internationalization of message
-
Thanks for a great plugin. I’m using it on a multi-lingual site and I use mqTranslate to provide mutli-lingual stuff. For this reason I need to provide a multi-lingual cookie alert message that includes html (comment) elements, something like:
<!--:en-->Cookie Warning<!--:--><!--:fr-->Utilisation des cookies<!--:-->
The problem is that while it is possible to create such a message (and it works), when it shows up again in the textarea of the settings page for re-edit, all the html markup has been filtered out.
To fix the problem I have patched two files in the plugin:- classes/option.class.php: line 84 to remove the calls to esc_attr and strip_tags
- views/setting.php: line 28 to remove the call to strip_tags
This works, but I leave it up to you if and how you want to deal with this.
The topic ‘Internationalization of message’ is closed to new replies.