Skip to content
Back to skills

Translation

ASecurity

Languages, post language and translation links, and TranslatePress string fixes, each undoable.

  • 8 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agents

Works with

  • mcp

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add wpmcp/wpmcp --skill translation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Translation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Translation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wpmcp-translation/badge)](https://www.skillsdirectory.com/skills/wpmcp-translation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: Translations: TranslatePress, Polylang, WPML
description: Languages, post language and translation links, and TranslatePress string fixes, each undoable.
version: 1.0.0
tier: free
tags: [integrations, translation]
requires_any:
  - wpmcp/list-languages
  - wpmcp/plugin-data-read#translatepress-list-languages
---

# Multilingual content

There are two models, and the plugin decides which one you are in:

- Polylang and WPML keep one post per language, linked as translations.
  Use the language tools: `wpmcp/list-languages`,
  `wpmcp/get-post-translations`, `wpmcp/set-post-language` and
  `wpmcp/link-post-translations`.
- TranslatePress keeps one post and a dictionary of translated strings.
  Use the operations on `wpmcp/plugin-data-read` and
  `wpmcp/plugin-data-write`.

Check which one the site runs before you plan: `wpmcp/list-languages`
answers only on Polylang or WPML, and `translatepress-list-languages` only on
TranslatePress.

## Polylang and WPML

1. `wpmcp/list-languages` for the codes and the default language.
2. `wpmcp/get-post-translations` on the source post: which languages already
   have a translation, and their post ids.
3. A new translation is its own post. Create it as a draft
   (`wpmcp/create-post` or `wpmcp/duplicate-post`), then
   `wpmcp/set-post-language` on it and `wpmcp/link-post-translations` with
   both `{language, post_id}` pairs.
4. Read `wpmcp/get-post-translations` again to confirm the link.

`wpmcp/link-post-translations` snapshots only the first post in the list, so
put the post whose links you are changing first; rollback restores that
post's links, not the others'.

## TranslatePress strings

Worked example. User: "The German checkout button says Kasse, it should say
Zur Kasse."

1. `translatepress-list-languages`, take the German code (for example
   de_DE).
2. `translatepress-get-strings` for that language with a search on the
   original ("Checkout"). Each string has an id, the original, the
   translation and a status (0 none, 1 machine, 2 reviewed).
3. `translatepress-update-strings` with the id and the new translation. An
   empty translation clears it.
4. Read the string back, and check the page in that language with
   `wpmcp/get-rendered-html` if the user wants to see it.

Strings shared by many pages (menus, buttons) change everywhere at once:
say so before you write.

## Undo

Supported writes here are snapshotted; `wpmcp/rollback-operation` restores the
previous language, links or string translation exactly.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.