Translate variables with POEdit/xgettext
问题 I am using PHP , Zend Framework and Zend_Translate (gettext adapter). To edit translations I use POEdit which utilizes xgettext to fetch strings to be translated. POEdit (xgettext) will search for keywords to find strings to translate. So, if searching for the keyword translate , POEdit will have no problem finding the 'Text to translate' string when the text is passed to the translate function directly like: echo translate('Text to translate'); But, in ofther cases strings will be passed to