Php 带链接的Gettext translate字符串

Php 带链接的Gettext translate字符串,php,gettext,translate,Php,Gettext,Translate,我有一个字符串要用gettext翻译,如下所示: Check your email for an order confirmation or <a href="some_link">click here</a> to see your orders. "Check your email for an order confirmation or _ClickHere_ to see your orders" 然而,我想象译者会想: 什么是****这个字符串:“查看您的电

我有一个字符串要用gettext翻译,如下所示:

Check your email for an order confirmation or <a href="some_link">click here</a> to see your orders.
"Check your email for an order confirmation or _ClickHere_ to see your orders"
然而,我想象译者会想:

什么是****这个字符串:“查看您的电子邮件以确认订单或查看您的订单。”什么是


您可以像这样使用占位符:

Check your email for an order confirmation or <a href="some_link">click here</a> to see your orders.
"Check your email for an order confirmation or _ClickHere_ to see your orders"
甚至:
\u单击此处链接

这对翻译人员来说很有意义,而且使用
str\u replace
很容易理解

你们唯一需要做的就是告诉译者不要翻译你们的占位符——我见过有人这样做;)