classic-theme-i18n-textdomain

classic-theme-i18n-textdomain is a skill for Claude Code, Codex from Lonsdale201/wp-agent-skills. It costs 123 tokens per session (1,735 once invoked), scanned A, original, MIT.

A guide to preparing classic PHP WordPress themes for translation, including visible text, plural wording, translator context, and translation files.

In plain words
What is it for?
Use it to set translation metadata, load theme and child-theme translations, mark strings correctly, and review PHP and JavaScript text for localization.
Why use it?
It helps make a theme's text translatable and prevents mismatched text domains or translations being loaded at the wrong time.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to set translation metadata, load theme and child-theme translations, mark strings correctly, and review PHP and JavaScript text for localization.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lonsdale201/wp-agent-skills/classic-theme-i18n-textdomain
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Lonsdale201/wp-agent-skills --skill classic-theme-i18n-textdomain
Clone the repo
git clone --depth 1 https://github.com/Lonsdale201/wp-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for classic-theme-i18n-textdomain

README.md
[![agentmods](https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/classic-theme-i18n-textdomain/github.svg)](https://agentmods.dev/skills/lonsdale201/wp-agent-skills/classic-theme-i18n-textdomain)
Your own site
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/classic-theme-i18n-textdomain"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/classic-theme-i18n-textdomain/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for classic-theme-i18n-textdomain

Your own site · 80×15
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/classic-theme-i18n-textdomain"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/classic-theme-i18n-textdomain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 123 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,735 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00123 $0.01735
Opus 5 $0.00062 $0.00868
Sonnet 5 $0.00025 $0.00347
Haiku 4.5 $0.00012 $0.00173

Measured 9d ago against content hash 94f6ed022a1d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

classic-theme-i18n-textdomain scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

theme-development/classic-theme-i18n-textdomain/SKILL.md · 235 lines

How it starts

The opening of the file, as written. The whole thing — 235 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Classic Theme Internationalization and Text Domain

Use this when adding or reviewing translation readiness in a classic PHP theme: text domain headers, PHP strings, plural strings, context, translator comments, local .mo files, and JavaScript translations.

When to Use This Skill

  • Creating or reviewing a theme style.css header.
  • Adding visible text to templates, functions.php, Customizer controls, menus, widgets, or comments.
  • Loading bundled theme translations.
  • Fixing WP 6.7+ "translations loaded too early" notices.
  • Auditing text domains before release.

Text Domain Header

Set the text domain in style.css.

/*
Theme Name: My Theme
Text Domain: my-theme
Domain Path: /languages
*/

Rules:

  • The text domain should match the theme slug.
  • Use lowercase kebab-case, not underscores.
  • Use the same literal domain in every translation call.
  • Domain Path is relative to the theme root and starts with /.
  • Use /languages unless the project has a clear reason for another directory.

Loading Translations

For themes distributed through WordPress.org language packs, WordPress can load translations from wp-content/languages/themes/.

If the theme bundles its own translations, register the path on after_setup_theme.

add_action( 'after_setup_theme', 'mytheme_load_textdomain' );

function mytheme_load_textdomain() {
	load_theme_textdomain(
		'my-theme',
		get_template_directory() . '/languages'
	);
}

For a child theme:

add_action( 'after_setup_theme', 'mytheme_child_load_textdomain' );

function mytheme_child_load_textdomain() {
	load_child_theme_textdomain(
		'my-theme',
		get_stylesheet_directory() . '/languages'
	);
}

Rules:

  • Load theme translations no earlier than after_setup_theme.
  • Do not translate strings at file load time before after_setup_theme.
  • WP 6.7+ warns when just-in-time translation loading is triggered too early.
  • Theme-bundled .mo files are named by locale, for example de_DE.mo.
  • Language-pack .mo files under wp-content/languages/themes/ are named my-theme-de_DE.mo.

Read the full file on GitHub · 235 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 235 lines · 123 tokens per session scan A 94f6ed022a1d

Subscribe to this mod's changes

classic-theme-i18n-textdomain is a skill published in the GitHub repository Lonsdale201/wp-agent-skills (22 stars, last pushed 2d ago), licensed MIT. It adds 123 tokens to every session and 1,735 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

humanizar-texto-es

Elimina patrones de escritura típicos de IA en textos en español de España para que suenen naturales y humanos. Aplica esta skill siempre que generes, edites o revises textos en español: artículos, guías, tutoriales, emails, copy comercial, publicaciones en redes sociales, documentación, informes o cualquier prosa.…

fernandotellado/ai-skills · 119 tokens

chinese-documentation

A Chinese technical-documentation style guide covering spacing, punctuation, numbers, terminology, and links when Chinese and English appear together.

jnMetaCode/superpowers-zh · 62 tokens

json-ui

CRITICAL: Use for json-ui component rendering and development. Triggers on: json-ui, json render, component catalog, report render, HTML report, I18nString, i18n, bilingual, language switch, dual language, PaperHeader, AuthorList, Abstract, MetricsGrid, Section, Highlight, Zod schema, catalog.ts, cli.ts…

actionbook/actionbook · 118 tokens

comet-bilingual-docs

A workflow for keeping Comet documentation in Chinese and English aligned across READMEs, skills, release notes, and website pages. It preserves confirmed wording, repository structure, examples, commands, links, and configuration names.

rpamis/comet · 70 tokens

dubbing

Dub audio and video into other languages using the ElevenLabs Dubbing API (dubbingv2), preserving the original speakers' voices. Use when translating videos, podcasts, or recordings into other languages, localizing media content, reviewing or correcting dubbing transcripts and translations, or regenerating a dub after…

elevenlabs/skills · 65 tokens

iflytek-text-proofread

A tool that checks Chinese writing through iFlytek’s official document-proofreading service. It looks for spelling, punctuation, wording, factual, terminology, and sensitive-content problems.

iflytek/iFly-Skills · 88 tokens