知道这一点可能很好。内部化的基础是translate
作用
File: wp-includes/l10n.php
78: /**
79: * Retrieve the translation of $text.
80: *
81: * If there is no translation, or the text domain isn\'t loaded, the original text is returned.
82: *
83: * *Note:* Don\'t use translate() directly, use __() or related functions.
84: *
85: * @since 2.2.0
86: *
87: * @param string $text Text to translate.
88: * @param string $domain Optional. Text domain. Unique identifier for retrieving translated strings.
89: * Default \'default\'.
90: * @return string Translated text
91: */
92: function translate( $text, $domain = \'default\' ) {
只要你打电话给包装商
File:wp-includes/l10n.php
172: function __( $text, $domain = \'default\' ) {
173: return translate( $text, $domain );
174: }
或
File: wp-includes/l10n.php
188: function esc_attr__( $text, $domain = \'default\' ) {
189: return esc_attr( translate( $text, $domain ) );
190: }
或
File: wp-includes/l10n.php
217: function _e( $text, $domain = \'default\' ) {
218: echo translate( $text, $domain );
219: }
或其他许多
wp-includes/l10n.php
, 将调用此函数。但您永远不会直接调用此函数。