Laconic is translation-ready theme. We will show you how to translate our theme.

There are three file types and they contain:

  1. .pot: This file is a “portable object template” that contains all of the text to be translated. It doesn’t contain the translations themselves.
  2. .po: The “portable object” file contains the original text and the translations. It’s the file we’re about to show you how to edit.
  3. .mo: This is the “machine object file.” When your translation is complete, you will convert or export your .po file to this file type so that WordPress can use it.

There are a lot of translation editors. The most popular is Poedit. It is very easy to use and we will show you how theme could be translated.

Open .pot file with Poedit

Click the “Create new translation" in Poedit and browse .pot file for our theme. You should be able to find it in the folder titled “languages” in the theme folder.

Create new translation

Select .pot file
Select language.

Poedit saves your translation according to the language and an associated country (for localization). 

Select language you have in your WordPress dashboard.

The resulting .po file will be titled according to abbreviations for the language and associated country. In our case, we’re using German, so our file will be de_DE.po. 

Poedit creates these extensions automatically, but here’s a list of country and language codes

Translate theme words you need.

The .pot file has already compiled everything you need to translate. Here you can see how this text lines look:

Save .po and .mo files.

When you save your new .po file from Poedit, the application automatically generates an additional .mo file and saves it in the same directory on your hard drive.

After saving the files to your hard drive, add a the laconic prefix to them, so for example

de_DE.po becomes laconic-de_DE.po

de_DE.mo becomes laconic-de_DE.mo

After renaming the files, use an FTP client to upload both files to the wp-content/languages/themes folder in your theme’s directory. Now you just have to tell WordPress to use the translation you created.

If you will save .po and .mo files in theme folder (wp-content/themes/saltwp/languages/) after theme update these files will be removed. So backup these files before theme update.

After uploading translation files, please, update permalinks in Settings -> Permalinks. Select "Post name" structure and save changes.