Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

WPFront Notification Bar & WPML bug (solved by WPML team)

$
0
0

Replies: 0

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 all articles
Browse latest Browse all 59525

Trending Articles