"WPML Plugin is active" message impossible to dismiss

Posted in: Newsmag
Post count: 93

BUG: This message just won’t go away no matter how many times you close it, it comes back after refreshing the page.
function td_on_translate_admin_notices() {
?>
<div class="notice notice-success is-dismissible">
<p><?php _e('WPML Plugin is active! When the plugin is active, the *.po - *.mo files are used instead of Theme Panel Translation.', TD_THEME_NAME); ?></p>
</div>
<?php

Post count: 23312

Hello CreepyRavioli,

If you will use the WPML plugin you do not use the Translations settings from our Theme panel and that’s why you will bring this warning. Please check the following tutorial here -> https://forum.tagdiv.com/using-theme-translations-together-wmpl/

Thanks for your understanding!

Post count: 93

Ok i downloaded translation.zip and extracted it on /Newsmag but the warning doesn’t go away. How can i make it go away?

Post count: 22421

Hello,

This message was added to let people know not to use the translation panel if they use wpml. It can be dismissed but not canceled out. I will add this to our list and we will try to find another implementation or this message box.

Thank you!

Post count: 162

Any news on this?

I do understand why you push this front left and center, because it must have created loads of support questions for you. I did ask, how translations work.

But now, after one week, I do know it.

How can I permanently switch this off?

Post count: 35449

Hi andxtagdiv, please check the answer from this topic -> https://forum.tagdiv.com/topic/wpml-plugin-is-active-when-the-plugin-is-active-the-po-mo-files-are-used/
Also if you are using Newspaper theme and not Newsmag, yo can check the new options of using WPML with Newspaper, here is a topic with few examples -> https://forum.tagdiv.com/topic/translate-newspaper-templates-with-wpml/

Thank you!

Post count: 162

This does not seem to work (anymore)

function td_on_translate_admin_notices() {
?>
<div class="notice notice-success is-dismissible">
<p><?php _e('WPML Plugin is active! When the plugin is active, the *.po - *.mo files are used instead of Theme Panel Translation.', TD_THEME_NAME); ?></p>
</div>
<?php

Post count: 35449

Hi andxtagdiv, if you want to remove that message, you need to comment this line of code -> https://i.imgur.com/CtBzi7c.png like this -> https://i.imgur.com/DLtPfyW.png and the function that you mentioned will no longer be call, also the path to the file is -> wp-content/plugins/td-composer/legacy/common/wp_booster/td_translate.php
Hope this will help you!

Post count: 162

… until the next theme update.

Post count: 162

Is this still the way to do it?

you need to comment this line of code -> https://i.imgur.com/CtBzi7c.png like this -> https://i.imgur.com/DLtPfyW.png and the function that you mentioned will no longer be call, also the path to the file is -> wp-content/plugins/td-composer/legacy/common/wp_booster/td_translate.php

Post count: 35449

Hi andxtagdiv,
If you are referring to this notice from Newspaper -> https://i.imgur.com/x3acQFK.png then yes, you need to comment that lines. Our developers said that there are users that use that info to know what file to edit when are using the WPML plugin, then I made a suggestion, maybe they can add an option to disable the message.
Thank you for your understanding!

Viewing 11 posts - 1 through 11 (of 11 total)
The forum ‘Newsmag’ is closed to new topics and replies.