Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

load_plugin_textdomain not working

Hey i'm trying to localize a plugin called Donate Plus ( which locallized technicly).

the plugin came with en_CA and de_DE files, i've tried creating a he_IL file without success. So i've tried with the de files came with the plugin but didn't work.

I've set the WPLANG in wp-config.php to de_DE yet that dosen't change the code.

this is the setting code :

load_plugin_textdomain( 'dplus', '/wp-content/plugins/donate-plus' );

And i did check that all the string are set to be localized.

Anyone has a clue?

like image 389
eric.itzhak Avatar asked Apr 19 '12 19:04

eric.itzhak


1 Answers

I just was with a similar isue, did you try to rename your files from de_DE.po and de_DE.mo to name-of-plugin-de_DE.mo and name-of-plugin-de_DE.po (changing name-of-plugin with yours, of course)?

dplus-de_DE.mo and dplus-de_DE.po It must work ;)

like image 105
darthcharmander Avatar answered Oct 18 '22 13:10

darthcharmander