How to set gettext text domain in Poedit?

余生颓废 提交于 2019-12-10 15:47:29

问题


I need to parse my php files where is used several text-domains. I want to parse just one specific domain (others have been already translated) How to make Poedit to do that?

Is it required to compile mo file bounded to some text-domain? If it is, how to do it in Poedit.

I am using windows and do not want to install Cigwin with Gettext.

Thanks for any help.


回答1:


You don't need install Cygwin for gettext, because there is ready to use gettext for windows: http://gnuwin32.sourceforge.net/packages/gettext.htm

To gather strings for translations you need to create POT/PO files, not binary MO files. Usually this is done via xgettext utility from gettext.



来源:https://stackoverflow.com/questions/2240033/how-to-set-gettext-text-domain-in-poedit

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!