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¶
- Developer marks translatable strings in code:
_("Hello") xgettextextracts strings into a POT template- Translator creates PO file from POT, fills in translations
msgfmtcompiles PO into binary MO for runtime use