Writing Multilingual Plugins and Themes
summary
Explains why internationalization increases reach (about 65% of WordPress sites are English so ~35% are non‑English) and exactly how to implement it: use a unique text domain (usually the plugin/theme slug), call load_plugin_textdomain or load_theme_textdomain on the correct hook, wrap strings with __() and _n() (and context variants), generate POT and distribute MO files or rely on WordPress.org language packs (only complete translations are auto‑deployed). Covers PHP locale helpers like number_format_i18n and date_i18n, common gotchas (no string interpolation, use printf with positional placeholders), and tools: Pig Latin, Poedit, GlotPress/translate.wordpress.org.
AI-written summary · about
