Utility to record gettext translations based on calls to a wrapped translation function.