You appear to be a bot. Output may be restricted
Description
Implements deferred translation for the null domain
Usage
Tests_translate_null_domain::hook_gettext( $translation, $text, $domain );
Parameters
- $translation
- ( mixed ) required –
- $text
- ( mixed ) required –
- $domain
- ( mixed ) required –
Returns
void
TO DO
Should we use oik-libs instead of the null domain?
Source
File name: oik-libs/tests/test-translate-null-domain.php
Lines:
1 to 12 of 12
function hook_gettext( $translation, $text, $domain ) { if ( null === $domain ) { $try_again = !$this->null_domain_loaded(); bw_trace2(); $this->load_null_domain(); if ( $try_again && $this->null_domain_loaded() ) { $translation = translate( $text, $domain ); } } return $translation; }