CeraMag theme is translation ready. We have included .pot file which can be used for translating the theme into any language.
Let’s translate the text “Next Article” into German as a simple example:
Step 1 – Find the .pot file
In the ceramag theme folder, please go to assets > languages, there you can find the “ceramag.pot” file.
Step 2 – Translate text in “ceramag.pot” file
Please download and install poedit on your computer first. Then right click the “ceramag.pot” file and choose to open it with Poedit.app.
Or open Poedit.app first, then choose “Create New Translation” and choose “ceramag.pot” file.
Select the target language in the list:
Find the text you’d like to translate, then enter the translated text into “Translation” box.
When complete the translation, click “File” > “Save as”, then add “ceramag-“ as the prefix to the file name. So if the default file name is “de_DE.po”, change it to “ceramag-de_DE.po”.
Then you will get 2 files: “ceramag-de_DE.po” and “ceramag-de_DE.mo”.
Step 3 – Upload translated files to your WordPress site
Please upload the 2 files to your WordPress site via FTP. Please put the 2 files to the path “wp-content/languages/themes”, like shown in the screenshot below. You may need to create a new folder and name it “themes” if the folder doesn’t exist.
Please note: Don’t upload to wp-content > themes, the correct path is wp-content > languages > themes.
Step 4 – Switch your site language
In your WordPress dashboard, go to Settings > General > Site Language, choose the target language in the list, then save changes to let your site use the translated file.
As you can see in the screenshot below, the text “Next Article” on a single post page has been translated into “Nächster Artikel”:
And please note: when switch your site language, be careful with the language options. For example, if you choose “Deutsch (Schweiz)” instead of “Deutsch”, then the translated files should be named as “ceramag-de_CH.po” and “ceramag-de_CH.mo”. WordPress will not load “ceramag-de_DE.po” and “ceramag-de_DE.mo” for “Deutsch (Schweiz)” language option.