gettext
[domain] stringSolaris only. Retrieve and print the translated version of string. This provides shell-level access to the facilities of gettext(3C). Translations are looked up in /usr/lib/locale/lang/LC_MESSAGES/domain.mo
. lang is the current locale (e.g., en_US
). If domain is not supplied, the value of $TEXTDOMAIN is used instead. Without a domain, or if no translation can be found, gettext simply prints string. If $TEXTDOMAINDR exists, its value is used instead of /usr/lib/locale/.