PHP, gettext and multi-line strings
-
Hi, I wasn’t sure where I should post this question, so hopefully here will do…!
This is a question for the WordPress developers. I’ve been investigating gettext to provide multi-language support for a script I develop, but from all the sources I’ve read, the xgettext script used to extract the strings needing translating from the source code doesn’t support PHP multi-line strings. So, the only solution appears to be to put every string for translating in a single line.
__(“my long string here…”);
Did you guys encounter this problem? If so, did you manage to get around it somehow? Or are all translatable strings in the WordPress source code contained on single lines?
Thanks…! ??
– Ben
- The topic ‘PHP, gettext and multi-line strings’ is closed to new replies.