- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
wordpress:
function __( $text, $domain = 'default' ) {
return translate( $text, $domain );
}
function translate( $text, $domain = 'default' ) {
$translations = &get_translations_for_domain( $domain );
return apply_filters( 'gettext', $translations->translate( $text ), $text, $domain );
}
PHP-manual:
PHP reserves all function names starting with __ as magical. It is recommended that you do not use function names with __ in PHP unless you want some documented magic functionality.
wordpress:
/*
* Don't use translate() directly, use __()
*/
О том ка дед насрал в коляску...