How to edit the .po file manually

Instead of translating the theme via Loco Translate which is a user-friendly way to translate or edit the theme strings, you can also manually translate the theme by translating the .pot file via Poedit software.

WordPress uses .po and .mo files to translate a theme or plugin, and they are generated from the .pot file which is the core translation template. When purchasing Kalium you will get the kalium.pot too and then you can start translating it to any language you need.

 

Start translating with Poedit

  1. The first step to start the translation is to get the Poedit, a free software compatible for operative systems such as Windows, MacOS and Linux. After you’ve installed Poedit software you can start translating.
  2. From the downloaded Kalium files go to Kalium Full Package and unzip the kalium.zip file, get into the unzipped kalium folder and then into the language folder, there you should find the kalium.pot file and open it.
  3. Open this Github link, and download kalium.pot file, then just open it.
  4. Poedit will open the file where you should firstly click on Create New Translation and then in the Language of your translation you will need to select the language you want to translate Kalium, click OK to continue.
  5. Now choose from the word list or if you want to find it quickly, go for CMD+F (CTRL+F) to find a word quickly.
  6. In the Translation text area type the translation of the selected word above, or simply choose a word recommended by Poedit in the right side.
  7. Repeat this for all the words you want to translate and then go to File > Save As or simply CMD+S (CTRL+S) to save your file as translation file, save it as kalium-sq.po (sq is the language code for Albanian) the .mo file will be generated automatically as a compiled version of .po.
  8. Go to your WordPress installation wp-content/languages/themes and paste the kalium-sq.po and kalium-sq.mo files here.
  9. That’s it, you just translated Kalium manually with Poedit.

P.S: In many languages that offer many language variations you must specify the exact format (e.g. kalium-de_DE.po, kalium-fr_FR.po or kalium-it_IT.po).

Was this article helpful?