从http://wpsnipp.com/index.php/functions-php/use-gettext-ngetext-to-replace-array-of-words-in-wpadmin/
add_filter( \'gettext\', \'wps_translate_words_array\' );
add_filter( \'ngettext\', \'wps_translate_words_array\' );
function wps_translate_words_array( $translated ) {
$words = array(
// \'word to translate\' = > \'translation\'
\'Posts\' => \'Article\',
\'Post\' => \'Articles\',
\'Pages\' => \'Stuffing\',
\'Media\' => \'Upload Images\',
\'Links\' => \'Blog Roll\',
);
$translated = str_ireplace( array_keys($words), $words, $translated );
return $translated;
}
将此添加到函数。php和相应的更改,尽管我说我有一个自定义插件,我在其中添加了这样的东西,因为如果我犯了错误,它就会停用,而不是函数。php,这似乎打破了网站。