![]() ![]() ![]() As you can see, the string is the same as the constant, so POEdit shouldn't have a problem finding things like _( 'my string', MY_TEXTDOMAIN ) I'm using the define() exclusively for IDE code completion. Leaving this here for a record of the problem. Note: there are typos in the above code that are addressed in my answer below. Load_plugin_textdomain( MY_TEXTDOMAIN, false, plugin_dit_path( _FILE_ ) ) Īdd_action( 'plugins-loaded', 'load_mu_plugin_textdomain' ) _loader.php has the following: define( 'MY_TEXTDOMAIN', 'MY_TEXTDOMAIN' ) pot file located at as a starting point, but I'm still getting similar results. I have also tried using the blank WordPress. ![]() I have purchased the Pro version, but I think my structure is too customized to be able to benefit from the automated features of Pro. I have a very strict directory structure I must adhere to within mu-plugins, but I would like POEdit to be able to help me generate translation files for specific code within this structure, while ignoring a bunch of others.Īt the moment, POEdit is having difficulty locating valid code. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |