Fix coding style and use gettext.