Problems with localization

1) Presuming you’re running WordPress 4.x. The WPLANG constant does nothing. WordPress 3 and below defined the default language in wp-config.php but since WordPress 4 setting your site language is done via the General Settings page in your admin area. Go to Settings > General and scroll to the bottom where is says “Site Language” next to a dropdown list.

2) The argument dirname(__FILE__).'/languages/' is wrong as this should be a relative path. Use dirname(plugin_basename(__FILE__)).'/languages/'

Leave a Comment