The domain is matched against your translation file names. In above examples we used 'mydomain' as domain name.
You can have more than one domain for the same application, it can enhance gettext's performance to split your application translations in more than one file.