Translating with Poedit

If your language is not included in Kalium's pre-translated languages, or if you want to modify existing translations, you can easily do so by creating or editing a .po file. The process involves translating text strings and saving the translations so that WordPress can read them. Whether you're starting a new translation from scratch or just editing existing translations, the steps are straightforward.

You don’t have to translate every string; you can choose which parts of Kalium to translate, making this method flexible and tailored to your needs.

Although Poedit is a viable method for translation, using Loco Translate is generally recommended as it offers a more user-friendly and integrated approach for translating and managing theme strings directly within your WordPress dashboard.

Starting a New Translation

  1. Download and install Poedit, a free software available for Windows, macOS, and Linux.

  2. Open Poedit and select Create new

  3. Navigate to the kalium.pot file located in the Kalium folder kalium -> languages folder. Select the file to load all English text strings into Poedit.

  4. In the left column, you'll see the original English text (Source Text). To translate, select a line, and in the lower right section of the window, enter your translation in the Translation field.

  5. Once you've translated all necessary strings, save the file with the format kalium-[language_code].po (e.g., kalium-de_DE.po for German, find the full list of language codes below) Poedit will automatically create the corresponding .mo file.

  6. Upload the .po and .mo files to the wp-content/languages/themes directory on your WordPress site.

Editing an Existing Translation

  1. Open Poedit and click Browse files button

  2. Use the search function (CMD+F on macOS or CTRL+F on Windows) to find the string you want to edit.

  3. In the Translation field, replace the current translation with your preferred text.

  4. Save the file, and Poedit will update the .po and .mo file automatically.

  5. Upload the .po and .mo files to the wp-content/languages/themes directory on your WordPress site.

WordPress Locale Codes

Below is a list of WordPress locale codes that you can use when naming your translation files.

Last updated