如何在Poedit中设置gettext文本域? [英] How to set gettext text domain in Poedit?

查看:104
本文介绍了如何在Poedit中设置gettext文本域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要解析我的php文件,其中使用了多个文本域.我只想解析一个特定的域(其他域已被翻译)如何使Poedit做到这一点?

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?

是否需要编译绑定到某些文本域的mo文件?如果是这样,如何在Poedit中进行操作.

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

我正在使用Windows,并且不想使用Gettext安装Cigwin.

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

感谢您的帮助.

推荐答案

您不需要为gettext安装Cygwin,因为可以在Windows上使用gettext了:

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

要收集翻译字符串,您需要创建POT/PO文件,而不是二进制MO文件. 通常,这是通过gettext的xgettext实用程序完成的.

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.

这篇关于如何在Poedit中设置gettext文本域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆