Closed afragen closed 9 years ago
@coenjacobs hold on this. I think I have a better idea. Will update when I get out of operating room and back to computer.
My better idea wasn't better. Let me know what you think of this?
Much of what I'm trying to figure out here is how to create translatable strings and this would include "this plugin". That's why I originally had that as the default for $plugin_name
though that won't work as it's not translatable in that location.
We could add $this->plugin_name = __( 'this plugin' );
to the constructor and then the name set function would be a lot simpler. Then the admin notices could have default or actual plugin names.
If you want me to adjust this PR or create a new one to show you let me know. My goal is to make the strings i18n.
I think #27 is a better construct. Set $plugin_name
in constructor and refactor notices.
create method to accept plugin name