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
directoryThanks for your time.
- The topic ‘MU-Plugins: No strings can be extracted from source code’ is closed to new replies.