Gettext automatic comments generation
问题 I'm doing i18n for a php project using gettext. I'd like to use the automatic comment feature to give hints to translators when translating long phrases replaced by id. What I want to obtain is the following po file #: full-path-to-file/index.phtml:3 #. a very long text which should replaced by _('foobar') msgid "foobar" msgstr "" In this way the translator can see what he should translate when he see the key foobar using POEdit or some analogue tool in the programmer comment box. I've tried