Update WPML String Translation
Sets how one interface string reads in one language, as on WPML > String Translation: the site title, tagline, widget texts, and texts themes and plugins register. Needs the WPML String Translation add-on; without it, it refuses. Pass the original text as it reads and the domain it is listed under on that screen (for example "admin_texts_blogname" for the site title, "Widgets", or a theme's text domain). Returns the previous and new translation, so it can be undone by calling again with the previous one. Removing a translation is done on the String Translation screen. Get language codes from mosmcp/wpml-list-languages.
Also known as: translate site title, translate tagline, string translation, translate widget title, theme strings.
| Property | Value |
|---|---|
| Ability slug | mosmcp/wpml-update-string-translation |
| Wire tool name | mosmcp__wpml-update-string-translation |
| Category | WPML (mosmcp-wpml) |
| Plan | Pro |
Required access
| Requirement | Value |
|---|---|
| Capability | manage_options |
| Minimum default role | Administrator |
| Annotations | readOnly: false · destructive: false · idempotent: true · openWorld: false |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| language | string (min length 1) | Yes | — | The language this translation is for: its code, such as "fr", or its locale, such as "fr_FR". |
| string | string (min length 1) | Yes | — | The original text as it reads, for example the site title. Characters such as & and ' may be typed plainly or as the HTML entities WordPress stores them with. |
| domain | string (min length 1) | Yes | — | The domain (context) the string is registered under, as WPML > String Translation lists it, for example "admin_texts_blogname", "Widgets" or a theme's text domain. |
| name | string | — | Optional: the name the string is registered under, when two strings in the domain have the same text. | |
| translation | string (min length 1) | Yes | — | How it should read in that language. |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| language | string | Yes | |
| string | string | Yes | The original as WPML holds it, which the translation is saved under (it may contain HTML entities). |
| domain | string | ||
| name | string | ||
| string_id | integer | Yes | |
| previous_translation | string | The translation before, or empty when there was none. | |
| current_translation | string | Yes | The translation now stored, read back from WPML. |
| changed | boolean | Yes | |
| notes | string[] |
| << Previous | Next >> |
|---|---|
| Set Post Language |
For more information about the Secure MCP Server for WordPress plugin, explore the following resources:
Product Overview | Pricing | Try for Free | Documentation
If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.