I want to output the translation of this string
By clicking on "Post"
Using gettext, how do I escape the quotation mark? Should I try \ "
?
msgid "By clicking on"
msgstr ""
Yes, you need to escape double quotes with a backslash (\").
The gettext manual says the following:
The two strings, untranslated and translated, are quoted in various ways in the PO file, using " delimiters and \ escapes
...
Each of untranslated-string and translated-string respects the C syntax for a character string, including the surrounding quotes and embedded backslashed escape sequences.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With