I am having a hard time trying to localize a plug-in called custom-taxonomies and I would appreciate some help.
I ran POEDIT against the sourcecode of the plug-in (I have used POEDIT to localise themes and plugins before), and I successfully translated all the strings and saved the localisation as custom-taxonomies-pt_BR.po and custom-taxonomies-pt_BR.mo
Then I added the following code in custom-taxonomies.php file. This is the first function being called at the very top of the file, just after the license comments:
// Enable internationalisation $plugin_dir = basename(dirname(__FILE__)); load_plugin_textdomain( 'custom-taxonomies', 'wp-content/plugins/' . $plugin_dir, $plugin_dir );
OBS: I checked other plug-ins which can works with localisations and this is pretty much the way they enable internationalisation. Please correct me if I am wrong.
2) Then I uploaded my translated files
custom-taxonomies-pt_BR.po(even though I am quite sure this one is not necessary) to the plug-in’s root directory.
However, for some reason this plug-in just doesn’t want to be localised!!! Can someone please advise?
- The topic ‘Help translating a plug-in: custom-taxonomies (doesn’t work)’ is closed to new replies.