我有些困惑。据我所知,gettext 函数中的每个文本都用作 msgid
所以这个:
_("My long text that I <br> because I need to ")
应该:
#: htdocs/index.php:8
msgid "My long text that I <br> because I need to"
msgstr "Translation needs different <br> inside because russian is different"
我只是找不到任何 gettext() 或 _() 去除 html 标签的文档。
我应该像这样替换它吗?为什么?
sprintf(_("My long text that I %s because I need to "), '<br>')