Editing the .po file is the easy part. Most problems come afterwards: the .mo file was not rebuilt, the file was saved in the plugin's own folder and deleted by the next update, or WordPress is loading a different file altogether. This guide covers the editing and those steps after it.
The translation files WordPress uses
| File | What it is | Edit it? |
|---|---|---|
.pot | The template: every original text, no translations | No, it is the source |
.po | Translations for one language, as readable text | Yes |
.mo | The .po file compiled for WordPress | No, rebuild it |
.l10n.php | A faster PHP version of the .mo (WordPress 6.5+) | No, rebuild it |
.json | Translations for JavaScript strings | No, rebuild it |
WordPress never reads the .po file. It reads the .l10n.php file if one exists, otherwise the .mo file, and the .json files for texts built in JavaScript. So every edit to a .po file has to be followed by rebuilding the files WordPress reads.
File names follow the pattern textdomain-locale: woocommerce-fr_FR.po holds WooCommerce's French translation. A file named for the wrong text domain or locale is ignored.
Where translation files live
- `wp-content/languages/plugins/` and `wp-content/languages/themes/`: the standard place. WordPress installs community translations here and may replace them when a newer community translation arrives.
- The plugin's or theme's own `languages` folder: shipped by the author and deleted on every update of that plugin or theme. Never save edits here.
- `wp-content/languages/loco/`: Loco Translate's Custom location. Safe from plugin and translation updates, and loaded by Loco Translate.
To keep your edits, save them in a location updates do not touch. If you edit a community file in wp-content/languages/plugins/, the snippet add_filter( 'auto_update_translation', '__return_false' ); stops WordPress from replacing it automatically, but clicking Update Translations under Dashboard, Updates still replaces it.
Method 1: Edit the .po file in the dashboard with Loco Translate
Loco Translate is a free plugin that edits .po files inside wp-admin and compiles the other files for you.
- 1Install and activate Loco Translate.
- 2Open the plugin or theme.
Go to Loco Translate, then Plugins or Themes, and choose it. Existing translations are listed with their location.
- 3Copy a system or author file before editing.
If the language you want lives in
languages/pluginsor in the plugin's folder, use Copy to create a version in the Custom location, and edit that one. - 4Find and edit the strings.
Search the list, select a string, and type the translation.

- 1Click Save.
Loco Translate writes the
.pofile and compiles the.mofile. If you add a new version of the plugin later, open the file and click Sync to pick up new strings.
Loco also runs a free online PO file editor in the browser. You drop in a .po file, edit it and download it again, which helps when you cannot install plugins on the site.
Method 2: Edit it on your computer with Poedit
Poedit is a desktop editor for Windows, macOS and Linux. It is free, and Poedit Pro adds a WordPress workflow.
- 1Download the `.po` file
from the server with FTP, SFTP or your host's file manager.
- 2Open it in Poedit,
search for the string, and type the translation.
- 3Save.
Poedit writes the
.pofile and compiles the matching.mofile next to it. - 4Upload both files
back to the same folder, with the same names.
According to Poedit's WordPress page, Poedit Pro can connect to your site over FTP or SFTP, find the translatable strings of a theme or plugin, create the .po file in the right place, and check placeholders and plural forms before saving. That removes the download and upload steps.
To start a new language from scratch, open the plugin's .pot file, choose Create New Translation, pick the language, and save the result as textdomain-locale.po.
Method 3: Edit it as text and compile with WP-CLI
A .po file is plain text, so any code editor can change it. Each entry looks like this:
#: includes/class-cart.php:120
msgctxt "verb"
msgid "Update"
msgstr "Mettre à jour"
msgid "%d item"
msgid_plural "%d items"
msgstr[0] "%d article"
msgstr[1] "%d articles"msgid is the original, msgstr the translation, msgctxt an optional context, and plural strings have one msgstr per plural form. Keep placeholders such as %d exactly as they are, and remove a #, fuzzy line above an entry once you have checked it, because compilers leave fuzzy entries out.
Then rebuild the files WordPress reads, from the folder that holds the .po file:
wp i18n make-mo .
wp i18n make-php .
wp i18n make-json . --no-purgemake-mo builds the .mo files, make-php the .l10n.php files, and make-json the JavaScript translations. Skip make-json if the plugin has no JavaScript strings. It only writes files for entries whose references point to JavaScript files (lines such as #: build/index.js), so a .po file without them produces nothing. If WP-CLI reports make-php as an unknown command, update it with wp cli update.
Method 4: Skip the file and edit translations on the page
If what you really want is to change a few translated texts, you may not need the file at all. Inpage Translate, a free plugin we make, edits plugin and theme translations on the page where they appear: on the front end, turn on translate mode, click a text, type, and save; for an admin screen, add the text under Translate, Add translation. The change is stored in the database and applied on top of the language file, so the file can keep coming from WordPress or Loco Translate.

When you do need files, the Import / Export screen reads .po, CSV and JSON files and writes .po, .mo, CSV or JSON for one text domain and one language. A .po file imported there can be edited on the page and exported again.
Common .po editing mistakes
- Editing the file in the plugin's folder. The next update deletes it. Save in a custom location.
- Saving the `.po` without rebuilding the `.mo`. WordPress never reads the
.po. Rebuild every format you use. - Leaving an old `.l10n.php` next to a new `.mo`. Since WordPress 6.5 the
.l10n.phpfile wins. Rebuild or delete it. More causes are in WordPress plugin translation not working. - Changing a placeholder. A translation with an extra
%scan break the page. Keep markers exactly as they are. - The wrong locale in the file name.
frandfr_FRare different files. Match the site language's code from Settings, General.
Questions about .po files
Can I edit a .mo file directly?
No. A .mo file is binary. Edit the .po file and compile it again, or export a new .mo from your editor.
What is the difference between a .po and a .pot file?
A .pot file is the template with every original string and empty translations. A .po file is a copy of that template for one language, with the translations filled in.
Where do I upload my edited .po and .mo files?
To Loco Translate's custom folder, wp-content/languages/loco/, if you use Loco. Otherwise to wp-content/languages/plugins/ (or themes/), named textdomain-locale.po and .mo, knowing that a community translation update can replace them there. Never to the plugin's own folder.
Do I need Poedit to edit a .po file?
No. Loco Translate edits it in the dashboard, any code editor can change it as text, and WP-CLI compiles it. Poedit is one desktop option among these.
Did it work for you? An honest review on WordPress.org helps other people find the plugin.



