Codestyling Localization
[resolved] load_plugin_textdomain function (5 posts)

  1. sylwiaofwarsaw
    Posted 4 years ago #

    I got this error from Codestyling Localization in reference to several plugins:

    Loading Issue: Author is using load_textdomain instead of load_plugin_textdomain function. This may break behavior of WordPress, because some filters and actions won't be executed anymore. Please contact the Author about that.

    But when I contacted the authors I got this reply from the author of Contact Form 7:

    This error message is not generated from Contact Form 7 plugin or WordPress itself. I guess one of other plugins (maybe a translation plugin?) you're using is generating it.

    The functions load_textdomain() and load_plugin_textdomain() are not equivalent. You can specify .mo file path with load_textdomain(), while you can not with load_plugin_textdomain(). Contact Form 7 has a function that allows you to create a form template set in any language. It's necessary to use load_textdomain() to realize that.


  2. floridiculous
    Posted 4 years ago #

    But does this message actually prevent you from editing the translation files with Codestyling Localization?

  3. codestyling
    Plugin Author

    Posted 4 years ago #

    This is a warning designed to show, that the Author is using a not intended way to load translations for a plugin. This may work anyway, but may have also side effects for other plugins that respond on loading filters for translations files. Because the author used the general load function, others may interprete this as normal WP translation load even it is doing a plugin translation load!

  4. michael.oeser
    Posted 4 years ago #

    I have a similar issue with a my themes. Iuse the plugin always to translate my themes but suddenly I get the same strange message.

    "Der Autor benutzt load_textdomain statt load_theme_textdomain oder load_child_theme_textdomain Funktion"

    I do NOT use "load_textdomain" in my theme, I use "load_theme_textdomain". I use that for all of my themes and it used to work.

    When I rescan the po file I can see that it reads not only the themes files but every plugin file that is located on my server as well. It also doesn´t detect the correct textdomain name. Very strange and anoying because as I said it used to work.

    Any ideas?

  5. codestyling
    Plugin Author

    Posted 3 years ago #

    This may be related to an early version of WP 3.4 ?
    I don't have any further ideas, please send me a *.zip file of the theme for analysis, if the new version 1.99.17 doesn't solve it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic