Skip to content

Gettext

Summary

GNU gettext — the most widely used internationalization (i18n) framework for software. Uses PO files to store translations and provides tools for extracting, managing, and compiling translated strings.

How It Works

  1. Developer marks translatable strings in code: _("Hello")
  2. xgettext extracts strings into a POT template
  3. Translator creates PO file from POT, fills in translations
  4. msgfmt compiles PO into binary MO for runtime use

See Also