Translations does not work with .pot file

The question:

I’ve created a theme at and it seems it is multi-language ready.

There is a .pot file in the language folder, so I downloaded POEdit and translated the things in there (like Posted on, Edit, 1 Comment, x Comments and so on)

Are the above posted words not from the theme but from WordPress? If so, why it is in English although I have a German WordPress installed (Backend is in German)?

So I saved it and also as a .mo file and uploaded both files on my server into the languages folder. But the translations are not working

The Solutions:

Below are the methods you can try. The first solution is probably the best. Try others if the first one doesn’t work. Senior developers aren’t just copying/pasting – they read the methods carefully & apply them wisely to each case.

Method 1

When naming your po and mo files in a theme, you need to only make use of the language code to name these files. Any other convention will not work

For example, my blog is in Afrikaans and the localization language code is af_AF. My mo and po files are named accordingly, ie, af_AF.po and

I’m not sure what the codes are for German, but change the filenames accordingly

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Comment