Skip to content

TranslatePress review: when it fits a WordPress site

Decide whether TranslatePress is the right translation plugin for your WordPress site, then run it well. You will see how it translates pages, how to cache each language, what changes for WooCommerce, and what to do when the gettext optimization notice appears.

TranslatePress fits a WordPress site well when every translated page mirrors an original page, as on a bilingual English and French business site in Canada. It fits less well when each language needs its own articles, or when many visitors land on pages your cache can’t store. The plugin translates the finished HTML of each page as it leaves the server, instead of keeping a separate copy of every post per language. Setup is fast and translators work on the live page, but the translation step now runs on every request your cache misses. If you cache each language URL and keep an eye on the uncached pages, TranslatePress runs smoothly. If your languages need different content, pick Polylang or WPML instead.

What you’ll accomplish

  • Decide, with clear criteria, whether TranslatePress suits your site or whether a post-per-language plugin suits it better.
  • Understand where translations live in the database, so backups, migrations and staging copies keep them.
  • Confirm that your page cache stores a separate copy of each language and never serves a half-translated page.
  • Check the WooCommerce pages that bypass the cache, where the translation step runs on every visit.
  • Clear the “optimizing gettext database tables in the background” notice when it lingers.

Prerequisites

  • WordPress with TranslatePress (the free plugin, slug translatepress-multilingual) installed. The checks below use the 3.3 releases; older versions name a few things differently.
  • Shell access with WP-CLI installed. Every wp command below runs from the site’s document root, the folder that holds wp-config.php.
  • Read access to the database. The examples assume the default wp_ table prefix; run wp db prefix to see yours.
  • A running example: example.ca, default language Canadian English (en_CA), translated into Canadian French (fr_CA) under /fr/.

How it works

Request path for a French page on a TranslatePress site, from the page cache through WordPress and the TranslatePress output buffer to the dictionary lookup

WordPress always builds the page in the default language. TranslatePress opens an output buffer (it holds the finished HTML in memory before it goes to the browser) very early in each front-end request. When the request is for /fr/services/, the buffer callback parses that HTML, collects every visible string, and looks them all up in one query.

The lookup goes to a dictionary table named after both languages. For our example it is wp_trp_dictionary_en_ca_fr_ca. Each row holds an original, a translated value and a status: 0 means not translated yet, 1 machine translated, 2 reviewed by a person. Text that comes from themes and plugins through gettext (WordPress’s system for translatable interface strings such as “Add to cart”) goes into separate per-language tables such as wp_trp_gettext_fr_ca.

A string missing from the dictionary is inserted with status 0. If automatic translation is on, TranslatePress sends new strings to the engine while the page renders, saves each batch, and shows the result. Current versions cap that work at a time budget per request (10 seconds by default) and leave the rest for later page loads. The string stays in English when automatic translation is off. It also stays in English when the visitor looks like a search engine crawler and the Block Crawlers setting is on, which it is by default.

Three consequences follow from this design.

  1. The French page can’t differ much from the English one. There is one post, rendered once, then translated. Polylang and WPML create a separate post per language, so the French page can carry different sections or a different layout.
  2. Uncached requests pay for the translation step. Parsing the HTML and running the lookup takes server time on every request the cache doesn’t answer.
  3. The default language is part of the table name. Pick it once. Changing it later points TranslatePress at a different set of tables.

Free version or paid add-ons

The free plugin covers one translation language, the visual editor and Google Translate with your own API key. It also includes a free allowance of TranslatePress AI words (2,000 at the time of writing). It outputs hreflang tags too, the link tags that tell search engines which URLs are translations of each other. That is enough for many bilingual Canadian sites. The paid versions add more languages, the SEO Pack (translated URL slugs, page titles and meta descriptions), translator accounts, a separate domain per language and a menu per language. They also add DeepL, a machine translation service that bills its API usage separately. Plans change, so check the vendor’s current pricing page before you decide.

Step-by-step

  1. Confirm the plugin and its version.

    wp plugin list --name=translatepress-multilingual --fields=name,status,version

    Example output:

    +-----------------------------+--------+---------+
    | name                        | status | version |
    +-----------------------------+--------+---------+
    | translatepress-multilingual | active | 3.3.8   |
    +-----------------------------+--------+---------+

    An empty table means the plugin isn’t installed under that slug. A status of inactive means translations still sit in the database but nothing is served in French.

  2. Read the language settings. The settings live in one option called trp_settings.

    wp option pluck trp_settings default-language
    wp option pluck trp_settings translation-languages --format=json
    wp option pluck trp_settings url-slugs --format=json

    Example output:

    en_CA
    ["en_CA","fr_CA"]
    {"en_CA":"en","fr_CA":"fr"}

    The URL slug for French is fr, so French pages live under /fr/. If default-language is en_US on a Canadian site, decide now whether to keep it. Changing it after translating means starting from a new dictionary table.

  3. List the translation tables. These must travel with every backup, migration and staging copy.

    wp db tables 'wp_trp_*' --all-tables

    Example output:

    wp_trp_dictionary_en_ca_fr_ca
    wp_trp_gettext_en_ca
    wp_trp_gettext_fr_ca
    wp_trp_gettext_original_meta
    wp_trp_gettext_original_strings
    wp_trp_original_meta
    wp_trp_original_strings

    Depending on version and settings you may see a few more wp_trp_ tables, such as a machine translation log. If a migration tool lets you pick tables, select all of them. A missing dictionary table on the new server means every French page falls back to English.

  4. Count what is translated and what is waiting.

    wp db query "SELECT status, COUNT(*) AS strings FROM wp_trp_dictionary_en_ca_fr_ca GROUP BY status"

    Example output:

    +--------+---------+
    | status | strings |
    +--------+---------+
    |      0 |     386 |
    |      1 |    5214 |
    |      2 |     947 |
    +--------+---------+

    Status 0 rows are strings visitors have seen in English on French pages. A status 3 row can appear too, if you turned on Automatic Translation Memory. That setting reuses an existing translation for a new string that is at least 95% similar. A count that keeps growing tells you new content is outpacing your translators, or that automatic translation stopped (an expired API key or a reached daily limit are the usual causes).

  5. Make the page cache store each language separately. Because French pages have their own URLs, any page cache keyed on the URL keeps /services/ and /fr/services/ apart with no extra rules. Request a French page twice and read the cache header your stack sends.

    curl -sI https://example.ca/fr/services/ | grep -i cache
    curl -sI https://example.ca/fr/services/ | grep -i cache

    Example output (LiteSpeed Cache; other stacks use a different header name):

    x-litespeed-cache: miss
    x-litespeed-cache: hit

    A hit on the second request means the French page is cached under its own URL. If it never turns into a hit, check that /fr/ isn’t on your cache plugin’s exclusion list.

  6. Keep half-translated pages out of the cache. The cache stores whatever the first visitor received. If automatic translation ran out of time on that request, the cached copy contains English fragments until it expires. Two habits prevent this. Run automatic translation over new pages before they go live, by opening them yourself in the French version. Then purge the cache for those URLs once the dictionary has caught up. Also check your cache preloader, the tool that visits pages ahead of real visitors to fill the cache. Look at its user agent, the name a client sends with each request. TranslatePress treats any user agent containing words like “bot”, “crawl”, “spider” or “google” as a crawler and skips automatic translation for it. A preloader with such a name fills the cache with untranslated strings.

  7. Clear the gettext optimization notice if it lingers. After updating to the 3.3 releases, admins may see “TranslatePress needs to optimize gettext database tables” with a Start optimization button. Once started, the notice changes to “TranslatePress is optimizing gettext database tables in the background. Translations continue to work while this runs.” The work runs in batches through background requests the site sends to itself. A WP-Cron check every minute restarts it if those stall. WP-Cron is WordPress’s built-in task scheduler, and it only fires when the site gets traffic. Check the state of the task:

    wp option get trp_gettext_tables_optimization_330
    wp cron event list --hook=trp_batch_process_healthcheck --fields=hook,next_run_relative,recurrence

    Example output:

    no
    +-------------------------------+-------------------+------------+
    | hook                          | next_run_relative | recurrence |
    +-------------------------------+-------------------+------------+
    | trp_batch_process_healthcheck | 41 seconds        | 1 minute   |
    +-------------------------------+-------------------+------------+

    no means the task is still running, yes means it finished, and failed means it stopped with an error. An error saying the option doesn’t exist means the optimization was never started. If the value stays no for hours, push the queue along by hand:

    wp cron event run --due-now

    Example output:

    Executed the cron event 'trp_batch_process_healthcheck' in 0.027s.
    Executed the cron event 'trp_batch_process' in 7.903s.
    Success: Executed a total of 2 cron events.

    The command runs every due event on the site, so other plugins’ hooks may appear in the list too. Repeat until the option reads yes. Translations keep working while it runs, so there is no need to rush it during business hours.

Validate it works

Run these against the live site after any change to languages, caching or the plugin version.

curl -s https://example.ca/fr/services/ | grep -o '<link rel="alternate" hreflang="[^"]*" href="[^"]*"'

Example output:

<link rel="alternate" hreflang="en-CA" href="https://example.ca/services/"
<link rel="alternate" hreflang="fr-CA" href="https://example.ca/fr/services/"
<link rel="alternate" hreflang="en" href="https://example.ca/services/"
<link rel="alternate" hreflang="fr" href="https://example.ca/fr/services/"

Each language points at the other and at itself, which is what search engines expect. Without the SEO Pack the slug stays services in both languages, which is normal. An x-default tag is off by default. Turn it on under Settings → TranslatePress → Advanced with the setting Enable the hreflang x-default tag for language.

Next, look for leftover English on a French page you know is fully translated:

curl -s https://example.ca/fr/services/ | grep -c "Request a quote"

Example output:

0

Any number above 0 means the cached copy still holds the English string. Purge that URL and request it again. Finally, rerun the status count from step 4 a week later. A stable or falling count of status 0 rows means translation is keeping up.

Troubleshooting

  • French pages show English on a new server. The dictionary table didn’t come across, or the table prefix changed. Compare wp db tables 'wp_trp_*' --all-tables on both servers and import the missing tables.
  • Some strings never translate, even with automatic translation on. Check the visitor. Crawlers don’t trigger automatic translation when Block Crawlers is on, which is the default. Open the page yourself in the French version, then purge the cache.
  • Cart totals or mini-cart text switch back to English. WooCommerce refreshes these through AJAX requests, small background calls that update part of the page without a reload. TranslatePress translates server-side AJAX responses, but strings inserted later by JavaScript depend on its dynamic translation feature. Make sure Disable dynamic translation is off under the Advanced tab.
  • The gettext optimization reports “failed”. The failure notice includes a Retry link, and the same link appears on the Troubleshooting tab of the Advanced settings. The notice usually adds the error message, so read it first. Before retrying, confirm WP-Cron can run. If wp config get DISABLE_WP_CRON returns 1, only a system cron job triggers it, so add one or run wp cron event run --due-now by hand. A firewall rule that stops the server from reaching its own public address also stalls the background requests.
  • Checkout and account pages feel slow in French only. These pages are never cached, so the translation step runs on every visit. Use the Disable translation for gettext strings option only if those strings already come translated through the plugins’ own .mo language files, and test checkout end to end afterwards.

When this is the wrong approach

TranslatePress is a weak choice when the French site needs different content, not the same content translated. A Québec landing page with its own offer or a French blog with articles that never exist in English both push against its one-page-two-languages model. A paid add-on can show different menu items per language, but the pages behind them are still shared. Polylang and WPML handle that by creating a separate post per language; the Polylang and WPML comparison covers that side.

It also strains on shops where most traffic is logged in or in the cart, because those requests skip the page cache and pay for the translation step every time. A large catalogue on its own is fine, since each lookup only covers the strings on the current page. The real cost is the share of uncached traffic.

If your main worry is search visibility rather than the plugin itself, start with hreflang on multilingual WordPress, which applies whichever plugin you choose. The plugin’s own listing on WordPress.org and the TranslatePress documentation describe the current feature split between the free plugin and the add-ons.

Running WordPress that earns real money deserves an operator — Stack Harbor runs that stack under Enterprise WordPress; book an infrastructure consult.