GetText Message

Hi,

Is there anyone who can explain me how to configure and use Gettext. Where to put message files and where to declare theme.

Tks a lot.