You appear to be a bot. Output may be restricted
Description
Implements gettext for Just In Time – Just Translate It logicWe only perform translation when the domain is null and the null domain has not already been loaded.
Usage
oik_l10n_gettext( $translation, $text, $domain );
Parameters
- $translation
- ( string ) required – the translated string
- $text
- ( string ) required – the original string
- $domain
- ( string|null ) required –
Returns
voidSource
File name: oik/libs/oik-l10n.phpLines:
1 to 14 of 14
function oik_l10n_gettext( $translation, $text, $domain ) { if ( null === $domain ) { //bw_trace2(); $try_again = !is_textdomain_loaded( $domain ); bw_trace2( $try_again, "try again", false, BW_TRACE_VERBOSE ); if ( $try_again ) { oik_l10n_load_domain( $domain ); if ( is_textdomain_loaded( $domain ) ) { $translation = translate( $text, $domain ); } } } return $translation; }View on GitHub View on Trac