Private gettext API
The current solution written to support extraction of messages and testing it uses a private gettext API. Since it's generally a bad practice I'm considering changing the code responsible for those things. Unfortunately for now I don't have idea how to do it nicely. I will leave this issue open until a proper solution would be found.