note 13976 deleted from ref.gettext by cmb
| From: | cmb@php.net | Date: | Sun, 01 Dec 2019 09:15:38 +0000 |
| Subject: | note 13976 deleted from ref.gettext by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213348@lists.php.net to get a copy of this message | ||
Note Submitter:
----
To get xgettext working with my php code I had to change simple quotes to double quites in my
previous example :
print(getText("Welcome"));
/.../
if($err)printf(dGetText("errorMsg","you have an error here"));
I guess that's because strings can not be simple-quoted in C. However I think it is good
practice to do as if it was a simple quote, because you do not want to interpolate a string that
will end in the catalogue.
Ivan