Translation_Entry::key()
最后更新于:2021-11-26 05:05:20
Translation_Entry::key()Generates a unique key for this entry
响应
(string|bool) the key or false if the entry is empty
源文件
文件: gc-includes/pomo/entry.php
function key() {
if ( null === $this->singular || '' === $this->singular ) {
return false;
}
// Prepend context and EOT, like in MO files.
$key = ! $this->context ? $this->singular : $this->context . "4" . $this->singular;
// Standardize on n line endings.
$key = str_replace( array( "rn", "r" ), "n", $key );
return $key;
}