- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我正在学习有关使用 PHP gettext http://onlamp.com/pub/a/php/2002/06/13/php.html 构建多语言网站的教程
我理解教程直到这部分:
After you have the directories all prepared, it's time to create the actual "pot" file, as it is usually referred to: the messages.po file. To do this, you will need to have PHP files that use the gettext() function to "mark" strings to be translated and use the xgettext command.
$ xgettext -n *.php
我必须在命令行中写吗?执行该命令时必须在哪个文件夹中?这是命令的 Linux 版本还是 Windows 版本?
(我在我的 wamp ini 文件中启用了 gettext 扩展)我是否必须从 GNU 网页下载 gettext 实用程序才能创建 .po 文件?
最佳答案
您可以使用Poedit 等图形工具来创建、编辑和编译.po 文件: http://www.poedit.net/
特点:
如果您更喜欢命令行,xgettext(来自gettext 工具)是从源中提取字符串的命令。它是一个 GNU 软件,可在 Linux(已为您的发行版打包)和 Windows(例如通过 Cygwin)上使用。
关于php - 如何在 Windows 上使用 xgettext 创建 .po 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2258211/
我是一名优秀的程序员,十分优秀!