It will be useful to use Emacs PO mode which is included in the gettext package. Translation of the string in msgid line should be written in msgstr line, except for the first entry in the file. The first entry of the message catalog has a following format. Now we are ready to create .gmo file. This file is a runtime binary data file of the message catalog, so don't forget to add this file into the Samba archive if you want to redistribute it.
Installation is done with usual make install comamnd.