Source for file phpgettext.message.php
Documentation is available at phpgettext.message.php
* @copyright Copyright (c) 2005 Carlos Souza <csouza@web-sense.net>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
* @link http://phpgettext.web-sense.net
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
* Short description of attribute comments
* Short description of attribute is_fuzzy
* Short description of attribute msgid
* Short description of attribute msgid
* Short description of attribute msgstr
* Short description of method PHPGettext_Catalog_Entry
* @author firstname and lastname of author, <author@example.org>
* Short description of method setmsgstr
* @author firstname and lastname of author, <author@example.org>
* Short description of method setFuzzy
* @author firstname and lastname of author, <author@example.org>
$this->is_fuzzy =
($is_fuzzy) ?
true :
false;
* Short description of method setComments
* @author firstname and lastname of author, <author@example.org>
* Short description of method reset
* @author firstname and lastname of author, <author@example.org>
function reset($property =
'all')
* Short description of method toString
* @author firstname and lastname of author, <author@example.org>
$string .=
trim($comment).
"\n";
} elseif (strncmp($comment, "#:", 2) ==
0) {
$string .=
trim($comment).
"\n";
if (strlen($msgid) > 76) {
$entry .= 'msgid ""'."\n";
$entry .= '"'.wordwrap($msgid, 76, " \"\n\"")."\"\n";
$entry .= 'msgid "'.$msgid.'"'."\n";
$string .=
"msgid \"\"\n";
foreach ($msgid as $line)
$string .=
"\"$line\\n\"\n";
$string .=
"msgid \"$this->msgid\"\n";
$string .=
"msgstr \"\"\n";
foreach ($msgstr as $line)
$string .=
"\"$line\\n\"\n";
foreach ($this->msgstr as $k =>
$msgstr) {
$string .=
"msgstr[$k] \"$msgstr\"\n";
$string .=
"msgstr \"$this->msgstr\"\n\n";
} /* end of class PHPGettext_Catalog_Entry */
Documentation generated on Mon, 05 May 2008 16:22:30 +0400 by phpDocumentor 1.4.0