• Resolved scarpinoc

    (@scarpinoc)


    Hello,

    I wasn’t able to translate the fields:

    (*) Message Text

    (*) Button Text

    (*) Button Action

    using WPML with the standard method of scanning the plug-in’s string.
    So, I wrote to WPML support and they told me this:

    ———————–
    The problem is that this plugin is not correctly localized (this is a WordPress standard, not WPML suggestion), and this is why this plug-in deosn’t work.

    To fix the problem temporarily, you can edit the file you find in this directory:
    /wp-content/plugins/wpfront-notification-bar/templates

    called “notification-bar-template.php”.

    Go to line 71 and you will find this code:

    <? php echo $ this-> get_message_text (); ?>

    Change it as:

    <? php _e ($ this-> get_message_text (), ‘notification-frontend’); ?>

    Now, you can follow this guide:

    https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#auto-register-strings-for-translation

    This time you will find 2 identical strings, the correct one is the one with the domain “notification-frontend”.
    ———————–

    I did it and, now, it works.
    The problem is that we need to do the same also for the fields:

    (*) Button Text

    (*) Button Action

    Can you fix this bug?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter scarpinoc

    (@scarpinoc)

    – UP –

    Plugin Author Syam Mohan

    (@syammohanm)

    @scarpinoc, what is the bug here?

    Thanks

    Thread Starter scarpinoc

    (@scarpinoc)

    Hello,
    nice to meet you.
    As I wrote you, your plug-in is not possible to translate with WPML (the most popular WordPress translator plu-gin).

    In short, when I try to find the WPFront Notification Bar text string using the WPML, I don’t see nothing. This vidoe will show you the process:

    So, I wrote to WPML support and they told me that your plugin is not correctly localized (this is a WordPress standard, not WPML suggestion), and this is why this plug-in deosn’t work. So, they suggested me to add this code to your plug-in and, now, WPML is able to recognize the WPFront Notification Bar TEXT field

    ———————–
    The problem is that this plugin is not correctly localized (this is a WordPress standard, not WPML suggestion), and this is why this plug-in deosn’t work.
    
    To fix the problem temporarily, you can edit the file you find in this directory:
    /wp-content/plugins/wpfront-notification-bar/templates
    
    called “notification-bar-template.php”.
    
    Go to line 71 and you will find this code:
    
    <? php echo $ this-> get_message_text (); ?>
    
    Change it as:
    
    <? php _e ($ this-> get_message_text (), ‘notification-frontend’); ?>
    
    Now, you can follow this guide:
    
    https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#auto-register-strings-for-translation
    
    This time you will find 2 identical strings, the correct one is the one with the domain “notification-frontend”.
    ———————–

    I don’t know if this is the correct way t sold this problem.

    https://wpml.org/documentation/support/translating-the-theme-you-created/

    Thread Starter scarpinoc

    (@scarpinoc)

    Up!

    Plugin Author Syam Mohan

    (@syammohanm)

    Can you try with v2.1.0?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WPFront Notification Bar & WPML bug (solved by WPML team)’ is closed to new replies.