本文介绍了打印“与gettext的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想输出这个字符串的翻译
I want to output the translation of this string
点击发布
使用gettext,如何避免引号?我应该尝试 \
?
Using gettext, how do I escape the quotation mark? Should I try \ "
?
msgid "By clicking on"
msgstr ""
推荐答案
只表示以下内容,这并不真正描述允许的转义序列。
The gettext manual only says the following, which does not really describe the allowed escape sequences.
如有疑问,请查看,反斜杠之后识别的转义序列似乎为:
When in doubt, just look at the source code for gettexts own po parser, the recognized escape sequences following a backslash seem to be:
- n,t,b,r,f,v,a
- 和\
- 八进制数
- 以'x'开头的十六进制数字
- n, t, b, r, f, v, a
- " and \
- Octal numbers
- Hexadecimal numbers starting with 'x'
这篇关于打印“与gettext的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!