I know how to translate a natural language message into the user's language using gettext.
But now I am wondering how to obtain a list of all translatable messages in a given domain.
I have obtained a raw result with something like this:
strings /usr/share/locale/${LANG:0:2}/LC_MESSAGES/$DOMAIN.mo
but I am looking for a neater solution.