MU-Plugins: No strings can be extracted from source code

Hello,

I am running into an issue with mu-plugins.

I am getting:

No strings can be extracted from source code

Everything looks good and the POT file does exist as well as the PO and MO files.

The issue appears to be due to no mu-plugins logic in the Loco_gettext_Extraction object.

mu-plugins have a proxy loader file that is used to load the plugin properly. WordPress shows an example of how this works here.

The problem seems to be due to the proxy loader not having any gettext inside it, all it does is load the actual plugin main file which does. Seems it only checks the initial file and I haven’t looked too deep into this yet.

Would it be possible to add mu-plugin support? mu-plugins are a core component of WP and I would expect them to be supported properly. I wouldn’t mind pushing a PR but I don’t see a public repo other than a mirror that just sends me here and clearly states PR are not welcome.

This is not a collaborative project and there are no resources available for examining pull requests.

My Debug shows (this is all accurate and correct):

Configuration auto-detected from file headers

WordPress says primary text domain is “olymp-wp-core”

Primary domain path declared by author as “/olymp-wp-core/languages”

1 domain path[s] configured for “olymp-wp-core” -> [“olymp-wp-core/languages”]

Template file for “olymp-wp-core” exists at “olymp-wp-core/languages/olymp-wp-core.pot”

No strings can be extracted from source code

Current configuration as XML:

<?xml version="1.0" encoding="utf-8"?>
<bundle name="Olympusat WordPress Core">
  <domain name="olymp-wp-core">
    <project name="Olympusat WordPress Core" slug="olymp-wp-core">
      <source>
        <file>1-olymp-wp-core.php</file>
      </source>
      <target>
        <directory>olymp-wp-core/languages</directory>
      </target>
      <template>
        <file>olymp-wp-core/languages/olymp-wp-core.pot</file>
      </template>
    </project>
  </domain>
</bundle>

This is relative to the mu-plugins directory

Thanks for your time.

  • This topic was modified 36 minutes ago by SoN9ne.
  • This topic was modified 35 minutes ago by SoN9ne.
  • This topic was modified 35 minutes ago by SoN9ne.
  • This topic was modified 34 minutes ago by SoN9ne.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Your Advertisement Here