[wp-hackers] "This plugin is not properly prepared for localization" - what am I missing
jdg at codesymphony.co
Thu Apr 7 15:15:19 UTC 2016
I found the link to where I first read this:
> On Apr 7, 2016, at 11:05 AM, J.D. Grimes <jdg at codesymphony.co> wrote:
> Yes, this is the error that the import bot is reporting:
>> Code for stable (rsvpmaker/tags/3.7.9/ <https://plugins.svn.wordpress.org/rsvpmaker/tags/3.7.9/>) in process...
>> This plugin has a wrong text domain declaration in the file header:
>> ./rsvpmaker.php:Text Domain: rsvptoast
>> This plugin doesn't use load_plugin_textdomain().
>> Code for stable was processed.
>> Readme for stable (rsvpmaker/tags/3.7.9/ <https://plugins.svn.wordpress.org/rsvpmaker/tags/3.7.9/>) in process...
>> The GlotPress projects were updated.
>> Result of the POT import: 0 new strings added, 0 updated, 0 fuzzied, and 0 obsoleted.
>> Readme for stable was processed.
> You can find the errors for you plugin on that slack channel. I think this has been documented somewhere (a post on the make blog, I think), but maybe it isn't mentioned in the handbook.
>> On Apr 7, 2016, at 10:58 AM, Braad <work at braadmartin.com> wrote:
>> There might be other issues as well, but I see you're setting the "Text Domain" in your plugin header as "rsvptoast", but then you're using "rsvpmaker" in all your translation functions. According to https://developer.wordpress.org/plugins/internationalization/how-to-internationalize-your-plugin/ these must match, and your text domain must be set to the slug of your plugin.
>> Text Domain: rsvptoast
>> __('Thank you!','rsvpmaker');
>> On 04/07/2016 07:47 AM, David F. Carr wrote:
>>> The translations page for my plugin RSVPMaker displays the message shown
>>> That warning links to the instructions for internationalization, which I
>>> have tried to follow. Most of the key output strings are encoded with __()
>>> or _e(). I've created a POT file, and a few translations have been produced
>>> by users of the plugin. I fixed one issue with the header, where the
>>> "domain path" for the translation files wasn't specified, but I'm still
>>> getting the same message.
>>> How do I figure out what I'm missing?
>>> David F. Carr, versatile and inventive writer, editor, and web consultant
>>> Author, Social Collaboration for Dummies
>>> See my work on Forbes <http://www.forbes.com/sites/davidcarr/>, connect
>>> with me on Twitter <https://twitter.com/davidfcarr>, LinkedIn
>>> <http://www.linkedin.com/in/davidfcarr>, or Facebook
>>> david at carrcommunications.com
>>> wp-hackers mailing list
>>> wp-hackers at lists.automattic.com
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers