xgettext (Re: replication of stuff in /usr/gnu)
Nicolas Williams
Nicolas.Williams at sun.com
Thu Jul 12 10:16:16 PDT 2007
Speaking of GNU stuff that should be better integrated into Solaris, the
GNU xgettext is a strict superset of the Solaris xgettext, and it has
important features.
In particular we used GNU xgettext features to avoid peppering gettext()
calls all over OpenSSH-derived ssh code in Solaris. Instead we use the
--keyword argument to declare several functions (e.g., fatal()), as
gettext()-like so that constant string zeroth arguments to those are
extracted for localization.
But because the GNU xgettext is not available in the default Solaris
install we can't have the ON build depend on it, so extracting ssh
messages for localization is a manual step at the moment (the developer
has to check out ssh.po, run "make _msg_manual
XGETTEXT=/opt/sfw/bin/xgettext", etc.).
ISTM that the GNU xgettext is an excellent candidate for moving from
/opt/sfw/bin to /usr/bin, in the process replacing the Solaris xgettext.
Nico
--
More information about the opensolaris-arc
mailing list