Moved gettext to wostream interface.

Public API is unchanged.