@brasilmorar
Hi Carlos,
I looked again. I noticed that the localization as a whole doesn’t seem to be working for this plugin.
I’m concluding that the plugin code may need to be updated by a plugin author, in order for it to start working. In fact, I think it’s best if someone (or we, when we get a chance) puts this in as a bug fix request to the plugin author!…
But if you want to do a temporary patch then you could do this fix:
In “simple-post-expiration.php”, on line 48, change this:
load_plugin_textdomain( 'pw-spe' );
, to this:
load_plugin_textdomain('pw-spe', false, plugin_basename(dirname(__FILE__)). '/languages');
That did it for me!
Once I did that, the plugin’s translations started to become loaded.
The last step, to make a Brazilian Portugese translation, it can be done by adding the appropriate .po(/.mo) file and adding it to the plugin files, like:
…/plugins/simple-post-expiration/languages/pw-spe-pt_BR.po
…/plugins/simple-post-expiration/languages/pw-spe-pt_BR.mo
Some of the resources I used:
https://www.bing.com/search?q=wordpress+plugin+internationalization+hello+world
https://codex.www.ads-software.com/I18n_for_WordPress_Developers
https://www.smashingmagazine.com/2011/12/internationalizing-localizing-wordpress-theme/
Will you write back again to let us know how you go?
-Morgan