String Translation — Translate Themes, Plugins, and UI Text
The strings outside your posts
Post and page content is only half the story on a WordPress site. The other half is made of strings — the “Read more” button on an archive page, the “Add to cart” button in WooCommerce, the “Leave a reply” label on a comment form, the placeholder text in a contact form, the labels on a sidebar widget, the hundreds of strings that ship inside your theme and every plugin you’ve installed.
Without them, visitors can end up with a page that is half in French and half in English. Lang Forge adds a string translation system built on top of WordPress’s native gettext mechanism.
Auto-registration from standard WordPress functions
When a plugin or theme calls __(), _e(), esc_html__(), or any other gettext function from an allowed text domain, Lang Forge intercepts the call and registers the string in its database automatically. You don’t have to configure anything.
- Allowed text domains are configured in Settings → String Auto-Registration Domains
- Batch INSERT IGNORE at page shutdown: the strings found on a page are registered with one query, not one query per string
- Admin-side gettext calls are skipped so your admin language stays whatever you set it to
The result: when a page of your site is shown on the front end, the strings on it that belong to an allowed text domain are added to the String Translation list, ready to be translated. By default the allowed domain is the text domain of your active theme, and strings of the default WordPress text domain are not auto-registered.
Plugin and theme text domains
To register the strings of a plugin, list its text domain, one per line, in Settings → String Auto-Registration Domains. A saved list replaces the default, so list your theme’s text domain there too. Lang Forge does not scan theme or plugin files ahead of time. On a WooCommerce store, the names of attributes, the names of the values of global attributes, and the texts of the emails that you typed in the email settings are listed when you save them, with no domain to add; the Find WooCommerce strings button on the String Translation screen lists the ones saved earlier.
Manual string registration
For edge cases where a string is generated dynamically or comes from an unusual source, you can register it by hand from the String Translation admin screen.
Translation workflow
Once strings are registered, they appear in the String Translation dashboard. Each row shows:
- Name: the string name, with a button that copies it (for a string picked up from a gettext call, the name is its source text, cut at 160 characters); a name that differs only in letter case or accent from another is a separate string with its own translation
- Domain: the text domain it came from (this column is shown when All domains is selected)
- Language: the language code of the source text
- A text box for each of your site languages, holding its translation; the box of the source language is marked “(source)”
- Source: when you pick one language in Translate to, a read-only box with the source text is added, and only that language’s text box is shown
Type a translation into a text box, or change one, and click Save Translations. With Lang Forge Pro, pick a text domain in the Domain filter, click Apply, and then click AI Translate: it covers the whole domain, not only the page you see, and every site language except the default one. A window shows the cost in credits first. It offers Translate Missing (it fills only the empty translations) when some are empty, and Re-Translate All (it overwrites the existing ones) when some are filled. Nothing runs until you click one of them, and the run works through the strings 20 at a time, saving each group when it comes back.
Filtering and paging
With a large site, the string list can easily contain thousands of entries. The screen offers:
- Domain filter: show only the strings of one text domain, for example your theme, then click Apply. Each domain in the list shows its number of strings
- Translate to filter: show the text box of one target language, together with a read-only Source box. All strings of the chosen domain stay in the list
- Paging with 25, 50, 100, or 200 strings per page
- With Lang Forge Pro, the AI Translate button translates a whole text domain in one run (see above)
The screen has no search box, no filter by translation status, and no way to select single rows.
Use cases
- Agency sites where multiple themes and page builders contribute dozens of unique UI strings
- WooCommerce stores where customer-facing strings need to match the translation of product content
- Sites using complex page builders like Elementor or Divi that ship their own string sets
- Multilingual theme development where keeping a stable translation set is part of the delivery
Ready to translate every string on your site?
String translation is included in every plan — free and paid — with unlimited strings; the AI Translate button is part of the paid AI tier and spends AI credits.