Update Polylang String Translation
Sets how one interface string reads in one language, as on Polylang's Languages > Translations screen: the site title, tagline, date format, widget titles and text, and strings themes and plugins register. Pass the original text as it reads. An empty translation removes it, so the original shows again. Returns the previous and new translation, so it can be undone by calling again with the previous one. Get language codes from mosmcp/polylang-list-languages.
Also known as: translate site title, translate tagline, string translations, translate widget title, theme strings.
| Property | Value |
|---|---|
| Ability slug | mosmcp/polylang-update-string-translation |
| Wire tool name | mosmcp__polylang-update-string-translation |
| Category | Polylang (mosmcp-polylang) |
| 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. |
| translation | string | Yes | — | How it should read in that language. An empty string removes the translation. |
| allow_unregistered | boolean | false |
Save even though no theme or plugin has registered this exact text in this request. Only use it when the text was copied exactly from the Translations screen. Default false. |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| language | string | Yes | |
| string | string | Yes | The original as Polylang holds it, which the translation is saved under (it may contain HTML entities). |
| name | string | The name it is registered under, for example "blogname". | |
| group | string | The group it is listed under on the Translations screen. | |
| registered | boolean | ||
| previous_translation | string | The translation before, or empty when there was none. | |
| current_translation | string | Yes | The translation now stored, read back from Polylang. Empty means the original shows. |
| changed | boolean | Yes | |
| notes | string[] |
| << Previous | Next >> |
|---|---|
| Set Polylang 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.