Localization

The frontend language of Content Egg can be different from your main WordPress language and admin dashboard language. Content Egg has its own setting for this:

  • Go to Content Egg > Settings > Frontend.

  • Set the "Website Language" option to choose the language used for the frontend display.

For most use cases, you can translate frontend strings directly from the WordPress dashboard. Please follow this guide:

Translation

Translation via POT File

Content Egg includes two localization files:

  • One for the admin interface

  • One for the frontend display

In most cases, you only need to translate the frontend.

These localization files are located in the plugin's /languages/ directory.

The easiest way to manage translations is by using the Loco Translate plugin.

Steps to Translate the Frontend Strings:

  1. Install and activate the Loco Translate plugin

  2. Go to Loco Translate > Home, then click on Content Egg

  3. In the Content Egg Frontend (content-egg-tpl) section, click on New language

  1. Initialize new translations

⚠️ Important – Avoid Common Mistakes:

  • In the Language selection, choose Custom language

  • Enter the two-letter language code that matches the one set in Content Egg > Settings > Frontend > Website Language.

✅ Correct: content-egg-tpl-fr.po ❌ Incorrect: content-egg-tpl-fr_FR.po

  1. Click "Start Translating"

  2. Translate all the required strings and save your changes

Last updated