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
Download and install Poedit, a free software available for Windows, macOS, and Linux.
Open Poedit and select Create new
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.
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.
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.Upload the .po and .mo files to the
wp-content/languages/themes
directory on your WordPress site.
Editing an Existing Translation
Open Poedit and click Browse files button
Use the search function (
CMD+F
on macOS orCTRL+F
on Windows) to find the string you want to edit.In the Translation field, replace the current translation with your preferred text.
Save the file, and Poedit will update the .po and .mo file automatically.
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