Localization (Theme Translation)

Translating your theme is pretty easy with WordPress. Essentially, it involves these 3 steps:

  1. Update your WordPress to the latest version (atleast v4.3)
  2. Switch your WordPress language. This takes care of all the default WordPress strings
  3. Install a plugin like Loco Translate to translate the theme specific strings

Note: You can also use this plugin to translate plugin specific strings!!

Switching WordPress Language

Change your default WordPress language by going to Settings > General. If you do not see the option below, you will need to update your WordPress. If you have translated your site in the past for previous WordPress versions (which used wp-config.php to init translation), then you will need to remove the translation code from your wp-config file.

Translating Theme Strings
  1. Install and activate the Loco Translate plugin.
  2. In your wp-admin, go to Loco Translate > Manage Translations
  3. Find your active theme and click on New Language

     
  4. Select your language in the next screen.
    We highly recommend using the global directory to store your translations. This way you wont lose your translations when you update the theme or WordPress.

     
  5. When translating, remember to Sync your file the first time. After this, you need to sync the file only when you update the theme.