+1 for getting this fixed. We run into the same issue. The setup described, using a proxy PHP loader + actual plugin within a subdirectory, actually ironically seems to be "the WordPress way", as can be read on the link posted earlier in this thread (here again: https://wordpress.org/documentation/article/must-use-plugins/#caveats)
Just to summarize:
- We have two plugins (that have to run) in the mu-plugins folder. Both in in their own subdirectory.
- Both plugins are being loaded with the proxy PHP loader file, which loads the mentioned plugins using require_once.
- WPML only finds the loader file (which doesn't have a text domain) and doesn't find the actual plugins (which do have a text domain).
- The strings in the plugins can not be translated, even though they are being called using the proper __() functions, which gets passed the textdomain at any time.
Expected behaviour: the plugins within the subdirectories within the /mu-plugins directory should show up in WPML, with the correct text domains. They should be "scanable" for string, so the strings become translatable.
This thread was started back in 2020. 3 freaking years and your so called team did nothing about it. Can you please move your lazy asses and do something already? I am sick of trying to find hacks to get WPML to behave as expected.
Every single time I come here for advice I find unresolved tickets.
Every single time I contact you your answers are vague and not helpful at all.
Bunch of unprofessional morons if you ask me.
This plugin caused more headaches than all other plugins combined together.
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.