rewrite to mimic xgettext parameters