gettext-mcp

Parse and edit GNU gettext .po and .pot translation files safely.

Updated Apr 8, 2026
One-click install
npx skills add https://github.com/Kr00lIX/gettext_mcp --skill gettext-mcp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gettext-mcp
Source: https://github.com/Kr00lIX/gettext_mcp/tree/main/skills/gettext-mcp
Command: npx skills add https://github.com/Kr00lIX/gettext_mcp --skill gettext-mcp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manual editing of GNU gettext .po and .pot files is extremely error-prone: multi-line msgstr continuations, escaped characters, plural form arrays, context-disambiguated entries, and distinct comment types can all be silently corrupted by hand edits, while reading full catalogs directly wastes large amounts of context window space.

Core Features & Use Cases

  • Full gettext lifecycle management: 12 structured MCP tools cover translation CRUD, fuzzy flag handling, plural form validation, msgctxt disambiguation, header metadata updates, and translation coverage auditing.
  • Use case: Manage multilingual translations for a desktop or web application across dozens of locale-specific .po files without risking file corruption or wasted context from manual edits.

Quick Start

Use the gettext-mcp skill to find all untranslated entries in your project's Spanish locale .po file and add correct translations for each missing string.

Frequently Asked Questions about gettext-mcp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely edit and update gettext .po translation files without corrupting multi-line msgstr continuations?

To safely edit gettext .po files without corrupting multi-line msgstr continuations, use structured parsing and atomic disk persistence. This approach validates plural forms, format flags, and message contexts to prevent file corruption and runtime errors.

What is the best way to manage fuzzy flags and plural forms in .po files for application localization?

Managing fuzzy flags and plural forms in .po files requires structured translation lifecycle management. Automating fuzzy flag handling and validating plural form arrays prevents manual editing errors and ensures correct runtime localization for multilingual applications.

How do I audit translation coverage and find untranslated entries across locale-specific .po files?

You can audit translation coverage and find untranslated entries across locale-specific .po files by running translation coverage auditing tools. This identifies missing strings and validates message context disambiguation without wasting context window space reading full catalogs.

Does gettext workflow automation support msgctxt disambiguation and header metadata updates?

Yes, gettext workflow automation supports msgctxt disambiguation and header metadata updates. It provides round-trip-safe parsing for translation creation and updates, ensuring distinct comment types and context-disambiguated entries remain intact during automated processing.

Why does manually updating .pot files waste context and risk breaking escaped characters?

Manually updating .pot files risks breaking escaped characters because hand edits silently corrupt distinct comment types and plural form arrays. Reading full catalogs directly wastes context window space, making automated batch operations necessary for safe processing.