- 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 __()
*/
Lure Of Chaos 12.09.2012 17:56 # +3
Int 12.09.2012 19:02 # +3
rat4 12.09.2012 19:05 # +4
Lure Of Chaos 12.09.2012 21:16 # +3
Steve_Brown 12.09.2012 19:52 # +1
deep 12.09.2012 21:36 # −1
О том ка дед насрал в коляску...
Hamer 14.09.2012 03:04 # 0
Lure Of Chaos 14.09.2012 14:00 # 0