我正在使用 xgettext 生成 .po 文件。但它给了我一个简单的行的奇怪输出:
<?php echo _("You must click the link to verify your e-mail and activate your account."); ?>
结果:
msgid ""
"You must click the link to verify your e-mail and activate your account."
msgstr ""
当我删除 - 或点时,一切正常。
是否有解决方案/已知错误?我真的很困惑:)
谢谢!
最佳答案
将行更改为:
<?php echo _("You must click the link to verify your e\-mail and activate your account\."); ?>
那应该转义字符。
关于php - xgettext 给了我一个简单的行 : 的奇怪输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16361313/