diff -r 53cff4b4a802 -r bde1974c263b web/wp-includes/pomo/entry.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/wp-includes/pomo/entry.php Wed Feb 03 15:37:20 2010 +0000 @@ -0,0 +1,70 @@ + $value) { + $this->$varname = $value; + } + if (isset($args['plural'])) $this->is_plural = true; + if (!is_array($this->translations)) $this->translations = array(); + if (!is_array($this->references)) $this->references = array(); + if (!is_array($this->flags)) $this->flags = array(); + } + + /** + * Generates a unique key for this entry + * + * @return string|bool the key or false if the entry is empty + */ + function key() { + if (is_null($this->singular)) return false; + // prepend context and EOT, like in MO files + return is_null($this->context)? $this->singular : $this->context.chr(4).$this->singular; + } +} +endif; \ No newline at end of file