• Hello, in order to translate the text related to “Format to display the post views:” and “What do display when there are no visits?” the WPML support replied to me:

    Admin text translations work if the theme/plugin stores the values in the wp_options table and uses the “get_option” function to retrieve the values.
    This plugin uses a custom function to retrieve the values stored in the wp_options table so it will always use the same string.
    The fix requires modifying one line in the plugin. If you want to try it, open “top-10/includes/admin/register-settings.php” and locate the “tptn_get_options” function and change this line:

    global $tptn_settings;

    to this

    $tptn_settings = get_option('tptn_settings');

    I changed that line and the translation then works.
    Can you make it compatible for future versions of the plugin?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Make the plugin compatible to be translated with WPML’ is closed to new replies.