note 13976 added to ref.gettext.php

From: Date: Thu, 12 Jul 2001 08:59:32 +0000
Subject: note 13976 added to ref.gettext.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-15274@lists.php.net to get a copy of this message
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 http://www.php.net/manual/en/ref.gettext.php

« previous php.notes (#15274) next »