Translation_Entry from original string and translation strings,
* found in a MO file
*
* @static
* @param string $original original string to translate from MO file. Might contain
* 0x04 as context separator or 0x00 as singular/plural separator
* @param string $translation translation string from MO file. Might contain
* 0x00 as a plural translations separator
* @return Translation_Entry Entry instance.
*/
public function &make_entry( $original, $translation ) {
$entry = new Translation_Entry();
// Look for context, separated by \4.
$parts = explode( "\4", $original );
if ( isset( $parts[1] ) ) {
$original = $parts[1];
$entry->context = $parts[0];
}
// Look for plural original.
$parts = explode( "\0", $original );
$entry->singular = $parts[0];
if ( isset( $parts[1] ) ) {
$entry->is_plural = true;
$entry->plural = $parts[1];
}
// Plural translations are also separated by \0.
$entry->translations = explode( "\0", $translation );
return $entry;
}
/**
* @param int $count
* @return string
*/
public function select_plural_form( $count ) {
return $this->gettext_select_plural_form( $count );
}
/**
* @return int
*/
public function get_plural_forms_count() {
return $this->_nplurals;
}
}
endif;
Fatal error: require(): Failed opening required '/var/www/html/dportilho.com.br/web/wp-includes/category.php' (include_path='.:/usr/share/pear') in /var/www/html/dportilho.com.br/web/wp-settings.php on line 222
Fatal error: Uncaught Error: Call to a member function set() on null in /var/www/html/dportilho.com.br/web/wp-includes/l10n.php:856
Stack trace:
#0 /var/www/html/dportilho.com.br/web/wp-includes/l10n.php(959): load_textdomain('default', '/var/www/html/d...', 'pt_BR')
#1 /var/www/html/dportilho.com.br/web/wp-includes/class-wp-fatal-error-handler.php(49): load_default_textdomain()
#2 [internal function]: WP_Fatal_Error_Handler->handle()
#3 {main}
thrown in /var/www/html/dportilho.com.br/web/wp-includes/l10n.php on line 856