我想在WP中翻译一个单词,但我不想替换整个翻译文件(.mo和.po),因为只有一个单词(它将被下一个WP版本覆盖,我必须经常记住)。
是否可以只翻译一个单词而不覆盖其余的单词?
P、 S.:我需要在/wp includes/script loader中将“no subset”翻译成“西里尔文”。php:
/* translators: To add an additional Open Sans character subset specific to your language,
* translate this to \'greek\', \'cyrillic\' or \'vietnamese\'. Do not translate into your own language.
*/
$subset = _x( \'no-subset\', \'Open Sans font: add new subset (greek, cyrillic, vietnamese)\' );
if ( \'cyrillic\' == $subset ) {
$subsets .= \',cyrillic,cyrillic-ext\';
} elseif ( \'greek\' == $subset ) {
$subsets .= \',greek,greek-ext\';
} elseif ( \'vietnamese\' == $subset ) {
$subsets .= \',vietnamese\';
}
// Hotlink Open Sans, for now
$open_sans_font_url = "//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=$subsets";
}