You appear to be a bot. Output may be restricted
Description
Enables/disables "Just Translate It".This is a lazy implementation that defers loading of the domain until it's actually needed.
Usage
oik_l10n_enable_jti( $domain );
Parameters
- $domain
- ( string|bool|null ) optional default: 1 –
Returns
voidSource
File name: oik/libs/oik-l10n.phpLines:
1 to 20 of 20
function oik_l10n_enable_jti( $domain=true ) { switch ( $domain ) { case true: case null: $priority = has_filter( "gettext", "oik_l10n_gettext" ); if ( false === $priority ) { add_filter( "gettext", "oik_l10n_gettext", 10, 3 ); $priority = has_filter( "gettext", "oik_l10n_gettext" ); } break; case false: remove_filter( "gettext", "oik_l10n_gettext", 10 ); break; default: // Support for specifying domain names not yet implemented. } }View on GitHub View on Trac