gettext

GNU internationalization and localization library and tools

brewmacoslinux
Try with needOr install directly
Source

About

GNU internationalization (i18n) and localization (l10n) library

Commands

gettextmsgfmtmsgmergexgettextmsgcatmsgunfmtmsggrepmsgconv

Examples

Extract translatable strings from C source code$ xgettext -o messages.pot myprogram.c
Compile a message catalog (.po) to binary format (.mo)$ msgfmt -o translations.mo translations.po
Merge updated source strings with existing translation file$ msgmerge -U translations.po messages.pot