This module adds support for gettext internationalization to S-Lang. All the gettext functions of Libc 2.2 have been wrapped (but the only ones tested are gettext and dgettext).
This module was generated with slirp 1.5 beta. There are a few bugs in the beta, much of the generated code is not used by the module, and weeding out the unused code saves 10k out of 20 in the object file, so only the tweaked slirp output file is included.
setlocale(LC_ALL, "");from gettext.sl. This module has not been tested with slrn.
require("gettext");
textdomain(your text domain);
There are several ways to internationalize message("hello"):
message(-"hello"); message(_("hello")); message(gettext("hello"));
define messsage(s)
{
Global->message(gettext(s));
}