A WordPress site can look perfect in two languages and still feel half-finished. The posts are translated, the pages are mapped correctly, yet a button in your theme still reads “Read More” in English, or a plugin keeps showing “Add to cart” no matter which language a visitor selects. That gap usually comes down to text that lives outside your content. WPML String Translation handles that layer, and understanding how it works will save you from a lot of confusing dead ends.
What String Translation Actually Covers
WPML splits translation into two broad jobs. The first is translating content: posts, pages, products, and other entries you create and manage. The second is translating the small, fixed pieces of text that ship with your theme and plugins. These are often called strings, and they include things like form labels, error messages, button captions, date formats, and menu labels baked into the code.
Those strings are not stored as content, so the regular post editor will never show them. String Translation gives you a separate place to find each one and provide a translated version. When it works well, a visitor browsing your French site sees a fully French interface, not a mix of French content wrapped in English chrome.
Why Some Themes and Plugins Cooperate and Others Do Not
Here is the part that trips people up. WPML can only translate text that the theme or plugin author prepared for translation in the first place. Developers who build for a global audience wrap their display text in special functions such as __(), _e(), or _x(), and they load their own language files using a text domain. This is standard WordPress practice, and well-built products follow it.
If a theme hardcodes its labels directly into the output with no translation functions, WPML has nothing to grab. The string simply does not appear in the String Translation list. So before you blame WPML for a stubborn bit of English text, it helps to know whether the underlying product was written to be translatable. Reputable commercial themes and plugins almost always are. Older or poorly maintained ones often are not, and no translation tool can fix a string that was never marked as translatable.
A quick sign that things are set up properly: go to WPML → String Translation and use the option to scan the theme or plugins for strings. A translation-ready product will return a healthy list of text organized by domain. If the list is empty for something you know contains display text, that product likely was not internationalized.
Finding and Translating Strings in the Interface
The String Translation screen is essentially a searchable table. Each row is a piece of text, and each row shows the domain it came from (usually the theme or plugin folder name) plus a context label that tells you where it appears. You can search by the exact English words, filter by domain, and choose how many results to show per page.
Translating a string is straightforward. Click the translation icon for a language, type your version, and mark it complete. The change takes effect on the front end, usually right away. For strings you translate often, WPML keeps everything in its own database tables, so your translations survive theme and plugin updates as long as the original string stays the same.
That last point matters more than it first appears. When a plugin author changes the wording of a string in a new version, the old translated entry no longer matches, and you may need to translate the revised text. This is normal maintenance, not a bug, but it is worth knowing so a mysterious untranslated phrase after an update does not send you chasing the wrong problem.
Context and Domains Keep Things Organized
The same English word can need completely different translations depending on where it shows up. “Post” as a noun is one thing; “Post” as a command meaning to publish is another. WPML uses context labels and string domains to keep these apart, which is why searching can sometimes return several entries with identical source text but different translations.
Pay attention to these labels rather than translating the first match you see. Getting the context right prevents awkward results like a button that reads correctly as a heading but makes no sense as an action. When you register your own strings through a configuration file, you can assign context yourself to remove this ambiguity from the start.
Admin Texts and the wpml-config.xml File
Some text does not come from theme files at all. It comes from values you or your plugins saved in the WordPress database. Widget titles, certain theme option fields, and text set through a page builder are common examples. WPML calls these “admin texts,” and they need to be registered before they can be translated because they are user-defined rather than coded.
You have two practical ways to register them. You can do it manually through the String Translation settings by pointing WPML at the relevant option name, or you can drop a file called wpml-config.xml into your theme or plugin folder. That file lists which options and fields should be translatable. Many quality themes and plugins ship this file themselves, so those fields appear automatically without you touching anything.
If you maintain your own theme, writing a small config file is one of the most useful things you can do. It tells WPML exactly which saved values to expose for translation and prevents you from hunting through settings later. Keep in mind that field names in the WordPress options table can be nested in arrays, and getting the XML structure right takes a little care, but the payoff is a setup that behaves predictably across updates.
Sending Strings to Translators or Services
String Translation does not force you to do every translation yourself inside the dashboard. You can select a batch of strings and send them to WPML’s translation management system, which works with human translators or connected translation services. This is handy for larger sites where the volume of interface text grows beyond what one person wants to type by hand.
For a small site with a handful of strings, doing it directly in the interface is faster and costs nothing extra. Choose based on volume and who is actually doing the work, rather than assuming the service route is always better.
Common Mistakes Worth Avoiding
- Translating strings that come from a poorly coded plugin, then wondering why they never appear. Check whether the product is translation-ready before investing effort.
- Editing translation files (.po or .mo) directly and expecting WPML to pick them up. WPML manages strings in its own database, and manual file edits can conflict with that system.
- Ignoring context labels and translating the wrong matching string, which produces text that is technically translated but out of place.
- Forgetting that some text is an admin text stored in the database, so it never shows up until you register the option.
Where This Fits in a Real Workflow
A sensible order keeps the work manageable. Get your content translation solid first, then scan the theme and plugins for strings, then handle admin texts like widget titles and theme options. Doing interface strings last means you are polishing the edges after the main content already reads correctly, and it makes any remaining English text easy to spot and fix in one focused pass.
String Translation is one of those features that most people only think about once something is visibly broken. Set up properly, it fades into the background and your site simply speaks the visitor’s language everywhere, not just in the articles. The trade-off is a bit of upfront configuration and occasional maintenance after updates, which is reasonable for a genuinely multilingual experience.
Frequently Asked Questions (FAQs)
Why do some strings never appear in String Translation?
WPML can only translate text that a theme or plugin marked as translatable using WordPress translation functions. If a developer hardcoded a label straight into the output, that string is invisible to WPML. The product needs to be built for translation, and no tool can recover text that was never prepared for it.
Will my string translations be lost when I update a theme or plugin?
Your translations are stored in WPML’s own database tables, so they usually survive updates. The exception is when the developer changes the wording of a string in a new version. The old translation no longer matches the new source text, and you will need to translate the revised phrase.
What is the difference between a regular string and an admin text?
A regular string comes from the theme or plugin code. An admin text is a value saved in the database, such as a widget title or a theme option you filled in yourself. Admin texts must be registered before they can be translated, either manually or through a wpml-config.xml file.
Can I translate strings using a translation service?
Yes. You can select strings and send them to translation services connected through WPML’s translation management system. For a small number of strings, translating directly in the interface is usually quicker and avoids extra cost.
Do I need to edit .po or .mo files for String Translation?
No, and editing them directly can cause conflicts. WPML manages translated strings in its own database, so you should enter translations through the String Translation screen rather than modifying language files by hand.
What should I do about text that appears in one language but not another?
Start by searching for the English text in String Translation. If it is missing entirely, check whether the source product is translation-ready or whether the text is a saved value that needs to be registered as an admin text.
Is String Translation included with WPML, or is it a separate purchase?
String Translation is a component that comes with WPML rather than a standalone product. It works alongside the content translation features you already use to manage posts, pages, and other entries.