I've written a plugin that allows users to add information in the database. It runs well but I can't translate the information using WPML. This is a simple example of the problem:
$message = 'test'; // here I get the information of the DB
Is there a way to workaround this problem? I don't know if we can use a variable instead of a string to translate. When I analize the widget in the Admin panel it don't show the string to translate.
This example works in WPML because is a string: __('test', 'my-plugin');
Thanks in advance.