Skip to main content

Diagnostics

The plugin works in the background, so it reports what it did in three places: the Diagnostics screen, Site Health and a menu in the admin bar. Start here when a translation you published does not show on the site.

Sync status​

easyi18n → Diagnostics opens with the Sync status card. Each row is a check: what should happen, what its last run did, how long ago it ran (Never run before the first) and what it counted. A row that needs your attention is shown as an error, and the head of the card counts them. Before a project is connected, the card says so and links to Connect.

The Sync status card after the first send, with the Keys and Content groups

GroupRowWhat it checksShown when
KeysSendingCollected keys reach the projectAlways
KeysDownloadingPublished translations reach this siteAlways
KeysSite scanThe plugin visits pages to read their visible textAlways
KeysText still in the original languageTranslated pages that still show text in the source languageAlways
ContentSendingThe posts and pages you chose reach the projectA content type is ticked
ContentAutomatic translationThe site asks easyi18n to translate the documents it sentTranslate Content automatically is on
ContentDownloadingTheir published translations reach this siteA content type is ticked

The messages you are most likely to meet:

MessageWhat to do
Nothing has been sent yetConfirm the first send in Sync
Not configured yet. Add your API key and projectConnect the project
Nothing collected yet, so there is nothing to syncChoose a theme or plugin and load some pages
No translations are published yetPublish a version of the project's keys
Up to date: the last check found no changesNothing. This is the normal state
The language directory is not writable, so nothing was writtenGive the web server write access to wp-content/languages/plugins
Send deferred: the API is rate-limiting this site; it will retryNothing. The next sync sends the rest
Collected text is fullClear collected text after unticking the themes and plugins you do not need
Automatic sync is overdueWP-Cron is disabled or the site had no visits. Call wp-cron.php from a system cron job
Translation runs were stopped by the project's cost warningConfirm the run in the dashboard, or raise the cost warning

A sync counts as overdue when its scheduled time passed more than 30 minutes ago. A sync that stopped running would otherwise keep showing its last success.

Site scan​

To send only the strings visitors see, the plugin requests a few pages of its own site and reads what they print. The Site scan row says how many pages it has read and what stopped the last visit, if anything did. With no theme or plugin chosen it visits nothing, and the row links to What to translate.

  • A persistent object cache. A visit runs only on WordPress's built-in cache. On a site with a cache drop-in such as Redis, the row says so and the screen prints the lines to add to wp-config.php so the drop-in stays out of those visits.
  • A redirect. A page that redirects is not followed and is not tried again by itself. Fix its address, then select Retry redirected pages.
  • The site cannot reach itself. The row points at the "Loopback request" check of Site Health, which says why.

Until a page has been read, text that public visits process without showing it is sent too, as if Text processed but not shown were ticked, so nothing is held back by a failed visit.

Text still in the original language​

After the plugin has read a page, it compares that page with its translated address and reports, on the Text still in the original language row, the share of texts that differ and the first five that are the same in both. For each it names a possible origin: a managed string with no published translation, the title or body of a post, or a file of the theme. When the origin uses a text domain the site does not manage, the row names it and links to Manage text domains, the Other text domains field of Advanced.

The comparison is a hint. A brand name or a number is the same in every language, and a different text is not proof of a good translation.

With WP-CLI you can audit any page and get the whole list:

wp easyi18n audit /pricing/ --lang=es

It prints one line for each string still in the source language, with its possible origin and where it was found.

Clear collected text​

Collected text is the site's record of the strings it has seen. Under Maintenance, it is cleared in two ways, each after you tick its confirmation box:

  • Clear one theme or plugin clears the text of the one you choose.
  • Clear everything clears all of it and frees the whole cap.

Use it when the record holds text of a theme or plugin you no longer want to translate.

  • Untick that theme or plugin in What to translate first. Clearing does not untick it, and whatever the site shows first takes the freed room, so a theme or plugin that stays ticked fills it again with the same text.
  • Nothing is deleted in the easyi18n project, and nothing is charged twice: the project recognises the keys it already has. The allowance the keys already sent used is not given back.
  • Translations already on the site stay, except those of a theme or plugin you unticked, which the next sync removes. Once text of a theme or plugin still ticked is collected again, the next sync rebuilds its files from what has been collected by then, so a string that no page has shown again yet appears in the source language until one does.

Recover post links​

The site remembers which document of the project belongs to each post. That link lives only in the site's database: restoring a backup or moving to another host can lose it, and the next send could then create a second document for a post, against an allowance that deleting does not give back.

Under Maintenance, Links to easyi18n documents has two buttons:

  • Check links reads the list of published documents in the project and says which posts lost their link. It changes nothing, here or in easyi18n, and spends no credits.
  • Recover links, after you tick its confirmation box, links each of those posts to the document the list names. It never replaces a link the site already has, creates no documents and spends no credits.

A document that was never published is not in that list, so its post stays unlinked. The next sync sends each recovered post once more; easyi18n answers that nothing changed and no allowance is spent.

Run it after a restore or a move, before the next send.

Maintenance has two more cards. Original text protection lists saves where easyi18n kept the original text, or where an edit was not saved. Translation conflicts lists texts of one setting or post field that would read the same in a language, which easyi18n then serves in the original language.

Site Health​

The plugin adds its checks to Tools → Site Health, where they show up with the checks of WordPress itself. None of them is reported as critical: in each case the site keeps working.

Three results of the plugin in the passed tests of Site Health

CheckWhat it reports
WordPress language packsA target language whose WordPress pack is not installed, with a link to install it. Without the pack, dates stay in English. Present once the site has target languages
Plural formats from the translation servicePlural translations the plugin could not read. Those strings stay in the source language. Update the plugin
Formatting tags that block a translationPosts with an empty formatting tag, each with a link to edit it. Present while a content type is ticked
Open Graph tags from more than one sourceThe theme and an SEO plugin both print social tags, so a share can show the untranslated set
The [ei] marker for text in templatesAnother plugin uses the [ei] shortcode. Use [easyi18n]…[/easyi18n] instead
Another plugin that translates the siteAnother multilingual plugin is active, so easyi18n serves no language and sends or downloads nothing. See Other translation plugins

A check that has had nothing to measure says so, for example "easyi18n has not compiled any translations yet". It does not report a pass before it has looked.

The admin bar menu​

Administrators get an easyi18n menu in the admin bar. On a public page it lists the same page in each language, so you can compare them:

The easyi18n menu of the admin bar on the Spanish home page

  • The source language is marked Original, and the language of the address you are on Current URL. The address can be Spanish while part of the text is still in the source language.
  • Every configured language is listed, including one the public switcher leaves out because the post has no published translation in it.
  • Previews, 404 pages, and posts that are not public or have a password offer no comparison.
  • When the site is not ready, the menu says what is missing: no project connected, no target language, or plain permalinks.

The menu also links to Overview, Settings and Diagnostics, and in wp-admin to View site.