WordPress Developer Ukraine, Kyiv
How to Translate a WordPress Theme or Plugin

How to Translate a WordPress Theme or Plugin

WordPress has a built-in localisation system based on GNU gettext. The workflow: wrap translatable strings in __() or _e(), generate a .pot template file, create language-specific .po files, compile them to binary .mo files, and load them in your theme or plugin.