Skip to content
    Guide

    Translating and rewording plugins and themes

    Last updated

    Plugins and themes come with their own wording, called strings, such as "Add to cart" or "Read more". Translations of those strings are often missing, out of date or not quite right for your audience. And sometimes you simply want different words in the same language.

    The Translate module lets you translate any active plugin or theme language by language, and change its wording with overrides. Your changes are saved separately from the plugin, so they survive plugin updates. Gus can suggest translations for you to check.

    Switching Translate on

    Open the site page in MaintainHQ and choose Tools, then Translate. Press "Install and switch on Translate" (or "Switch on Translate").

    The screen has three tabs: Plugins and themes, Overrides and Settings. In WordPress, the same screens are under Tools, Translate.

    Scanning a plugin or theme

    The Plugins and themes tab lists every active plugin and theme, with how many strings it has and the languages available. Before you can translate one, it must be scanned.

    Press Scan. Translate uses the plugin’s .pot file (a list of its strings) when it ships one, marked "(from .pot)"; otherwise it reads the plugin’s code to find them, carefully enough that text in comments is never mistaken for a string. The first scan can take a while.

    If a plugin has been updated since it was scanned, it shows "Updated since scan". Press "Scan again" to pick up new strings.

    Translating strings

    1. Press a language button next to a plugin, or type a language code such as fr_FR in the box and press Open.
    2. Use "Search strings" and the Show filter (All, Untranslated, Translated, Changed by you) to find what you need. A counter shows how many are translated, and how many by you.
    3. Type your translation under each string. The shipped translation is shown beside it for reference, and plural forms get one box each.
    4. Press Save. The button shows how many changes you are saving.

    Strings may be labelled with their Context (a note that tells apart two identical words used in different ways), Script (used in JavaScript) or "No longer used".

    Suggest with Gus

    Press "Suggest with Gus" to draft translations for the untranslated strings on the page. Drafts are labelled "Draft from Gus", checked for placeholders and HTML tags, and never saved until you press Save. Each request counts towards your Gus usage like any other Gus request.

    Safe saving and backups

    Placeholders such as %s or %1$s are where the plugin inserts a value, such as a name or a number. A translation that drops or adds a placeholder or an HTML tag would break the plugin’s text, so it is refused with the reason.

    Every save backs up the previous version. Ten backups are kept per plugin and language. Under Backups, press Restore on any of them; your current translations are backed up first. You can also "Download .po" (the standard translation file) or "Remove my translations", which also keeps a backup.

    Only what you changed is stored, so the plugin’s own shipped translation keeps improving underneath your changes.

    Overrides: changing a plugin’s own wording

    An override replaces a plugin’s wording on the site, in every language or just one, including the site’s main language. The classic example is changing WooCommerce’s "Add to cart" to "Add to basket" on a British shop.

    1. Open the Overrides tab.
    2. Under "Add an override", choose the Plugin or theme and the Language (or All languages).
    3. Enter the Original text exactly as it appears in the plugin, and the Replacement.
    4. If needed, add the Context, the Original plural and the Plural replacement.
    5. Press "Add override".

    The table lists every override with Original, Replacement, Text domain and Language. Remove one with its button, or press "Undo last change".

    Settings, limits and switching off

    The Settings tab has one switch: "Use the translations saved here ahead of the shipped ones". Your translations are saved in the site’s languages folder and load ahead of the plugin’s own files.

    • WordPress’s own core strings are not covered.
    • A plugin that loads its translations very early (rare) may show its shipped wording on that page load.

    "Switch Translate off" stops your translations loading but keeps them. Removing the data, after typing REMOVE, deletes every translation, override and backup Translate saved on the site.

    Frequently asked questions

    Will my translations be lost when the plugin updates?
    No. They are saved separately from the plugin and load ahead of its own files, so updates do not overwrite them. Scan again after an update to pick up new strings.
    Can I change English wording on an English site?
    Yes. Use an override, which works in the site’s main language as well as in translations.
    Does Gus save translations automatically?
    No. Gus drafts suggestions, which are checked and marked as drafts. Nothing is saved until you press Save.
    Why was my translation refused?
    It dropped or added a placeholder such as %s, or an HTML tag. Copy the placeholders and tags from the original exactly.

    Let MaintainHQ run the routine

    Updates with automatic rollback, backups, uptime, security checks and client reports, with Gus to fix what breaks.

    Start free trial

    From £29 a month for up to 2 sites. Every plan starts with a 14-day trial.