WordPress 4.0 language/translation not loading

If you installed WordPress 4.0 and your local language/translation is no longer loading it’s strings for your themes and/or plugins, don’t panic, there is a quick solution!

WordPress 4.0 introduced the “Site Language” setting under “Settings” in the WordPress dashboard which will show a drop down with the available languages.

1409858158wordpress-4.0-language-settings

So the WPLANG constant in your wp-config.php file is no longer needed and ineffective. If you have WPLANG defined in your wp-config.php file, you will also see a notice below the “Site Language” setting regarding this:

Note: The WPLANG constant in your wp-config.php file is no longer needed.

So just go to “Settings” and site your WordPress installation language there and it will work again.

Web & Email Hosting

Get the best web & email hosting for speed, security and peace of mind. No restrictions, freedom to do what you need in order to run your business.

Host Now
Comments
  1. Stalik on October 8, 2014

    There is no such setting in my yesterday installed WordPress. Why is that? I freshly downloaded it from WordPress.org.

    Reply
  2. Marko on June 22, 2015

    So how do I now translate theme files?

    Reply
    • Antonie Potgieter on June 22, 2015

      You can still translate WordPress themes and plugins in the same way that you did before.

      A theme needs to call load_theme_textdomain() and a plugin load_plugin_textdomain() with the relevant information to the .MO file with the string translations accordingly.

      There are some useful plugins to translate WordPress themes and plugins as well such as WPML or Codestyling Localization, etc.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Want More Content Like This?

Want More Content Like This?

Join our newsletter to get more content like this via email!

You'll receive a free, monthly email with a summary of very useful articles. No spam, just great content!

You have Successfully Subscribed!

Pin It on Pinterest

%d bloggers like this: