Tag Info

New answers tagged

0

After adding code to detect locale like get_locale(), I could not seeing language locale returned. So not sure how load_plugin_textdomain works to detect locale in wordpress 3.9.3.


0

The said thing is this si-contact-form would not work even when it first got installed. I originally came with load_plugin_textdomain('si-contact-form', false, 'si-contact-form/languages/' ); and it did not work so I changed it to load_plugin_textdomain('si-contact-form', WP_PLUGIN_DIR.'/si-contact-form/languages/' ); and it did ...


0

You are passing a wrong path. The third parameter of load_plugin_textdomain() is the relative path to WP_PLUGIN_DIR where mo files are located; you are using absolute path instead. The correct is: load_plugin_textdomain('si-contact-form', false, 'si-contact-form/languages/' ); Also, you said that the mo files are located in ...



Top 50 recent answers are included