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.

Website & Email Hosting

Get the best website & 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. 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
  2. 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

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Save 15% On All Purchases

Use this amazing, limited offer and SAVE BIG! Buy any of our WordPress plugins, extension plugins or newsletter templates.

Save 15% On All Purchases

You have Successfully Subscribed!

Pin It on Pinterest